/*!
 * Tqnyat Nova - design system
 *
 * No Bootstrap, no Owl, no FontAwesome: the parent's stack is dequeued and
 * this file stands alone. Every colour is a --nv-* custom property emitted by
 * inc/palette.php, so nothing here hardcodes a hue.
 */

/* ==========================================================================
   Fonts - Tajawal, reused from the parent theme's assets
   ========================================================================== */

@font-face { font-family: "Nova"; font-weight: 400; font-display: swap;
    src: url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Regular.woff2") format("woff2"),
         url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Regular.woff") format("woff"); }
@font-face { font-family: "Nova"; font-weight: 500; font-display: swap;
    src: url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Medium.woff2") format("woff2"),
         url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Medium.woff") format("woff"); }
@font-face { font-family: "Nova"; font-weight: 700; font-display: swap;
    src: url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Bold.woff2") format("woff2"),
         url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-Bold.woff") format("woff"); }
@font-face { font-family: "Nova"; font-weight: 800; font-display: swap;
    src: url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-ExtraBold.woff2") format("woff2"),
         url("../../../wp-tqnyat-theme/assets/fonts/Tajawal-ExtraBold.woff") format("woff"); }

/* ==========================================================================
   Scale - the colour tokens arrive from inc/palette.php
   ========================================================================== */

:root {
    --nv-font: "Nova", "Segoe UI", Tahoma, Arial, sans-serif;

    --nv-r-xs: 8px;
    --nv-r-sm: 12px;
    --nv-r:    18px;
    --nv-r-lg: 26px;
    --nv-r-pill: 999px;

    --nv-sh-1: 0 1px 2px rgba(var(--nv-ink-rgb), .05);
    --nv-sh-2: 0 2px 8px rgba(var(--nv-ink-rgb), .06), 0 18px 36px -26px rgba(var(--nv-ink-rgb), .35);
    --nv-sh-3: 0 8px 20px rgba(var(--nv-ink-rgb), .09), 0 32px 60px -30px rgba(var(--nv-ink-rgb), .4);

    --nv-band: clamp(3.25rem, 7vw, 6rem);
    --nv-gap:  clamp(1rem, 2.2vw, 1.75rem);
    --nv-wrap: 1180px;

    --nv-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Class-based display rules outrank the UA sheet's [hidden] rule, and the
   hero slides are .nv-hero__grid { display: grid }. Without this every slide
   renders at once. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.nv {
    margin: 0;
    background: var(--nv-surface);
    color: var(--nv-body);
    font-family: var(--nv-font);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.85;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; }
img, svg, video { height: auto; display: block; }

a { color: var(--nv-brand-dark); text-decoration: none; text-underline-offset: 3px; transition: color .2s var(--nv-ease); }
a:hover { color: var(--nv-brand); }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--nv-ink); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
    outline: 3px solid var(--nv-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--nv-brand); color: #fff; }

.nv-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }

.nv-wrap { width: 100%; max-width: var(--nv-wrap); margin-inline: auto; padding-inline: 20px; }

.nv-skip {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.nv-skip:focus {
    position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 999;
    width: auto; height: auto; clip-path: none;
    padding: 12px 22px; background: var(--nv-surface); color: var(--nv-ink);
    border-radius: var(--nv-r-sm); box-shadow: var(--nv-sh-2); font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.nv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 50px; padding: .6rem 1.8rem;
    border: 1px solid transparent; border-radius: var(--nv-r-pill);
    background: var(--nv-brand); color: #fff;
    font-family: inherit; font-size: 1rem; font-weight: 700; white-space: nowrap; cursor: pointer;
    box-shadow: 0 12px 24px -18px rgba(var(--nv-brand-rgb), 1);
    transition: background .2s var(--nv-ease), transform .16s var(--nv-ease), box-shadow .2s var(--nv-ease);
}
.nv-btn:hover { background: var(--nv-brand-dark); color: #fff; transform: translateY(-2px); }
.nv-btn:active { transform: translateY(0); }

.nv-btn--ghost { background: transparent; color: var(--nv-brand-dark); border-color: var(--nv-line); box-shadow: none; }
.nv-btn--ghost:hover { background: var(--nv-brand-soft); color: var(--nv-brand-dark); border-color: var(--nv-brand-soft); }

.nv-btn--sm { min-height: 42px; padding: .35rem 1.2rem; font-size: .94rem; }
.nv-btn--block { width: 100%; }

.nv-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--nv-brand-dark); font-weight: 700;
}
.nv-link .nv-icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--nv-ease); }
.nv-link:hover .nv-icon { transform: translateX(-3px); }

