/**
 * Extra page sections for brand pages built in the block editor
 * (Custom HTML blocks), in the NuCast style. Used by NuHosting's pages.
 *
 *   .nw-split      text beside an image (add .nw-split--flip to swap sides)
 *   .nw-products   product cards with a "from" price and a link
 *   .nw-quotes     customer review cards
 *   .nw-band       a short full-width band with text and a button
 */

/* Text beside an image */
.nw-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.nw-split--flip > :first-child { order: 2; }
.nw-split h2 { margin: 12px 0 14px; }
.nw-split p { color: var(--nw-text); }
.nw-split .nw-checklist { margin: 22px 0 26px; }
.nw-split__media { position: relative; }
.nw-split__media img { width: 100%; height: auto; border-radius: var(--nw-radius-lg); box-shadow: var(--nw-shadow); display: block; }
.nw-split__media--plain img { box-shadow: none; border-radius: 0; }
.nw-split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
	.nw-split { grid-template-columns: 1fr; }
	.nw-split--flip > :first-child { order: 0; }
	.nw-split__media { max-width: 560px; }
}

/* Product cards with a "from" price */
.nw-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nw-product { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; background: var(--nw-surface); border: 1px solid var(--nw-border); border-radius: var(--nw-radius-lg); box-shadow: var(--nw-shadow-sm); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nw-product:hover { transform: translateY(-3px); box-shadow: var(--nw-shadow); border-color: rgba(var(--nw-accent-rgb), .45); }
.nw-product h3 { margin: 4px 0 0; font-size: 18px; }
.nw-product p { margin: 0; color: var(--nw-text); font-size: 14.5px; line-height: 1.55; }
.nw-product__price { margin-top: auto; padding-top: 12px; color: var(--nw-heading); font-size: 14px; }
.nw-product__price strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.nw-product__price small { color: var(--nw-muted, var(--nw-text)); }
.nw-product__link { color: var(--nw-link); font-weight: 700; font-size: 14.5px; }
.nw-product__flag { position: absolute; top: -11px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--nw-accent); color: var(--nw-accent-contrast, #fff); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1100px) { .nw-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nw-products { grid-template-columns: 1fr; } }

/* Review cards */
.nw-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.nw-quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px; background: var(--nw-surface); border: 1px solid var(--nw-border); border-radius: var(--nw-radius-lg); box-shadow: var(--nw-shadow-sm); }
.nw-quote__stars { color: #F4B400; letter-spacing: 2px; font-size: 15px; line-height: 1; }
.nw-quote blockquote { margin: 0; padding: 0; border: 0; color: var(--nw-heading); font-size: 15px; line-height: 1.65; }
.nw-quote figcaption { margin-top: auto; color: var(--nw-text); font-size: 14px; font-weight: 700; }
.nw-quotes__more { margin-top: 22px; text-align: center; }

/* Full-width band */
.nw-band { padding: clamp(40px, 6vw, 64px) 0; background: linear-gradient(135deg, rgba(var(--nw-accent-rgb), .10), rgba(var(--nw-accent-rgb), .03)); border-block: 1px solid var(--nw-border); }
.nw-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nw-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.nw-band p { margin: 0; color: var(--nw-text); max-width: 680px; }

/* Content from Custom HTML blocks sits edge to edge on full-width pages */
.nw-blocks > .wp-block-html, .nw-blocks > section { margin: 0; }
.nw-section .nw-section-head + .nw-checklist { justify-content: center; }
.nw-checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 560px) { .nw-checklist--2 { grid-template-columns: 1fr; } }
.nw-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.nw-demo { display: inline-grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 6px 0 18px; padding: 14px 18px; background: var(--nw-surface-3, #F4F7FA); border: 1px dashed var(--nw-border); border-radius: var(--nw-radius); font-size: 14.5px; }
.nw-demo dt { color: var(--nw-text); }
.nw-demo dd { margin: 0; font-weight: 700; color: var(--nw-heading); font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Long links and words in legal or imported text wrap on small screens. */
.nw-blocks .nw-prose, .nw-blocks .nw-prose a { overflow-wrap: anywhere; }
.nw-blocks .nw-prose { font-size: 15.5px; line-height: 1.75; }
.nw-blocks .nw-prose h2 { margin-top: 0; }
.nw-blocks .nw-prose h3 { margin: 1.6em 0 .5em; font-size: 18px; }
.nw-blocks .wp-block-rss { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; }
.nw-blocks .wp-block-rss__item { padding: 18px 20px; background: var(--nw-surface); border: 1px solid var(--nw-border); border-radius: var(--nw-radius); }
.nw-blocks .wp-block-rss__item-title a { font-weight: 800; color: var(--nw-heading); text-decoration: none; }
.nw-blocks .wp-block-rss__item-publish-date { display: block; margin: 4px 0 6px; color: var(--nw-text); font-size: 13px; }
.nw-blocks .wp-block-rss__item-excerpt { color: var(--nw-text); font-size: 14.5px; }
