/*
Theme Name: Nassli SmartBuilding
Theme URI: https://nassli.com.sa
Author: Nassli SmartBuilding
Description: Bilingual (English / Arabic) block theme for Nassli SmartBuilding. White and Nassli navy, full-screen hero slider, fully editable from the Site Editor. ثيم ثنائي اللغة لموقع نسلي للمباني الذكية.
Version: 1.3.2
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: nassli-smartbuilding
*/

/* =========================================================
   Colour model
   Light by default (white + navy). Sections with .nsb-dark
   (hero, CTA, footer, image tiles) flip the local variables.
   ========================================================= */
:root {
	--nsb-ease: cubic-bezier(.2, .7, .2, 1);
	--nsb-header-h: 84px;
	--nsb-fg: var(--wp--preset--color--contrast);        /* navy text */
	--nsb-fg-soft: var(--wp--preset--color--body);       /* body text */
	--nsb-muted: var(--wp--preset--color--muted);
	--nsb-line: var(--wp--preset--color--border);
	--nsb-surface: var(--wp--preset--color--surface);
	--nsb-accent-text: var(--wp--preset--color--accent);
	--nsb-input-bg: var(--wp--preset--color--surface);
	--nsb-grid-line: rgba(0, 29, 87, .05);
}
.nsb-dark, .nsb-footer, .nsb-hero-slider, .nsb-cta--dark {
	--nsb-fg: #ffffff;
	--nsb-fg-soft: rgba(255, 255, 255, .86);
	--nsb-muted: #b8c3dc;
	--nsb-line: rgba(255, 255, 255, .16);
	--nsb-surface: rgba(255, 255, 255, .06);
	--nsb-accent-text: #8fb0f5;
	--nsb-input-bg: rgba(255, 255, 255, .08);
	--nsb-grid-line: rgba(255, 255, 255, .05);
	color: var(--nsb-fg-soft);
}
.nsb-dark :is(h1, h2, h3, h4), .nsb-footer :is(h1, h2, h3, h4), .nsb-hero-slider :is(h1, h2, h3), .nsb-cta--dark :is(h1, h2, h3) { color: #fff; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nsb-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; color: var(--nsb-fg-soft); }
::selection { background: var(--wp--preset--color--accent); color: #fff; }
img { height: auto; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; inset-inline-start: 1rem; top: 1rem; z-index: 1000; padding: .75rem 1rem; background: #fff; color: #000; }
.nsb-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
[dir="rtl"] .nsb-icon--flip-rtl { transform: scaleX(-1); }
.nsb-notice { font-size: .8rem; color: var(--nsb-muted); border: 1px dashed var(--nsb-line); padding: .5rem .75rem; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Arabic typography: no letter-spacing, no uppercase, slightly taller lines. */
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, .nsb-kicker, .nsb-btn, .wp-element-button, .nsb-filter__btn, .nsb-menu a, .nsb-project__kicker, .nsb-contact__label, .nsb-card__more, .nsb-card__meta) { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] :is(h1, h2, h3) { line-height: 1.35; }

/* ---------- Header (white, navy logo) ---------- */
.nsb-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.admin-bar .nsb-header { top: var(--wp-admin--admin-bar--height, 32px); }
.nsb-header.is-scrolled { border-bottom-color: var(--wp--preset--color--border); box-shadow: 0 6px 24px rgba(0, 29, 87, .06); }
.nsb-header__inner { min-height: var(--nsb-header-h); }
.nsb-header__actions { display: flex; align-items: center; gap: 1rem; }

.nsb-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nsb-brand__img { height: 42px; width: auto; display: block; }
.nsb-footer .nsb-brand__img { height: 52px; }

/* Navigation */
.nsb-nav { display: flex; align-items: center; }
.nsb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nsb-menu a { color: var(--nsb-fg); text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .01em; padding: .5rem 0; position: relative; transition: color .2s; }
.nsb-menu a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: var(--nsb-origin, left); transition: transform .3s var(--nsb-ease); }
[dir="rtl"] .nsb-menu a::after { --nsb-origin: right; }
.nsb-menu a:hover, .nsb-menu .current-menu-item > a, .nsb-menu .current_page_item > a { color: var(--wp--preset--color--accent); }
.nsb-menu a:hover::after, .nsb-menu .current-menu-item > a::after, .nsb-menu .current_page_item > a::after { transform: scaleX(1); }
.nsb-menu .sub-menu { display: none; }
.nsb-nav__toggle { display: none; background: none; border: 1px solid var(--wp--preset--color--border); color: var(--nsb-fg); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nsb-nav__toggle .nsb-icon--close { display: none; }
.nsb-nav.is-open .nsb-nav__toggle .nsb-icon--menu { display: none; }
.nsb-nav.is-open .nsb-nav__toggle .nsb-icon--close { display: inline-block; }

.nsb-lang { list-style: none; margin: 0; padding: 0; display: flex; border: 1px solid var(--nsb-line); }
.nsb-lang a { display: block; min-width: 40px; padding: .45rem .6rem; text-align: center; font-weight: 700; font-size: .8rem; color: var(--nsb-muted); text-decoration: none; }
.nsb-lang a[lang="ar"] { font-family: Tajawal, sans-serif; font-size: .95rem; line-height: 1.15; }
.nsb-lang a.is-current { background: var(--wp--preset--color--contrast); color: #fff; }
.nsb-footer .nsb-lang a.is-current { background: #fff; color: var(--wp--preset--color--contrast); }
.nsb-lang a:not(.is-current):hover { color: var(--nsb-fg); }

@media (max-width: 1080px) {
	.nsb-nav__toggle { display: inline-flex; }
	.nsb-nav__panel { position: fixed; inset: var(--nsb-header-h) 0 0 0; background: #fff; padding: 2rem clamp(1rem, 4vw, 2.5rem); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--nsb-ease), visibility .25s; overflow-y: auto; }
	.admin-bar .nsb-nav__panel { top: calc(var(--nsb-header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nsb-nav.is-open .nsb-nav__panel { opacity: 1; visibility: visible; transform: none; }
	.nsb-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nsb-menu a { display: block; font-size: 1.5rem; font-weight: 700; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.nsb-menu a::after { display: none; }
	.nsb-header .nsb-cta-desktop { display: none; }
	html.nsb-menu-open { overflow: hidden; }
	html.nsb-menu-open .nsb-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
@media (max-width: 560px) {
	:root { --nsb-header-h: 68px; }
	.nsb-brand__img { height: 32px; }
	.nsb-header__actions { gap: .5rem !important; }
	.nsb-lang a { min-width: 34px; padding: .45rem .4rem; }
	.nsb-nav__toggle { width: 40px; height: 40px; }
}

/* ---------- Buttons ---------- */
.nsb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; border: 2px solid transparent; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.nsb-btn .nsb-icon { transition: transform .25s var(--nsb-ease); }
.nsb-btn:hover .nsb-icon { transform: translateX(4px); }
[dir="rtl"] .nsb-btn:hover .nsb-icon { transform: scaleX(-1) translateX(4px); }
.nsb-btn--sm { font-size: .75rem; padding: .6rem 1rem; }
.nsb-btn--md { font-size: .8125rem; padding: .95rem 1.6rem; }
.nsb-btn--lg { font-size: .9rem; padding: 1.15rem 2.1rem; }
.nsb-btn--solid { background: var(--wp--preset--color--accent); color: #fff !important; }
.nsb-btn--solid:hover { background: var(--wp--preset--color--accent-strong); }
.nsb-btn--outline { border-color: currentColor; color: var(--nsb-fg) !important; }
.nsb-btn--outline:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: #fff !important; }
.nsb-btn--light { background: #fff; color: var(--wp--preset--color--contrast) !important; }
.nsb-btn--light:hover { background: var(--wp--preset--color--sand); }
.wp-block-button__link { transition: background .25s, color .25s, border-color .25s; }
.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--nsb-fg); }
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: #fff; }
:is(.nsb-dark, .nsb-hero-slider, .nsb-cta--dark) .is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .6); }
:is(.nsb-dark, .nsb-hero-slider, .nsb-cta--dark) .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--contrast); border-color: #fff; }

/* ---------- Sections & headings ---------- */
.nsb-section { position: relative; }
.nsb-kicker { display: flex; width: fit-content; align-items: center; gap: .75rem; font-size: .78rem !important; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--nsb-accent-text); margin: 0; }
.nsb-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.nsb-lead { font-size: var(--wp--preset--font-size--large); color: var(--nsb-muted); max-width: 46rem; }
.nsb-gridlines { background-image: linear-gradient(var(--nsb-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--nsb-grid-line) 1px, transparent 1px); background-size: 80px 80px; background-position: center top; }
.nsb-accent { color: var(--nsb-accent-text); }
.nsb-muted { color: var(--nsb-muted); }

/* ---------- Full-screen hero slider (home) ---------- */
.nsb-hero-slider { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--nsb-header-h)); display: flex !important; flex-direction: column; justify-content: center; background: #1a1a1a; }
.admin-bar .nsb-hero-slider { min-height: calc(100svh - var(--nsb-header-h) - var(--wp-admin--admin-bar--height, 32px)); }
.nsb-hero-slides { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; padding: 0 !important; display: block !important; max-width: none !important; gap: 0 !important; }
.nsb-hero-slides > .wp-block-image, .nsb-hero-slides figure.wp-block-image { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; transition: opacity 1.4s ease; }
.nsb-hero-slides > .wp-block-image img, .nsb-hero-slides figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transform: scale(1.08); }
.nsb-hero-slides > .wp-block-image:first-child { opacity: 1; }
.nsb-hero-slides.is-ready > .wp-block-image { opacity: 0; }
.nsb-hero-slides.is-ready > .wp-block-image.is-active { opacity: 1; }
.nsb-hero-slides > .wp-block-image.is-active img { animation: nsb-kenburns 7s ease-out forwards; }
.nsb-hero-slides figcaption { display: none; }
@keyframes nsb-kenburns { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.nsb-hero-slider::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .22) 100%); }
.nsb-hero-slider .nsb-hero__content { position: relative; padding-block: clamp(4rem, 10vh, 7rem); }
.nsb-hero-slider h1 { color: #fff; max-width: 18ch; margin-inline: auto; font-size: clamp(2.6rem, 6.4vw, 5.6rem) !important; line-height: 1.05; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
[dir="rtl"] .nsb-hero-slider h1 { line-height: 1.25; }
.nsb-hero-slider .nsb-lead { color: rgba(255, 255, 255, .88); margin: 1.5rem auto 2.5rem; }
.nsb-hero-slider .nsb-kicker { color: #fff; margin-bottom: 1.5rem; }
.nsb-hero__dots { position: absolute; bottom: 2rem; inset-inline: 0; display: flex; justify-content: center; gap: .6rem; z-index: 2; }
.nsb-hero__dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s; }
.nsb-hero__dots button.is-active { background: #fff; }
.nsb-hero__scroll { position: absolute; bottom: 2rem; inset-inline-end: clamp(1rem, 4vw, 2.5rem); color: rgba(255, 255, 255, .7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
@media (prefers-reduced-motion: reduce) { .nsb-hero-slides > .wp-block-image.is-active img { animation: none; transform: none; } }

/* Stats band under the hero */
.nsb-statsband { background: #fff; border-bottom: 1px solid var(--wp--preset--color--border); }
.nsb-stats { gap: 2rem !important; text-align: center; margin: 0 !important; }
.nsb-stats .wp-block-column { position: relative; }
.nsb-stats .wp-block-column + .wp-block-column::before { content: ""; position: absolute; inset-inline-start: -1rem; top: 15%; bottom: 15%; width: 1px; background: var(--wp--preset--color--border); }
.nsb-stat__num { font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important; font-weight: 800; line-height: 1 !important; color: var(--wp--preset--color--accent); margin: 0 !important; font-family: Montserrat, Tajawal, sans-serif; }
.nsb-stat__label { color: var(--nsb-muted); font-size: .9rem; margin-top: .6rem !important; }
@media (max-width: 781px) { .nsb-stats { display: grid !important; grid-template-columns: 1fr 1fr; } .nsb-stats .wp-block-column::before { display: none; } }

/* Legacy centred hero (kept for the pattern) */
.nsb-hero { position: relative; overflow: hidden; isolation: isolate; }
.nsb-hero h1 { max-width: 20ch; margin-inline: auto; }
.nsb-hero .nsb-lead { margin-inline: auto; margin-top: 1.5rem; margin-bottom: 2.5rem; }
.nsb-hero .nsb-kicker { margin-bottom: 1.5rem; }

/* ---------- Cards & grids ---------- */
.nsb-grid { display: grid; gap: 1.25rem; }
.nsb-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.nsb-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.nsb-card { position: relative; background: #fff; border: 1px solid var(--wp--preset--color--border); padding: 2rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .3s, transform .3s var(--nsb-ease), box-shadow .3s; }
.nsb-card:hover { border-color: var(--wp--preset--color--accent); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 29, 87, .08); }
.nsb-card__icon { color: var(--wp--preset--color--accent); }
.nsb-card__icon .nsb-icon { width: 36px; height: 36px; }
.nsb-card__title { font-size: 1.2rem !important; margin: .25rem 0 0; line-height: 1.3; }
.nsb-card__title a { color: var(--nsb-fg); text-decoration: none; }
.nsb-card__title a::after { content: ""; position: absolute; inset: 0; }
.nsb-card__text { color: var(--nsb-muted); font-size: .95rem; margin: 0; }
.nsb-card__meta { color: var(--wp--preset--color--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.nsb-card__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.nsb-card__more .nsb-icon { width: 16px; height: 16px; transition: transform .25s var(--nsb-ease); }
.nsb-card:hover .nsb-card__more .nsb-icon { transform: translateX(4px); }
[dir="rtl"] .nsb-card:hover .nsb-card__more .nsb-icon { transform: scaleX(-1) translateX(4px); }

/* Services (solution groups) — card fills with Nassli blue on hover */
.nsb-service { position: relative; padding: 2.25rem 2rem; border: 1px solid var(--wp--preset--color--border); background: #fff; transition: background .35s, border-color .35s, transform .35s var(--nsb-ease), box-shadow .35s; }
.nsb-service__icon { color: var(--wp--preset--color--accent); display: inline-block; margin-bottom: 1.25rem; transition: color .35s; }
.nsb-service__title { font-size: 1.3rem !important; margin: 0 0 .6rem; }
.nsb-service__title a { color: var(--nsb-fg); text-decoration: none; transition: color .35s; }
.nsb-service__title a::after { content: ""; position: absolute; inset: 0; }
.nsb-service__text { color: var(--nsb-muted); margin: 0 0 1rem; font-size: .95rem; transition: color .35s; }
.nsb-service__items { margin: 0; font-size: .8rem; font-weight: 600; color: var(--nsb-fg); line-height: 1.8; transition: color .35s; }
.nsb-service:hover, .nsb-service:focus-within { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 29, 87, .18); }
.nsb-service:hover :is(.nsb-service__icon, .nsb-service__text, .nsb-service__items, .nsb-service__title a), .nsb-service:focus-within :is(.nsb-service__icon, .nsb-service__text, .nsb-service__items, .nsb-service__title a) { color: #fff; }

/* Solution groups (Solutions page) */
.nsb-groups { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.nsb-group__head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--wp--preset--color--border); }
.nsb-group__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--wp--preset--color--contrast); color: #fff; flex-shrink: 0; }
.nsb-group__title { font-size: var(--wp--preset--font-size--x-large) !important; margin: 0; }
.nsb-group__text { color: var(--nsb-muted); margin: .4rem 0 0; max-width: 46rem; }

/* Sectors — image tiles with navy overlay */
.nsb-sectors { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .nsb-sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nsb-sectors { grid-template-columns: 1fr; } }
.nsb-sector { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem; min-height: 240px; padding: 1.75rem; background: var(--wp--preset--color--contrast); color: #fff !important; text-decoration: none !important; }
.nsb-sector__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--nsb-ease); }
.nsb-sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 29, 87, .25), rgba(0, 29, 87, .88)); transition: background .4s; }
.nsb-sector__icon { color: #fff; }
.nsb-sector__title { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.nsb-sector > .nsb-icon--arrow { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; opacity: .7; transition: opacity .3s, transform .3s var(--nsb-ease); }
.nsb-sector:hover .nsb-sector__img { transform: scale(1.06); }
.nsb-sector:hover::before { background: linear-gradient(180deg, rgba(32, 77, 164, .45), rgba(32, 77, 164, .92)); }
.nsb-sector:hover > .nsb-icon--arrow { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .nsb-sector:hover > .nsb-icon--arrow { transform: scaleX(-1) translateX(4px); }

/* Projects — portfolio grid */
.nsb-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; margin: 0 0 2.5rem; }
.nsb-filter__btn { background: none; border: 0; padding: .6rem 0; cursor: pointer; color: var(--nsb-muted); font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; position: relative; }
.nsb-filter__btn::after { content: ""; position: absolute; inset-inline: 30%; bottom: 0; height: 2px; background: var(--wp--preset--color--accent); transform: scaleX(0); transition: transform .3s var(--nsb-ease); }
.nsb-filter__btn:hover, .nsb-filter__btn.is-active { color: var(--nsb-fg); }
.nsb-filter__btn.is-active::after { transform: scaleX(1); }
.nsb-projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, 22vw); gap: 1rem; }
.nsb-projects > .nsb-project:first-child:not([hidden]) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .nsb-projects { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; } }
@media (max-width: 560px) { .nsb-projects { grid-template-columns: 1fr; } .nsb-projects > .nsb-project:first-child:not([hidden]) { grid-column: auto; grid-row: auto; } }
.nsb-project { position: relative; overflow: hidden; background: var(--wp--preset--color--contrast); }
.nsb-project[hidden] { display: none; }
.nsb-project__link { position: absolute; inset: 0; display: block; color: #fff !important; text-decoration: none !important; }
.nsb-project__media { position: absolute; inset: 0; }
.nsb-project__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--nsb-ease); }
.nsb-project__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .15); background: radial-gradient(circle at 30% 20%, #0b2c74, #001d57 70%); }
.nsb-project__body { position: absolute; inset: auto 0 0 0; padding: 4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; background: linear-gradient(to top, rgba(0, 18, 56, .95), rgba(0, 18, 56, 0)); }
.nsb-project__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fbcf7; }
.nsb-project__title { font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 700; line-height: 1.25; }
.nsb-project__meta { font-size: .85rem; color: rgba(255, 255, 255, .78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--nsb-ease), opacity .3s; }
.nsb-project::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--wp--preset--color--accent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nsb-project:hover .nsb-project__img { transform: scale(1.06); }
.nsb-project:hover::after, .nsb-project:focus-within::after { opacity: 1; }
.nsb-project:hover .nsb-project__meta, .nsb-project:focus-within .nsb-project__meta { max-height: 5em; opacity: 1; }
@media (hover: none) { .nsb-project__meta { max-height: 5em; opacity: 1; } }
.nsb-more { text-align: center; justify-content: center; margin-top: 2.5rem !important; }
.nsb-empty { color: var(--nsb-muted); text-align: center; }

/* Related / facts / chips */
.nsb-related__title { font-size: var(--wp--preset--font-size--x-large) !important; margin: 0 0 1.5rem; }
.nsb-facts { margin: 0; border-top: 1px solid var(--wp--preset--color--border); }
.nsb-facts__row { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.nsb-facts dt { display: flex; gap: .6rem; align-items: center; color: var(--nsb-muted); font-weight: 600; font-size: .9rem; }
.nsb-facts dt .nsb-icon { color: var(--wp--preset--color--accent); }
.nsb-facts dd { margin: 0; font-weight: 600; color: var(--nsb-fg); }
.nsb-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.nsb-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--wp--preset--color--border); background: #fff; color: var(--nsb-fg) !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; transition: border-color .25s, background .25s; }
.nsb-chip .nsb-icon { color: var(--wp--preset--color--accent); }
.nsb-chip:hover { border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--surface); }
.nsb-hero-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; background: var(--wp--preset--color--accent); color: #fff; }

/* Checklists */
.nsb-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.nsb-checks li { position: relative; padding-inline-start: 2rem; color: var(--nsb-fg-soft); }
.nsb-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 14px; height: 8px; border-inline-start: 2px solid var(--wp--preset--color--accent); border-bottom: 2px solid var(--wp--preset--color--accent); transform: rotate(-45deg); }
[dir="rtl"] .nsb-checks li::before { transform: rotate(45deg) scaleX(-1); }
.nsb-checks--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 2rem; }
.nsb-checks strong { color: var(--nsb-fg); }