/* ==========================================================================
   Header
   ========================================================================== */

.nv-topbar {
    background: var(--nv-brand-dark);
    color: rgba(255, 255, 255, .92);
    font-size: .88rem;
}
.nv-topbar__in { display: flex; align-items: center; gap: 1.2rem; min-height: 42px; flex-wrap: wrap; }
.nv-topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: inherit; }
.nv-topbar__item:hover { color: #fff; }
.nv-topbar__item .nv-icon { width: 15px; height: 15px; opacity: .85; }
.nv-topbar__spacer { flex: 1; }
.nv-topbar__social {
    display: grid; place-items: center; width: 28px; height: 28px;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--nv-r-pill);
    color: inherit; font-size: .8rem; font-weight: 700;
}
.nv-topbar__social:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.nv-bar {
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--nv-line);
}
/* The blur sits on a pseudo-element: backdrop-filter on .nv-bar itself would
   make it the containing block for the fixed mobile drawer inside it. */
.nv-bar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
}
.nv-bar.is-stuck { box-shadow: var(--nv-sh-1); }
.nv-bar__in { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
/* The bar is wider than the content column so the full menu fits on one line. */
.nv-bar .nv-wrap { max-width: 1280px; }

.nv-brand { display: inline-flex; align-items: center; flex: none; }
.nv-brand img { max-height: 48px; width: auto; }
.nv-brand__text { font-size: 1.15rem; font-weight: 800; color: var(--nv-ink); }

.nv-nav { margin-inline-start: auto; }
.nv-nav__list { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nv-nav__list li { position: relative; }
.nv-nav__list a {
    display: inline-block; padding: .5rem .65rem; border-radius: var(--nv-r-pill);
    color: var(--nv-body); font-weight: 500; font-size: .97rem;
    transition: background .18s var(--nv-ease), color .18s var(--nv-ease);
}
.nv-nav__list a:hover { background: var(--nv-brand-soft); color: var(--nv-brand-dark); }
.nv-nav__list .current-menu-item > a,
.nv-nav__list .current_page_item > a,
.nv-nav__list .current-menu-ancestor > a { background: var(--nv-brand); color: #fff; }

/* dropdown */
.nv-nav__list .sub-menu {
    position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 20;
    min-width: 210px; padding: .4rem;
    background: var(--nv-surface); border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-sm); box-shadow: var(--nv-sh-2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s var(--nv-ease), transform .18s var(--nv-ease), visibility .18s;
}
.nv-nav__list li:hover > .sub-menu,
.nv-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nv-nav__list .sub-menu a { display: block; border-radius: var(--nv-r-xs); }

.nv-bar__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nv-burger {
    display: none; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--nv-line); border-radius: var(--nv-r-sm);
    background: var(--nv-surface); color: var(--nv-ink); cursor: pointer;
}
.nv-burger .nv-icon { width: 22px; height: 22px; }
.nv-burger__close { display: none; }
.nv-burger[aria-expanded="true"] .nv-burger__open { display: none; }
.nv-burger[aria-expanded="true"] .nv-burger__close { display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */

.nv-main { display: block; }

.nv-section { padding-block: var(--nv-band); }
.nv-section--alt { background: var(--nv-surface-alt); }
.nv-section--tight { padding-block: calc(var(--nv-band) * .6); }

.nv-head { max-width: 720px; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.nv-head--center { margin-inline: auto; text-align: center; }

.nv-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-bottom: .75rem; padding: .3rem .9rem;
    background: var(--nv-brand-soft); color: var(--nv-brand-dark);
    border-radius: var(--nv-r-pill); font-size: .84rem; font-weight: 700;
}
.nv-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--nv-brand); }

.nv-h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .4rem; }
.nv-h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.nv-lead { max-width: 64ch; color: var(--nv-muted); font-size: clamp(1rem, 1.5vw, 1.1rem); margin: 0; }
.nv-head--center .nv-lead { margin-inline: auto; }

.nv-grid { display: grid; gap: var(--nv-gap); }
.nv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nv-grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.nv-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.nv-empty {
    padding: 3rem 1.5rem; text-align: center;
    background: var(--nv-surface-alt); border: 1px dashed var(--nv-line);
    border-radius: var(--nv-r); color: var(--nv-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.nv-hero {
    position: relative; overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5rem);
    background:
        radial-gradient(80% 120% at 85% 0%, var(--nv-brand-soft) 0%, transparent 60%),
        var(--nv-surface);
    border-bottom: 1px solid var(--nv-line);
}
.nv-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.nv-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.22; margin-bottom: .6rem; text-wrap: balance; }
.nv-hero__text { max-width: 52ch; color: var(--nv-muted); font-size: clamp(1rem, 1.7vw, 1.18rem); margin-bottom: 1.8rem; }
.nv-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.nv-hero__media { position: relative; }
.nv-hero__media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--nv-r-lg); box-shadow: var(--nv-sh-3);
}
.nv-hero__badge {
    position: absolute; inset-block-end: -18px; inset-inline-start: -14px;
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.1rem; background: var(--nv-surface);
    border: 1px solid var(--nv-line); border-radius: var(--nv-r);
    box-shadow: var(--nv-sh-2); font-weight: 700; color: var(--nv-ink);
}
.nv-hero__badge .nv-icon { width: 22px; height: 22px; color: var(--nv-brand); }

.nv-hero__dots { display: flex; gap: .4rem; margin-top: 1.6rem; }
.nv-hero__dots button {
    width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer;
    border-radius: var(--nv-r-pill); background: var(--nv-line);
    transition: width .25s var(--nv-ease), background .25s var(--nv-ease);
}
.nv-hero__dots button[aria-current="true"] { width: 26px; background: var(--nv-brand); }

/* ==========================================================================
   Stats
   ========================================================================== */

.nv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--nv-gap); }
.nv-stat {
    padding: 1.6rem 1.2rem; text-align: center;
    background: var(--nv-surface); border: 1px solid var(--nv-line);
    border-radius: var(--nv-r); box-shadow: var(--nv-sh-1);
}
.nv-stat__n {
    display: block; margin-bottom: .1rem;
    color: var(--nv-brand-dark); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800;
    font-variant-numeric: tabular-nums; line-height: 1.2;
}
.nv-stat__t { color: var(--nv-muted); font-weight: 500; }

/* ==========================================================================
   Cards
   ========================================================================== */

.nv-card {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    background: var(--nv-surface); border: 1px solid var(--nv-line);
    border-radius: var(--nv-r); box-shadow: var(--nv-sh-1);
    transition: transform .22s var(--nv-ease), box-shadow .22s var(--nv-ease), border-color .22s var(--nv-ease);
}
.nv-card:hover { transform: translateY(-4px); border-color: var(--nv-brand-soft); box-shadow: var(--nv-sh-2); }

.nv-card__media { position: relative; overflow: hidden; background: var(--nv-surface-alt); }
.nv-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s var(--nv-ease); }
.nv-card:hover .nv-card__media img { transform: scale(1.05); }