/* Process steps */
.nsb-step { border-top: 2px solid var(--wp--preset--color--border); padding-top: 1.25rem !important; transition: border-color .3s; counter-increment: nsb-step; }
.nsb-steps { counter-reset: nsb-step; }
.nsb-step:hover { border-top-color: var(--wp--preset--color--accent); }
.nsb-step::before { content: counter(nsb-step, decimal-leading-zero); display: block; font-weight: 800; font-size: .85rem; color: var(--wp--preset--color--accent); margin-bottom: .75rem; letter-spacing: .1em; }
.nsb-step h3 { font-size: 1.15rem !important; margin: 0 0 .4rem; }
.nsb-step p { color: var(--nsb-muted); font-size: .95rem; margin: 0; }

/* Image frame with accent corner + badge */
.nsb-frame { position: relative; }
.nsb-frame img { width: 100%; display: block; object-fit: cover; }
.nsb-frame::before { content: ""; position: absolute; width: 38%; height: 38%; inset-inline-start: -14px; bottom: -14px; border-inline-start: 3px solid var(--wp--preset--color--accent); border-bottom: 3px solid var(--wp--preset--color--accent); pointer-events: none; }
.nsb-badge { display: inline-flex; flex-direction: column; background: var(--wp--preset--color--contrast); color: #fff; padding: 1.25rem 1.5rem; }
.nsb-badge strong { font-size: 2.5rem; line-height: 1; font-weight: 800; }

/* Partner strip */
.nsb-partner { border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); }
.nsb-partner__name { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(3rem, 8vw, 5.5rem) !important; letter-spacing: .06em; line-height: 1 !important; margin: 0 !important; color: var(--nsb-fg); }