.nv-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1.2rem 1.3rem 1.4rem; }
.nv-card__title { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.nv-card__title a { color: var(--nv-ink); }
.nv-card:hover .nv-card__title a { color: var(--nv-brand-dark); }
.nv-card__meta { display: inline-flex; align-items: center; gap: .4rem; color: var(--nv-muted); font-size: .86rem; }
.nv-card__meta .nv-icon { width: 15px; height: 15px; }
.nv-card__excerpt { margin: 0; color: var(--nv-muted); font-size: .96rem; }
.nv-card__foot { margin-top: auto; padding-top: .9rem; }

/* service tile */
.nv-service { align-items: center; padding: 1.9rem 1.3rem; text-align: center; }
.nv-service__icon {
    display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 1rem;
    background: var(--nv-brand-soft); border-radius: var(--nv-r);
}
.nv-service__icon img { width: 40px; height: 40px; object-fit: contain; }
.nv-service__icon .nv-icon { width: 30px; height: 30px; color: var(--nv-brand); }
.nv-service .nv-card__title { font-size: 1.06rem; }

/* member */
.nv-member { align-items: center; padding: 1.6rem 1rem; text-align: center; }
.nv-member__avatar {
    display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: .9rem;
    border-radius: var(--nv-r-pill); background: var(--nv-brand-soft);
    color: var(--nv-brand-dark); font-size: 1.6rem; font-weight: 800;
    overflow: hidden;
}
.nv-member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nv-member__role {
    display: inline-block; padding: .18rem .8rem; border-radius: var(--nv-r-pill);
    background: var(--nv-surface-alt); color: var(--nv-muted); font-size: .85rem;
}

/* partner */
.nv-partner { display: grid; place-items: center; min-height: 140px; padding: 1.2rem; }
.nv-partner img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s var(--nv-ease), opacity .25s var(--nv-ease); }
.nv-partner:hover img { filter: none; opacity: 1; }

/* document */
.nv-doc { flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; }
.nv-doc__icon {
    display: grid; place-items: center; flex: none; width: 52px; height: 52px;
    border-radius: var(--nv-r-sm); background: var(--nv-brand-soft); color: var(--nv-brand-dark);
}
.nv-doc__icon .nv-icon { width: 24px; height: 24px; }
.nv-doc__body { flex: 1; min-width: 0; }
.nv-doc__title { margin: 0 0 .1rem; font-size: 1.02rem; line-height: 1.5; color: var(--nv-ink); }
.nv-doc__hint { color: var(--nv-muted); font-size: .85rem; }
.nv-doc__get { flex: none; }

/* video */
.nv-video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--nv-ink); }
.nv-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* gallery */
.nv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--nv-gap); }
.nv-shot { position: relative; overflow: hidden; border-radius: var(--nv-r); background: var(--nv-surface-alt); }
.nv-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--nv-ease); }
.nv-shot:hover img { transform: scale(1.06); }
.nv-shot__cap {
    position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.5rem .9rem .8rem;
    background: linear-gradient(to top, rgba(var(--nv-ink-rgb), .85), transparent);
    color: #fff; font-weight: 700; font-size: .95rem;
}

/* ==========================================================================
   Page head + prose
   ========================================================================== */

.nv-page-head {
    padding-block: clamp(2.25rem, 5vw, 3.75rem);
    background:
        radial-gradient(70% 140% at 90% 0%, var(--nv-brand-soft) 0%, transparent 65%),
        var(--nv-surface-alt);
    border-bottom: 1px solid var(--nv-line);
}
.nv-crumbs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; color: var(--nv-muted); font-size: .88rem; }
.nv-crumbs a { color: var(--nv-muted); }
.nv-crumbs a:hover { color: var(--nv-brand-dark); }
.nv-crumbs span[aria-current] { color: var(--nv-ink); font-weight: 700; }
.nv-page-head__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .35rem; }
.nv-page-head__sub { max-width: 62ch; margin: 0; color: var(--nv-muted); }

.nv-prose { max-width: 74ch; }
.nv-prose h2 { margin-top: 2rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--nv-brand-dark); }
.nv-prose h2:first-child { margin-top: 0; }
.nv-prose h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.nv-prose p { line-height: 1.95; }
.nv-prose ul { margin: 0 0 1.25rem; }
.nv-prose ul li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .5rem; }
.nv-prose ul li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .78em;
    width: 8px; height: 8px; border-radius: 2px; background: var(--nv-brand);
}
.nv-prose img { border-radius: var(--nv-r); }
.nv-prose blockquote {
    margin: 1.5rem 0; padding: 1.1rem 1.3rem;
    background: var(--nv-brand-soft); border-inline-start: 4px solid var(--nv-brand);
    border-radius: var(--nv-r-sm); color: var(--nv-ink);
}

.nv-split { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.nv-aside {
    position: sticky; top: 98px;
    padding: 1.4rem; background: var(--nv-surface-alt);
    border: 1px solid var(--nv-line); border-radius: var(--nv-r);
}
.nv-aside h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.nv-aside ul li { margin-bottom: .55rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.nv-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--nv-gap); }
.nv-contact-card {
    display: flex; align-items: flex-start; gap: .9rem; padding: 1.3rem;
    background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-r);
}
.nv-contact-card__icon {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px;
    border-radius: var(--nv-r-pill); background: var(--nv-brand-soft); color: var(--nv-brand-dark);
}
.nv-contact-card__icon .nv-icon { width: 20px; height: 20px; }
.nv-contact-card h3 { margin: 0 0 .15rem; font-size: .92rem; color: var(--nv-muted); font-weight: 500; }
.nv-contact-card p { margin: 0; font-weight: 700; color: var(--nv-ink); }
.nv-map { margin-top: var(--nv-gap); border-radius: var(--nv-r); overflow: hidden; border: 1px solid var(--nv-line); }
.nv-map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* form beside the contact cards */
.nv-contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--nv-gap); align-items: start; }
.nv-contact-grid--stack { grid-template-columns: 1fr; }

.nv-form-panel {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: var(--nv-surface); border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg); box-shadow: var(--nv-sh-2);
    scroll-margin-top: 110px;
}
.nv-form-panel__title { margin: 0 0 .25rem; font-size: 1.4rem; }
.nv-form-panel__sub { margin: 0 0 1.4rem; color: var(--nv-muted); font-size: .92rem; }

.nv-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.nv-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.nv-field--wide { grid-column: 1 / -1; }
.nv-field__label { color: var(--nv-ink); font-weight: 700; font-size: .95rem; }
.nv-req { color: var(--nv-accent); margin-inline-start: .15rem; }

.nv-input {
    width: 100%; min-height: 50px; padding: .7rem 1rem;
    background: var(--nv-surface-alt); color: var(--nv-ink);
    border: 1px solid var(--nv-line); border-radius: var(--nv-r-sm);
    font: inherit; font-size: 1rem; line-height: 1.6;
    transition: border-color .18s var(--nv-ease), box-shadow .18s var(--nv-ease), background .18s var(--nv-ease);
}
textarea.nv-input { min-height: 160px; resize: vertical; }
.nv-input[dir="ltr"] { text-align: end; } /* LTR values in an RTL form still line up with the labels. */
.nv-input::placeholder { color: var(--nv-muted); opacity: .7; }
.nv-input:hover { border-color: rgba(var(--nv-brand-rgb), .45); }
.nv-input:focus {
    outline: none; background: var(--nv-surface); border-color: var(--nv-brand);
    box-shadow: 0 0 0 4px rgba(var(--nv-brand-rgb), .14);
}