/* Contact list */
.nsb-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.nsb-contact--inline { grid-auto-flow: column; justify-content: center; gap: 2.5rem; }
.nsb-contact--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.nsb-contact--cards li { border: 1px solid var(--nsb-line); padding: 1.5rem; background: var(--nsb-surface); }
.nsb-contact li { display: flex; gap: 1rem; align-items: flex-start; }
.nsb-contact__icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--nsb-line); color: var(--nsb-accent-text); flex-shrink: 0; }
.nsb-contact__label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nsb-muted); font-weight: 700; }
[dir="rtl"] .nsb-contact__label { font-size: .85rem; }
.nsb-contact__value { display: block; font-weight: 700; font-size: 1.05rem; margin-top: .2rem; color: var(--nsb-fg); }
.nsb-contact__value a { color: var(--nsb-fg); text-decoration: none; }
.nsb-contact__value a:hover { color: var(--nsb-accent-text); }
@media (max-width: 700px) { .nsb-contact--inline { grid-auto-flow: row; justify-content: start; } }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 1rem; }
.nsb-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .nsb-form-grid { grid-template-columns: 1fr; } }
.nsb-form-grid .nsb-span-2 { grid-column: 1 / -1; }
.wpcf7 label { display: block; font-size: .8rem; font-weight: 700; color: var(--nsb-muted); letter-spacing: .04em; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { width: 100%; box-sizing: border-box; margin-top: .4rem; background: var(--nsb-input-bg); color: var(--nsb-fg); border: 1px solid transparent; border-bottom-color: var(--nsb-line); padding: 1rem 1.1rem; font: inherit; font-size: 1rem; border-radius: 0; transition: border-color .2s, background .2s; }
.wpcf7 select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7d89a6 50%), linear-gradient(135deg, #7d89a6 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .wpcf7 select { background-position: 22px 50%, 16px 50%; }
.nsb-dark .wpcf7 select option, .nsb-cta--dark .wpcf7 select option { color: #001d57; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 :is(input, select, textarea):focus { outline: none; border-color: var(--wp--preset--color--accent); }
.wpcf7 ::placeholder { color: var(--nsb-muted); opacity: .85; }
.wpcf7 input[type="submit"] { justify-self: start; background: var(--wp--preset--color--accent); color: #fff; border: 0; padding: 1.1rem 2.4rem; font: inherit; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; cursor: pointer; transition: background .25s; border-radius: 0; }
[dir="rtl"] .wpcf7 input[type="submit"] { letter-spacing: 0; font-size: 1rem; }
.nsb-form-center .wpcf7 input[type="submit"] { justify-self: center; }
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent-strong); }
.nsb-cta--dark .wpcf7 input[type="submit"] { background: #fff; color: var(--wp--preset--color--contrast); }
.nsb-cta--dark .wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--sand); }
.wpcf7-not-valid-tip { color: #d92d4b; font-size: .8rem; margin-top: .3rem; }
.nsb-cta--dark .wpcf7-not-valid-tip { color: #ffb3c0; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .9rem 1rem; border: 1px solid var(--nsb-line) !important; font-size: .9rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f9d5c !important; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #d92d4b !important; }
.wpcf7-spinner { margin: 0 1rem; }
.nsb-form-box { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); --nsb-input-bg: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.nsb-page-hero { position: relative; overflow: hidden; isolation: isolate; background-color: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--border); }
.nsb-page-hero::after { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; inset-inline-end: -140px; top: -220px; background: radial-gradient(closest-side, rgba(32, 77, 164, .14), transparent); }
.nsb-page-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem) !important; max-width: 20ch; color: var(--wp--preset--color--contrast); }
.nsb-breadcrumb { font-size: .82rem; color: var(--nsb-muted); }

/* Rich content on singles */
.nsb-content > * + * { margin-top: 1.25rem; }
.nsb-content h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.nsb-content h3 { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }
.nsb-content ul:not(.nsb-checks) { padding-inline-start: 1.25rem; }
.nsb-content ul:not(.nsb-checks) li::marker { color: var(--wp--preset--color--accent); }
.nsb-aside { position: sticky; top: calc(var(--nsb-header-h) + 2rem); }

/* CTA (light band on inner pages, navy block with form on home) */
.nsb-cta { position: relative; overflow: hidden; isolation: isolate; }
.nsb-cta--dark { background: var(--wp--preset--color--contrast); }
.nsb-cta--dark::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(32, 77, 164, .55), transparent); }
.nsb-cta--dark .nsb-lead { color: rgba(255, 255, 255, .8); }

/* ---------- Footer (navy, like the business card) ---------- */
.nsb-footer { background: var(--wp--preset--color--contrast); color: rgba(255, 255, 255, .82); }
.nsb-footer .nsb-menu { flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; }
.nsb-footer .nsb-menu a { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.nsb-footer .nsb-menu a:hover { color: #fff; }
.nsb-footer .nsb-menu a::after { display: none; }
.nsb-footer .wp-block-separator { border-color: rgba(255, 255, 255, .14) !important; color: rgba(255, 255, 255, .14); }
.nsb-copy { font-size: .82rem; color: rgba(255, 255, 255, .6); margin: 0; }
.nsb-footer__tagline { color: rgba(255, 255, 255, .72); max-width: 34rem; margin-inline: auto !important; }

/* ---------- Section utilities (used by patterns) ---------- */
.nsb-pad { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.nsb-pad-sm { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.nsb-pad-hero { padding-top: clamp(4rem, 11vw, 9rem) !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
.nsb-pad-bottom { padding-bottom: var(--wp--preset--spacing--60) !important; }
.nsb-pad-box { padding: clamp(1.5rem, 4vw, 3rem) !important; }
.nsb-surface { background: var(--wp--preset--color--surface); }
.nsb-border-top { border-top: 1px solid var(--wp--preset--color--border); }
.nsb-center { text-align: center; margin-inline: auto !important; }
.nsb-kicker.nsb-center { justify-content: center; }
.nsb-kicker.nsb-center::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.nsb-center-row, .nsb-hero__actions { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1rem; align-items: center; }
.nsb-hero__actions .wp-block-buttons { margin: 0 !important; }
.nsb-hero__actions .wp-block-button__link { padding: 1.05rem 2rem; font-size: .9rem; }
.nsb-section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem) !important; }
.nsb-section-head h2 { margin-top: .75rem; }
.nsb-section-head .nsb-lead { margin-top: 1rem; }
.nsb-split { gap: clamp(2rem, 6vw, 5rem) !important; align-items: center !important; }
.nsb-split .nsb-checks { margin-top: 1.5rem; margin-bottom: 2rem; }
.nsb-about__media { position: relative; }
.nsb-about__media .nsb-badge { position: absolute; bottom: -1.5rem; inset-inline-end: -1rem; margin: 0; }
.nsb-about__media .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Reveal animation ---------- */
html.nsb-js .nsb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--nsb-ease), transform .8s var(--nsb-ease); }
html.nsb-js .nsb-reveal.is-visible { opacity: 1; transform: none; }
.editor-styles-wrapper .nsb-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .nsb-hero-slides { position: relative !important; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px !important; z-index: 0; inset: auto; }
.editor-styles-wrapper .nsb-hero-slides > .wp-block-image { position: relative !important; opacity: 1 !important; height: 120px !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Temporary image label (visible only to logged-in editors) */
.nsb-temp-img { position: relative; }
.logged-in .nsb-temp-img::after { content: "TEMP IMAGE · صورة مؤقتة"; position: absolute; top: 10px; inset-inline-start: 10px; background: #ffd400; color: #000; font: 700 10px/1 Montserrat, Tajawal, sans-serif; padding: 5px 7px; letter-spacing: .05em; }

/* =========================================================
   BeAgency-inspired details (v1.1)
   ========================================================= */
:root { --nsb-r: 24px; --nsb-r-sm: 14px; --nsb-header-h: 76px; --nsb-header-gap: 14px; }

/* Bold display headings — uppercase in English only */
h1, h2, h3, .nsb-partner__name, .nsb-stat__num, .nsb-statcard__num, .nsb-badge strong { font-family: var(--wp--preset--font-family--heading); }
html[lang^="en"] :is(h1, h2, .nsb-service__title, .nsb-group__title, .nsb-statcard__num) { text-transform: uppercase; }
html[lang^="en"] h1 { letter-spacing: -0.02em; }
[dir="rtl"] :is(h1, h2, h3) { font-weight: 800; letter-spacing: 0; }
.nsb-card__title, .nsb-service__title, .nsb-step h3, .nsb-group__title { font-family: var(--wp--preset--font-family--heading); }
html[lang^="en"] .nsb-service__title { font-size: 1.05rem !important; line-height: 1.35; }

/* Floating pill header (fixed; the home hero runs underneath it) */
.nsb-header { position: fixed; top: 0; inset-inline: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding-top: var(--nsb-header-gap); box-shadow: none !important; pointer-events: none; }
.admin-bar .nsb-header { top: var(--wp-admin--admin-bar--height, 32px); }
.nsb-header > * { pointer-events: auto; }
.nsb-header__inner { min-height: var(--nsb-header-h); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid rgba(0, 29, 87, .08); border-radius: 999px; padding-inline: 1.75rem .55rem !important; box-shadow: 0 10px 40px rgba(0, 29, 87, .10); transition: box-shadow .3s; }
.nsb-header.is-scrolled .nsb-header__inner { box-shadow: 0 14px 44px rgba(0, 29, 87, .16); }
body:not(.home) .wp-site-blocks { padding-top: calc(var(--nsb-header-h) + var(--nsb-header-gap) * 2); }
.nsb-header .nsb-btn { border-radius: 999px; }
.nsb-lang { border-radius: 999px; overflow: hidden; }
@media (max-width: 1080px) {
	.nsb-header__inner { padding-inline: 1.25rem .5rem !important; }
	.nsb-nav__toggle { border-radius: 999px; }
	.nsb-nav__panel { top: calc(var(--nsb-header-h) + var(--nsb-header-gap) * 2); inset-inline: clamp(.75rem, 3vw, 1.5rem); bottom: auto; max-height: calc(100svh - var(--nsb-header-h) - 3rem); border-radius: var(--nsb-r); box-shadow: 0 20px 60px rgba(0, 29, 87, .18); border: 1px solid var(--wp--preset--color--border); }
	html.nsb-menu-open .nsb-header { background: transparent; }
}
@media (max-width: 560px) { :root { --nsb-header-h: 62px; --nsb-header-gap: 10px; } .nsb-header__inner { padding-inline: 1rem .4rem !important; } }

/* Pill buttons */
.nsb-btn, .wp-block-button__link, .wpcf7 input[type="submit"] { border-radius: 999px !important; }
.nsb-btn { text-transform: none; letter-spacing: .01em; }
.nsb-btn--md { font-size: .9rem; padding: .95rem 1.7rem; }
.nsb-btn--lg { font-size: 1rem; padding: 1.15rem 2.2rem; }
.nsb-btn--sm { font-size: .82rem; padding: .7rem 1.2rem; }
.nsb-btn .nsb-icon { background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px; width: 22px; height: 22px; }

/* Rounded surfaces */
.nsb-card, .nsb-service, .nsb-sector, .nsb-project, .nsb-partner, .nsb-form-box, .nsb-contact--cards li, .nsb-badge, .nsb-statcard { border-radius: var(--nsb-r); }
.nsb-project, .nsb-sector { overflow: hidden; }
.nsb-frame img, .nsb-about__media .wp-block-image img { border-radius: var(--nsb-r); }
.nsb-frame::before { border-end-start-radius: var(--nsb-r); }
.nsb-group__icon, .nsb-hero-icon, .nsb-contact__icon { border-radius: var(--nsb-r-sm); }
.nsb-chip { border-radius: 999px; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { border-radius: var(--nsb-r-sm); border: 1px solid var(--nsb-line); }
.nsb-filter { gap: .5rem; }
.nsb-filter__btn { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); text-transform: none; letter-spacing: 0; font-size: .88rem; }
.nsb-filter__btn::after { display: none; }
.nsb-filter__btn.is-active { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: #fff; }
.nsb-filter__btn:not(.is-active):hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.nsb-service { background: var(--wp--preset--color--surface); border-color: transparent; }
.nsb-service__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--nsb-r-sm); background: #fff; }
.nsb-service:hover .nsb-service__icon, .nsb-service:focus-within .nsb-service__icon { background: rgba(255, 255, 255, .12); }
.nsb-card { border-color: transparent; background: var(--wp--preset--color--surface); }
.nsb-card:hover { background: #fff; }
.nsb-partner { border: 0; }

/* Full-screen hero with the floating header on top */
.nsb-hero-slider { min-height: 100svh !important; border-radius: 0 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.admin-bar .nsb-hero-slider { min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px)) !important; }
.nsb-hero-slider .nsb-hero__content { padding-top: calc(var(--nsb-header-h) + 5rem) !important; padding-bottom: 6rem !important; }
.nsb-hero-slider .nsb-kicker { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .55rem 1.1rem; letter-spacing: .16em; backdrop-filter: blur(8px); }
.nsb-hero-slider .nsb-kicker::before, .nsb-hero-slider .nsb-kicker::after { display: none; }
.nsb-hero-slider h1 { font-size: clamp(2.2rem, 5.6vw, 5rem) !important; max-width: 16ch; }
[dir="rtl"] .nsb-hero-slider h1 { font-size: clamp(2.4rem, 6vw, 5.2rem) !important; }

/* Intro + stat cards (2×2, one highlighted) */
.nsb-statcards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nsb-statcard { background: var(--wp--preset--color--surface); padding: clamp(1.4rem, 3vw, 2.2rem) !important; min-height: 190px; display: flex !important; flex-direction: column; justify-content: flex-end; position: relative; margin: 0 !important; }
.nsb-statcard::before { content: ""; position: absolute; top: 1.4rem; inset-inline-end: 1.4rem; width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--accent); }
.nsb-statcard__num { font-size: clamp(2rem, 3.6vw, 3rem) !important; font-weight: 800; color: var(--wp--preset--color--contrast); line-height: 1 !important; margin: 0 0 .7rem !important; }
.nsb-statcard__label { margin: 0 !important; color: var(--nsb-muted); font-size: .92rem; line-height: 1.5; }
.nsb-statcard--accent { background: var(--wp--preset--color--accent); }
.nsb-statcard--accent::before { background: #fff; }
.nsb-statcard--accent :is(.nsb-statcard__num, .nsb-statcard__label) { color: #fff; }
.nsb-statcard:nth-child(3) { background: var(--wp--preset--color--contrast); }
.nsb-statcard:nth-child(3) :is(.nsb-statcard__num, .nsb-statcard__label) { color: #fff; }
.nsb-statcard:nth-child(3)::before { background: #8fb0f5; }
@media (max-width: 560px) { .nsb-statcards { grid-template-columns: 1fr; } }
.nsb-sticky-col { position: sticky; top: calc(var(--nsb-header-h) + 3rem); align-self: flex-start; }

/* Navy rounded CTA block */
.nsb-cta--dark { margin-inline: clamp(.75rem, 2.5vw, 2rem) !important; border-radius: clamp(24px, 3vw, 40px); }
.nsb-cta--dark .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { border-color: rgba(255, 255, 255, .14); }
.nsb-cta-wrap { padding-bottom: clamp(.75rem, 2.5vw, 2rem); }

/* Page hero on inner pages: rounded light panel */
.nsb-page-hero { margin-inline: clamp(.75rem, 2.5vw, 2rem) !important; border-radius: clamp(24px, 3vw, 40px); border: 0; }

/* Footer */
.nsb-footer { border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; }

/* =========================================================
   v1.2 — clean, reference-matched details
   No decorative lines, grids or corner frames.
   ========================================================= */
.nsb-kicker::before, .nsb-kicker::after, .nsb-kicker.nsb-center::after { display: none !important; content: none !important; }
.nsb-kicker { font-family: var(--wp--preset--font-family--body); font-size: .95rem !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--accent); }
.nsb-gridlines { background-image: none !important; }
.nsb-frame::before { display: none !important; }
.nsb-stats .wp-block-column::before { display: none !important; }
.nsb-step { border-top: 0 !important; background: var(--wp--preset--color--surface); border-radius: var(--nsb-r); padding: 1.75rem !important; }
.nsb-step::before { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 900; letter-spacing: 0; margin-bottom: 1rem; }
.nsb-group__head { border-bottom: 0; padding-bottom: 0; }
.nsb-page-hero::after, .nsb-cta--dark::before, .nsb-hero::before { display: none !important; }
.nsb-facts { border-top: 0; background: var(--wp--preset--color--surface); border-radius: var(--nsb-r); padding: .5rem 1.5rem; }
.nsb-facts__row:last-child { border-bottom: 0; }
.nsb-footer .wp-block-separator { opacity: .5; }

/* Headings: Unbounded black, tight leading (reference: 48px / 900 / lh 1) */
:is(h1, h2) { font-weight: 900 !important; line-height: 1.02 !important; }
html[lang^="en"] h2 { font-size: clamp(1.8rem, 3.4vw, 3rem) !important; }
[dir="rtl"] :is(h1, h2) { line-height: 1.3 !important; font-weight: 800 !important; }
h3 { font-weight: 800; }
.nsb-accent { color: var(--wp--preset--color--accent) !important; }

/* Header — centred pill like the reference (≈800px, 78px tall, 1px accent border, plain links) */
.nsb-header { padding-top: 28px; }
.nsb-header__inner { max-width: 1000px !important; margin-inline: auto !important; min-height: 78px; padding: 0 1.25rem 0 2.25rem !important; gap: 1.5rem; border: 1px solid rgba(32, 77, 164, .45); background: rgba(255, 255, 255, .96); box-shadow: 0 12px 40px rgba(0, 29, 87, .08); }
[dir="rtl"] .nsb-header__inner { padding: 0 2.25rem 0 1.25rem !important; }
.nsb-brand__img { height: 30px; }
.nsb-header .nsb-menu { gap: 0; }
.nsb-header .nsb-menu a { font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 500; letter-spacing: 0; padding: 8px 20px; color: var(--wp--preset--color--contrast); border-radius: 999px; transition: background .2s, color .2s; }
.nsb-header .nsb-menu a::after { display: none !important; }
.nsb-header .nsb-menu a:hover { background: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--accent); }
.nsb-header .nsb-menu .current-menu-item > a, .nsb-header .nsb-menu .current_page_item > a { color: var(--wp--preset--color--accent); }
[dir="rtl"] .nsb-header .nsb-menu a { font-size: 16px; font-weight: 600; }
.nsb-header .nsb-lang { border: 0; gap: 2px; }
.nsb-header .nsb-lang a { min-width: 0; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.nsb-header .nsb-lang a.is-current { background: transparent; color: var(--wp--preset--color--contrast); }
.nsb-header .nsb-lang a:not(.is-current):hover { background: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--accent); }
.nsb-header .nsb-lang li:first-child a.is-current, .nsb-header .nsb-lang a.is-current { text-decoration: none; }
body:not(.home) .wp-site-blocks { padding-top: calc(78px + 56px); }
@media (max-width: 1080px) {
	.nsb-header { padding-top: 14px; }
	.nsb-header__inner { min-height: 64px; padding: 0 .5rem 0 1.25rem !important; }
	[dir="rtl"] .nsb-header__inner { padding: 0 1.25rem 0 .5rem !important; }
	.nsb-header .nsb-menu a { font-size: 1.3rem; padding: 1rem 0; border-radius: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.nsb-header .nsb-menu li:last-child a { border-bottom: 0; }
	.nsb-header .nsb-menu a:hover { background: transparent; }
	.nsb-nav__panel { top: 92px; }
	body:not(.home) .wp-site-blocks { padding-top: 100px; }
}
@media (max-width: 560px) { .nsb-brand__img { height: 24px; } }

/* Buttons — reference style: Syne 600, outline pill 1.6px; primary filled */
.nsb-btn, .wp-block-button__link, .wpcf7 input[type="submit"] { font-family: var(--wp--preset--font-family--button) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; }
[dir="rtl"] :is(.nsb-btn, .wp-block-button__link, .wpcf7 input[type="submit"]) { font-family: Tajawal, sans-serif !important; font-weight: 700 !important; }
.nsb-btn--md, .nsb-btn--lg { font-size: 1.05rem; padding: 1rem 2rem; }
.nsb-btn .nsb-icon { background: none; padding: 0; width: 18px; height: 18px; }
.nsb-btn--outline, .is-style-outline > .wp-block-button__link { border-width: 1.6px !important; border-color: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--contrast) !important; background: transparent; }
.nsb-btn--outline:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--accent) !important; color: #fff !important; }
:is(.nsb-hero-slider, .nsb-cta--dark) .is-style-outline > .wp-block-button__link { border-color: rgba(255, 255, 255, .7) !important; color: #fff !important; }
:is(.nsb-hero-slider, .nsb-cta--dark) .is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--contrast) !important; }
.nsb-card__more { font-family: var(--wp--preset--font-family--button); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.nsb-filter__btn { font-family: var(--wp--preset--font-family--body); font-weight: 600; }

/* Hero kicker: soft pill instead of lines */
.nsb-hero-slider .nsb-kicker { font-size: .9rem !important; letter-spacing: 0 !important; text-transform: none; }
.nsb-hero__dots button { border-radius: 999px; height: 6px; width: 6px; }
.nsb-hero__dots button.is-active { width: 28px; }

/* Cards on light-grey sections stay white */
.nsb-surface :is(.nsb-service, .nsb-card, .nsb-step, .nsb-statcard:not(.nsb-statcard--accent):not(:nth-child(3))) { background: #fff; }
.nsb-surface .nsb-service__icon { background: var(--wp--preset--color--accent-light); }
.nsb-surface { border-radius: clamp(24px, 3vw, 40px); margin-inline: clamp(.75rem, 2.5vw, 2rem) !important; }

/* Secondary headings stay compact */
html[lang^="en"] h2.nsb-related__title, h2.nsb-related__title { font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important; line-height: 1.15 !important; }
html[lang^="en"] h2.nsb-group__title, h2.nsb-group__title { font-size: clamp(1.3rem, 2.2vw, 1.9rem) !important; line-height: 1.1 !important; }
.nsb-content h2 { font-size: clamp(1.3rem, 2vw, 1.75rem) !important; line-height: 1.15 !important; }
.nsb-content h3 { font-size: 1.15rem !important; }
.nsb-content p { font-size: 1.05rem; }

/* Solution group cards with photo */
.nsb-service.has-media { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.nsb-service__media { display: block !important; position: relative; width: 100%; height: 0; padding-bottom: 62%; overflow: hidden; flex: none; }
.nsb-service__media img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; transition: transform .7s var(--nsb-ease); }
.nsb-service.has-media:hover .nsb-service__media img { transform: scale(1.05); }
.nsb-service.has-media > :not(.nsb-service__media) { margin-inline: 1.75rem; }
.nsb-service.has-media .nsb-service__icon { margin-top: -28px; position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(0, 29, 87, .15); margin-bottom: 1rem; width: 56px; height: 56px; background: #fff !important; }
.nsb-service.has-media .nsb-service__icon .nsb-icon { width: 30px; height: 30px; }
.nsb-service.has-media:hover .nsb-service__icon, .nsb-service.has-media:focus-within .nsb-service__icon { background: #fff !important; color: var(--wp--preset--color--accent); }
.nsb-service.has-media .nsb-service__items { margin-bottom: 1.75rem; }
.nsb-service.has-media .nsb-service__text:last-child { margin-bottom: 1.75rem; }
/* Photo cards: keep text colours on hover (the old hover turned text white) */
.nsb-service.has-media:hover, .nsb-service.has-media:focus-within { background: #fff !important; border-color: transparent; }
.nsb-service.has-media:hover .nsb-service__title a, .nsb-service.has-media:focus-within .nsb-service__title a { color: var(--wp--preset--color--accent) !important; }
.nsb-service.has-media:hover .nsb-service__text, .nsb-service.has-media:focus-within .nsb-service__text { color: var(--nsb-muted) !important; }
.nsb-service.has-media:hover .nsb-service__items, .nsb-service.has-media:focus-within .nsb-service__items { color: var(--nsb-fg) !important; }