/* Errors are red whatever the palette, so they never read as brand colour. */
.nv-field.is-invalid .nv-input { border-color: #c0392b; background: #fdf3f2; }
.nv-field.is-invalid .nv-input:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }
.nv-field__error { margin: 0; color: #b03a2e; font-size: .88rem; font-weight: 500; }

.nv-alert { margin-bottom: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--nv-r-sm); font-weight: 500; }
.nv-alert--error { background: #fdf3f2; color: #8e2a20; border: 1px solid #f2c9c4; }

.nv-form__submit { margin-top: 1.4rem; min-width: 190px; }
.nv-form__submit .nv-icon { width: 18px; height: 18px; }
.nv-form__submit[disabled] { opacity: .7; cursor: progress; transform: none; }

.nv-form-done { padding: 1.5rem 0; text-align: center; }
.nv-form-done__icon {
    display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1rem;
    border-radius: var(--nv-r-pill); background: var(--nv-brand-soft); color: var(--nv-brand-dark);
}
.nv-form-done__icon .nv-icon { width: 32px; height: 32px; stroke-width: 2.2; }
.nv-form-done h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.nv-form-done p { max-width: 420px; margin: 0 auto 1.4rem; color: var(--nv-body); }

/* ==========================================================================
   Footer
   ========================================================================== */

.nv-footer { background: var(--nv-footer-bg); color: var(--nv-footer-ink); padding-top: clamp(2.5rem, 5vw, 4rem); }
.nv-footer a { color: var(--nv-footer-ink); }
.nv-footer a:hover { color: #fff; }
.nv-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 2.5rem; }
.nv-footer__logo { max-height: 52px; width: auto; margin-bottom: 1rem; }
.nv-footer__logo-text { display: block; margin-bottom: 1rem; font-size: 1.2rem; font-weight: 800; color: #fff; }
.nv-footer__about { max-width: 46ch; color: rgba(255, 255, 255, .72); line-height: 1.9; }
.nv-footer__title { margin: 0 0 1rem; font-size: 1rem; color: #fff; }
.nv-footer__list li, .nv-footer__contact li { margin-bottom: .55rem; }
.nv-footer__contact li { display: flex; align-items: flex-start; gap: .55rem; }
.nv-footer__contact .nv-icon { width: 17px; height: 17px; margin-top: .45em; flex: none; opacity: .8; }
.nv-footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.nv-footer__social a {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--nv-r-pill);
    font-weight: 700; transition: background .2s var(--nv-ease), border-color .2s var(--nv-ease);
}
.nv-footer__social a:hover { background: var(--nv-brand); border-color: var(--nv-brand); color: #fff; }
.nv-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.nv-footer__bar-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.nv-footer__bar p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   To top
   ========================================================================== */

.nv-totop {
    position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 80;
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border: 0; border-radius: var(--nv-r-pill); cursor: pointer;
    background: var(--nv-brand); color: #fff; box-shadow: var(--nv-sh-2);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s var(--nv-ease), transform .25s var(--nv-ease), visibility .25s, background .2s;
}
.nv-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.nv-totop:hover { background: var(--nv-brand-dark); }
.nv-totop .nv-icon { width: 22px; height: 22px; transform: rotate(180deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* The full menu needs ~1280px on one line; below that it moves to the drawer. */
@media (max-width: 1279px) {
    .nv-burger { display: grid; }
    .nv-bar__actions { position: relative; z-index: 96; margin-inline-start: auto; }
    .nv-bar__actions .nv-btn { display: none; }

    .nv-nav {
        position: fixed; inset: 0 0 0 auto; z-index: 95;
        width: min(320px, 86vw); padding: 5.5rem 1.25rem 2rem;
        background: var(--nv-surface); border-inline-start: 1px solid var(--nv-line);
        box-shadow: var(--nv-sh-3);
        transform: translateX(100%); visibility: hidden;
        transition: transform .28s var(--nv-ease), visibility .28s;
        overflow-y: auto; overscroll-behavior: contain;
    }
    .nv-nav.is-open { transform: none; visibility: visible; }
    .nv-nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
    .nv-nav__list a { display: block; padding: .7rem .9rem; border-radius: var(--nv-r-sm); }
    .nv-nav__list .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 .8rem; min-width: 0;
    }

    .nv-backdrop {
        position: fixed; inset: 0; z-index: 94; background: rgba(var(--nv-ink-rgb), .45);
        opacity: 0; visibility: hidden; transition: opacity .25s var(--nv-ease), visibility .25s;
    }
    .nv-backdrop.is-on { opacity: 1; visibility: visible; }
}

@media (max-width: 991px) {
    .nv-hero__grid { grid-template-columns: 1fr; }
    .nv-hero__media { order: -1; }
    .nv-split { grid-template-columns: 1fr; }
    .nv-aside { position: static; }
    .nv-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .nv-contact-layout { grid-template-columns: 1fr; }
    .nv-contact-grid--stack { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (max-width: 640px) {
    body.nv { font-size: 16px; }
    .nv-topbar__item span { display: none; }
    .nv-footer__grid { grid-template-columns: 1fr; }
    .nv-form__grid { grid-template-columns: 1fr; }
    .nv-form__submit { width: 100%; }
    .nv-doc { flex-direction: column; align-items: flex-start; }
    .nv-hero__badge { position: static; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .nv-card:hover, .nv-btn:hover { transform: none; }
}

@media print {
    .nv-header, .nv-footer, .nv-totop, .nv-skip { display: none !important; }
    body.nv { color: #000; background: #fff; }
}

/* Social glyphs are inline SVG, not text initials. */
.nv-topbar__social .nv-icon { width: 14px; height: 14px; }
.nv-footer__social .nv-icon { width: 18px; height: 18px; }
