/* ========================================================================
   ALHADBANIA — Sanitary Ware
   Palette from the BDM's studio design (Nov 2026): pine, paper and lime,
   with the logo's navy and green (see the :root tokens)
   One typeface per language: Tajawal (Arabic) / Poppins (English)
   One type scale for every section, taken from the hero (see TYPE SCALE)
   ======================================================================== */

:root {
    /* Brand: pine for surfaces and buttons, ink for text, lime as the accent on dark surfaces. */
    --brand: #0C382F;           /* pine */
    --brand-dark: #0A2B25;
    --brand-soft: #24664F;      /* links, labels and lighter buttons on light surfaces */
    --ink: #102A2A;             /* text */
    --deep: #081D1A;            /* darkest surface */
    --accent: #C9DC9A;          /* lime, on dark surfaces only */
    --accent-soft: #DEEBBB;
    --green: #00804A;           /* the logo's green */
    --logo-navy: #00205A;       /* the logo's navy */

    --white: #FFFFFF;
    --paper: #F6F6EE;           /* page background */
    --linen: #EEF2E8;           /* alternate sections */
    --linen-2: #E2E9DA;
    --muted: #425957;
    --muted-light: #6C817C;

    --line: rgba(12, 56, 47, 0.12);
    --line-strong: rgba(12, 56, 47, 0.22);
    --line-light: rgba(255, 255, 255, 0.14);

    --font: 'Tajawal', system-ui, -apple-system, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1360px;

    /* TYPE SCALE: the hero's sizes and weights, shared by every section.
       English values here; Arabic overrides in :root[dir="rtl"] below. */
    --fs-eyebrow: 12px;
    --ls-eyebrow: .18em;
    --tt-eyebrow: uppercase;
    --fs-display: clamp(40px, 3.7vw, 58px);
    --lh-display: 1.14;
    --ls-display: -.045em;
    --fs-lead: clamp(16px, 1.2vw, 18px);
    --fs-item: 18px;            /* card and list titles: the top of the lead size */
    --fs-small: 14px;           /* card copy: the hero button size */
    --lh-text: 1.85;
    --fw-text: 400;
    --fw-medium: 500;
    --fw-heading: 500;
    --fw-strong: 600;

    /* Gradients stay inside the pine family (no new hues).
       CTA gradients are drawn at 200%: buttons rest on the lighter half and
       hover slides to the deeper half. */
    --grad-cta: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand) 50%, var(--ink) 100%);
    --grad-cta-light: linear-gradient(135deg, var(--white) 0%, var(--paper) 50%, var(--accent-soft) 100%);
    --grad-dark: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 55%, var(--deep) 100%);
    --grad-brand: linear-gradient(120deg, var(--brand) 0%, var(--ink) 100%);
    --cta-edge: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --cta-shadow: 0 10px 24px -10px rgba(8, 29, 26, 0.55);
    --cta-shadow-hover: 0 16px 32px -12px rgba(8, 29, 26, 0.6);
}

/* Arabic: Tajawal reads smaller, takes no tracking and has no 600 weight.
   :root[dir] outranks :root, so the mobile override below can't undo these. */
:root[dir="rtl"] {
    --fs-eyebrow: 15px;
    --ls-eyebrow: 0;
    --tt-eyebrow: none;
    --lh-display: 1.35;
    --ls-display: 0;
    --fs-lead: 20px;
    --fs-item: 20px;
    --fs-small: 15px;
    --fw-heading: 700;
    --fw-strong: 700;
}
@media (max-width: 640px) {
    :root { --fs-display: clamp(32px, 8.3vw, 48px); --ls-display: -.035em; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

body.lang-en {
    --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal--down { transform: translateY(-40px); } /* slides down into place instead of up */
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }
.reveal.delay-4 { transition-delay: 0.48s; }

/* TYPE ROLES: one rule per role, all on the hero's scale. A section joins a role
   by adding its selector here; section rules keep only colour and spacing. */
.hero__eyebrow, .about__kicker, .brand-marquee__kicker {
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--ls-eyebrow);
    text-transform: var(--tt-eyebrow);
    font-weight: var(--fw-medium);
}
.hero__title, .about__title, .section-head__title,
.b2b__title, .contact__title, .hbm-title,
.page-intro h1, .brand-directory h2, .cta-band h2, .project-support h2 {
    font-family: var(--font);
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    font-weight: var(--fw-heading);
}
.hero__sub, .about__narrative p {
    font-size: var(--fs-lead);
    line-height: var(--lh-text);
    font-weight: var(--fw-text);
}
.pillar__title {
    font-size: var(--fs-item);
    line-height: 1.4;
    font-weight: var(--fw-heading);
}
.pillar__text {
    font-size: var(--fs-small);
    line-height: var(--lh-text);
    font-weight: var(--fw-text);
}
.about__narrative strong, .about__narrative em { font-weight: var(--fw-strong); }

/* NAV */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--ease);
    background: transparent;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    padding: 12px 40px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 30px rgba(16, 42, 42, 0.06);
}
.nav__brand { flex-shrink: 0; }
.nav__links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav__links a {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}
.nav.scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav__lang {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    transition: all 0.3s;
}
.nav.scrolled .nav__lang {
    color: var(--brand);
    border-color: var(--line-strong);
}
.nav__lang:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.nav__lang-item { display: none; }
.nav__cta {
    color: var(--white);
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* Mobile toggle (hamburger) */
.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 110;
}
.nav__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.3s;
}
.nav.scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 29, 26, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    z-index: 99;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* HERO — architectural introduction */
.hero {
    position: relative;
    min-height: min(900px, 100svh);
    overflow: hidden;
    background: var(--deep);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 180px 40px 110px;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(8, 29, 26, .48), rgba(8, 29, 26, .12) 42%, transparent 65%),
        linear-gradient(180deg, rgba(8, 29, 26, .4), transparent 24%),
        url('/images/hero/alhadbania-panoramic-bathroom-v2.png');
    background-size: cover;
    background-position: center;
    animation: heroZoom 14s ease-in-out infinite alternate;
    transform-origin: center;
    z-index: -1;
}
/* Mirror the photographic composition for the Arabic reading direction. */
[dir="rtl"] .hero__bg { transform: scaleX(-1); }
.hero__inner { max-width: var(--container); margin: 0 auto; width: 100%; }
@keyframes heroZoom { from { scale: 1; } to { scale: 1.06; } }
/* The eyebrow and tagline are both spans inside the hero <h1>. */
.hero__eyebrow, .hero__title { display: block; }
.hero__eyebrow {
    margin-bottom: 30px;
    color: var(--accent-soft);
}
.hero__title {
    max-width: 620px;
    margin-bottom: 30px;
}
.hero__title .accent { color: var(--accent-soft); font-weight: inherit; }
.hero__sub {
    max-width: 540px;
    color: rgba(255,255,255,.88);
    margin-bottom: 38px;
}
.hero__ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
    color: var(--white);
    padding: 18px 34px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Conversion CTAs: quote, project quote, call, send. One gradient language for
   every "act now" button; secondary actions (ghost, quick view, chips) stay flat
   so the gradient keeps meaning "this is the next step". */
.btn-primary, .nav__cta, .form__submit {
    background-color: var(--brand);
    background-image: var(--grad-cta);
    background-size: 200% 200%;
    background-position: 0% 0%;
    box-shadow: var(--cta-edge), var(--cta-shadow);
    transition: background-position 0.6s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary:hover, .nav__cta:hover, .form__submit:hover:not(:disabled) {
    background-position: 100% 100%;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--cta-edge), var(--cta-shadow-hover);
}
.btn-primary:active, .nav__cta:active, .form__submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--cta-edge), var(--cta-shadow);
}
.btn-primary:focus-visible, .nav__cta:focus-visible, .form__submit:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}
.nav:not(.scrolled) .nav__cta:focus-visible, .b2b .btn-primary:focus-visible { outline-color: var(--accent-soft); }

/* On dark sections the CTA flips to a light gradient so it never sinks into navy. */
.hero .btn-primary, .b2b .btn-primary {
    background-color: var(--paper);
    background-image: var(--grad-cta-light);
    color: var(--deep);
}
.hero .btn-primary:hover, .b2b .btn-primary:hover { color: var(--deep); }
.b2b .btn-primary { box-shadow: inset 0 -1px 0 rgba(12, 56, 47, 0.12), 0 12px 28px -14px rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: reduce) {
    .btn-primary, .nav__cta, .form__submit { transition: none; }
    .btn-primary:hover, .nav__cta:hover, .form__submit:hover:not(:disabled),
    .btn-primary:active, .nav__cta:active, .form__submit:active:not(:disabled) { transform: none; }
}
.btn-ghost {
    color: var(--white);
    padding: 18px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--white);
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-ghost:hover { background: transparent; border-color: rgba(255,255,255,0.6); }
/* Hero actions are scoped to preserve buttons elsewhere on the page. */
.hero .btn-primary, .hero .btn-ghost {
    border-radius: 4px;
    min-height: 56px;
    padding: 16px 26px;
    justify-content: center;
    font-weight: 500;
    box-shadow: none;
    white-space: nowrap;
}
.hero a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 5px; }
@media (max-width: 640px) {
    .hero { min-height: 100svh; padding-top: 140px; padding-bottom: 72px; }
    .hero__bg {
        background-position: 62% center;
        background-image:
            linear-gradient(90deg, rgba(8, 29, 26, .82), rgba(8, 29, 26, .58)),
            url('/images/hero/alhadbania-panoramic-bathroom-v2.png');
    }
    .hero__eyebrow { margin-bottom: 24px; }
    .hero__sub { max-width: 34em; margin-bottom: 30px; }
    .hero__ctas { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none; }
    .hero a { transition: none; }
    .hero .btn-primary:hover { transform: none; }
}

/* ABOUT */
.about {
    padding: 140px 40px;
    background: var(--paper);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(201, 220, 154, 0.14) 0%, transparent 70%);
    pointer-events: none;
}
.about::after {
    content: '';
    position: absolute;
    bottom: -140px; right: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(12, 56, 47, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.about__inner {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.about__head { margin-bottom: 72px; max-width: 820px; }
.about__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    margin-bottom: 22px;
}
.about__title { color: var(--ink); }
.about__title .accent { color: var(--brand); }
.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: start;
}
.about__narrative p {
    color: var(--muted);
    margin-bottom: 20px;
}
.about__narrative strong { color: var(--ink); }
.about__narrative em { color: var(--brand); font-style: normal; }
/* Same size as the other paragraphs (the hero's lead); the bar and darker ink set it apart. */
.about__narrative .about__lead {
    color: var(--ink);
    padding-inline-start: 20px;
    border-inline-start: 3px solid var(--brand);
    margin-bottom: 28px;
}
.about__pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pillar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 22px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 20px 50px rgba(16, 42, 42, 0.10);
}
.pillar__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%);
    color: var(--white);
    display: grid; place-items: center;
    font-size: 18px;
    margin-bottom: 16px;
}
.pillar__title {
    color: var(--ink);
    margin-bottom: 6px;
}
.pillar__text { color: var(--muted); }

/* DIVISIONS */
.divisions {
    padding: 120px 40px;
    background: var(--deep) var(--grad-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.divisions::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(201, 220, 154, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(201, 220, 154, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.divisions__inner {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.divisions .section-head__title { color: var(--white); }
.divisions .section-head__link { color: var(--accent); }
.divisions .section-head__link:hover { color: var(--white); }
.div-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.div-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
    backdrop-filter: blur(10px);
    transition: transform 0.5s var(--ease), background 0.5s, border-color 0.5s;
    position: relative;
    overflow: hidden;
}
/* Scroll reveal: cards 1 and 3 slide down, card 2 slides up. Its own slow animation
   (on `translate`, not the shared .reveal transition) so visitors notice it, while
   the hover transition on `transform` stays quick and undelayed. */
.div-card.reveal { transform: none; transition-delay: 0s; }
.div-card.reveal.in { animation: div-card-up 1.8s cubic-bezier(0.33, 1, 0.68, 1) backwards; }
.div-card.reveal--down.in { animation-name: div-card-down; }
.div-card.reveal.delay-1.in { animation-delay: 0.3s; }
.div-card.reveal.delay-2.in { animation-delay: 0.6s; }
@keyframes div-card-up { from { opacity: 0; translate: 0 80px; } }
@keyframes div-card-down { from { opacity: 0; translate: 0 -80px; } }
@keyframes div-card-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .div-card.reveal.in { animation-name: div-card-fade; animation-duration: 0.6s; }
}
.div-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 220, 154, 0.4);
}
.div-card--featured {
    background: linear-gradient(160deg, var(--brand) 0%, var(--ink) 100%);
    border-color: var(--accent);
}
.div-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.div-card__num {
    font-family: var(--font);
    font-size: 56px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(201, 220, 154, 0.45);
    line-height: 1;
}
.div-card--featured .div-card__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }
.div-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--ink);
    display: grid; place-items: center;
    font-size: 20px;
}
.div-card--featured .div-card__icon { background: var(--white); }
.div-card__title {
    font-family: var(--font);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--white);
    letter-spacing: -0.5px;
}
.div-card__tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 4px 10px;
    border: 1px solid rgba(201, 220, 154, 0.3);
    border-radius: 999px;
}
.div-card--featured .div-card__tag { color: var(--white); border-color: rgba(255,255,255,0.35); }
.div-card__text {
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 24px;
    font-weight: 400;
}
.div-card__text strong { color: var(--white); font-weight: 800; }
.div-card--featured .div-card__text { color: rgba(255, 255, 255, 0.9); }
.div-card__list { list-style: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; }
.div-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    font-weight: 500;
}
.div-card__list i {
    color: var(--accent);
    font-size: 12px;
}
.div-card--featured .div-card__list i { color: var(--white); }

/* Prod-card price as CTA link */
a.prod-card__price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
a.prod-card__price:hover { border-color: var(--brand); color: var(--ink); }

/* CATEGORIES */
.categories {
    padding: 120px 40px;
    background: var(--deep) var(--grad-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.categories::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 220, 154, 0.12), transparent 70%);
    pointer-events: none;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
    max-width: var(--container);
    margin-right: auto;
    margin-left: auto;
    position: relative;
}
.section-head__left { max-width: 720px; }
.section-head__kicker {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 700;
}

.section-head__link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
    white-space: nowrap;
    transition: all 0.3s;
}
.section-head__link:hover { color: var(--white); border-color: var(--white); }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 260px;
    gap: 14px;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}
.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}
.cat-card:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.cat-card:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.cat-card:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.cat-card:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.cat-card:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.cat-card:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.cat-card:nth-child(7) { grid-column: span 4; grid-row: span 1; }
.cat-card:nth-child(8) { grid-column: span 4; grid-row: span 1; }
.cat-card__img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ease);
}
.cat-card:hover .cat-card__img { transform: scale(1.08); }
.cat-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 29, 26, 0.1) 30%, rgba(8, 29, 26, 0.9) 100%);
}
.cat-card__body {
    position: absolute;
    bottom: 28px;
    right: 28px;
    left: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cat-card__title {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}
.cat-card__meta {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}
.cat-card__arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: grid; place-items: center;
    font-size: 14px;
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
}
.cat-card:hover .cat-card__arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: rotate(-45deg);
}

/* COLLECTIONS */
.collections {
    padding: 140px 0;
    background: var(--paper);
    overflow: hidden;
}
.collections .section-head { padding: 0 40px; }
.collections .section-head__kicker { color: var(--brand); }
.collections .section-head__title { color: var(--ink); }
.collections .section-head__link { color: var(--brand); border-color: var(--brand); }
.collections .section-head__link:hover { color: var(--ink); border-color: var(--ink); }
.coll-scroll {
    /* Cards sit in the same 1360px column as the heading, with the same gutter at both ends. */
    --coll-gutter: max(40px, calc((100% - var(--container)) / 2));
    display: flex;
    gap: 28px;
    /* 12px on top keeps the hover lift (translateY -8px) inside the scroll box, so it is not clipped. */
    padding: 12px var(--coll-gutter) 20px;
    margin-top: -12px;
    overflow-x: auto;
    /* scroll-snap-type: x mandatory; */
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.coll-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.coll-scroll.is-dragging a { pointer-events: none; }
.coll-scroll::-webkit-scrollbar { display: none; }
.coll-card {
    /* Share the column width; the row scrolls only when a card would drop below 280px. */
    flex: 1 0 280px;
    scroll-snap-align: start;
    cursor: pointer;
    max-width: 85vw;
}
.coll-scroll.is-dragging .coll-card { cursor: grabbing; }
.coll-card__img {
    aspect-ratio: 22 / 27; /* the original 440 x 540 frame, scaled to the card width */
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease);
    border-radius: 20px;
}
.coll-card:hover .coll-card__img { transform: translateY(-8px); }
.coll-card__num {
    position: absolute;
    top: 24px; right: 24px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--white);
    background: rgba(8, 29, 26, 0.4);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: 1px;
    font-weight: 600;
}
.coll-card__name {
    font-family: var(--font);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.coll-card__desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
    font-weight: 400;
}
.coll-card__tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--brand);
    font-weight: 700;
}

/* FILTER CHIPS (projects page, brand directory) AND PRODUCT CARDS (category and brand pages) */
.chip {
    padding: 10px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--white);
    color: var(--ink);
    transition: all 0.3s;
    cursor: pointer;
}
.chip:hover { border-color: var(--brand); }
.chip.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.prod-card { cursor: pointer; }
.prod-card__img {
    aspect-ratio: 3/4;
    background: var(--white);
    background-size: cover;
    background-position: center;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.prod-card__quick {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: var(--brand);
    color: var(--white);
    padding: 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
}
.prod-card:hover .prod-card__quick { transform: translateY(0); }
.prod-card__cat {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 6px;
}
.prod-card__name {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
    line-height: 1.3;
}
.prod-card__price {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

/* PROJECTS */
.projects {
    padding: 140px 40px;
    background: var(--paper);
}
.projects__inner { max-width: var(--container); margin: 0 auto; }
.projects .section-head__kicker { color: var(--brand); }
.projects .section-head__title { color: var(--ink); }
.projects .section-head__link { color: var(--brand); border-color: var(--brand); }
/* B2B */
.b2b {
    padding: 140px 40px;
    background: var(--deep) linear-gradient(165deg, var(--brand) 0%, var(--ink) 45%, var(--deep) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.b2b::before {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 220, 154, 0.1), transparent 70%);
    pointer-events: none;
}
.b2b__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}
/* .b2b__content { max-width: 540px; } */
.b2b__kicker {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 700;
}
.b2b__title {

    margin-bottom: 30px;

}
.b2b__text {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 36px;
    font-weight: 300;
}
.b2b__features {
    list-style: none;
    margin-bottom: 40px;
}
.b2b__features li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}
.b2b__features i {
    color: var(--accent);
    background: rgba(201, 220, 154, 0.15);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px;
}
.b2b__img {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

/* TRUST */
.trust {
    padding: 100px 40px;
    background: var(--ink) var(--grad-brand);
    color: var(--white);
}
.trust__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.trust__item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.trust__item:last-child { 
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
 }
.trust__num {
    font-family: var(--font);
    font-size: 64px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.trust__label {
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* CONTACT */
.contact {
    padding: 140px 40px;
    background: var(--paper);
}
.contact__wrap {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact__info { position: sticky; top: 120px; }
.contact .section-head__kicker { color: var(--brand); }
.contact__title {

    margin-bottom: 30px;
    color: var(--ink);

}
.contact__lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 48px;
    font-weight: 400;
}
.contact__items { list-style: none; }
.contact__items li {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 20px;
    align-items: center;
}
.contact__items li:last-child { border-bottom: 1px solid var(--line); }
.contact__icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--linen-2);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact__label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.contact__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    direction: ltr;
    text-decoration: none;
    display: inline-block;
    transition: color 0.25s var(--ease);
}
a.contact__value:hover { color: var(--brand-soft); }
.form {
    background: var(--white);
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(16, 42, 42, 0.06);
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form__group { margin-bottom: 20px; }
.form__label {
    display: block;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}
.form__input, .form__select, .form__textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: all 0.3s;
    border-radius: 4px;
    font-weight: 500;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    outline: 0;
    border-color: var(--brand);
    background: transparent;
    box-shadow: 0 0 0 4px rgba(12, 56, 47, 0.08);
}
/* Keep browser autofill from painting its own tint over the transparent fields. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    transition: background-color 9999s ease-in-out 0s;
}
.form__select option { background: var(--white); color: var(--ink); }
.form__textarea { resize: vertical; min-height: 120px; }
.form__submit {
    width: 100%;
    padding: 18px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form__input.is-invalid, .form__textarea.is-invalid, .form__select.is-invalid {
    border-color: #d93025;
    background: #fdecea;
}
.form__error-text {
    display: none;
    color: #d93025;
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 600;
}
.form__error-text.show { display: block; }
.form__status { display: none; padding: 14px 18px; border-radius: 4px; margin: 18px 0 6px; font-size: 14px; font-weight: 600; }
.form__status.is-loading, .form__status.is-success, .form__status.is-fail { display: block; }
.form__status .form__loading, .form__status .form__success, .form__status .form__fail { display: none; }
.form__status.is-loading { background: var(--linen); color: var(--brand); }
.form__status.is-loading .form__loading { display: block; }
.form__status.is-success { background: #e6f4ea; color: #137333; }
.form__status.is-success .form__success { display: block; }
.form__status.is-fail { background: #fdecea; color: #c5221f; }
.form__status.is-fail .form__fail { display: block; }

/* FOOTER */
.footer {
    background: var(--deep) linear-gradient(180deg, var(--ink) 0%, var(--deep) 40%);
    color: var(--white);
    padding: 100px 40px 40px;
    text-align: center;
}
.footer__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line-light);
    justify-items: center;
}
/* Footer logo: the white version of the mark (white + green, for the navy footer) with the company name. */
.footer__brand.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--white);
    text-decoration: none;
}
.footer__brand .brand-lockup__mark { height: 60px; width: auto; }
.footer__brand .brand-lockup__text { display: grid; line-height: 1.3; text-align: start; }
.footer__brand .brand-lockup__text strong { font-size: 18px; font-weight: 700; }
.footer__brand .brand-lockup__text small { font-size: 10.5px; letter-spacing: .16em; color: rgba(255,255,255,.65); }
.footer__about {
    color: var(--white);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
    max-width: 380px;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}
.footer__social {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.footer__social a {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    display: grid; place-items: center;
    transition: all 0.3s;
    color: var(--white);
}
.footer__social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}
.footer__title {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 22px;
    font-weight: 800;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 12px; }
.footer__links a {
    color: var(--white);
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 400;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--white);
    letter-spacing: 0.5px;
    font-weight: 400;
}
.footer__copyright strong { font-weight: 800; }
.footer__legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer__legal-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}
.footer__legal-links a:hover { color: var(--accent); }
.footer__legal-links span { opacity: 0.6; }
.footer__powered { font-size: 12px; letter-spacing: 0.5px; direction: ltr; }
.footer__powered a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}
.footer__powered a:hover { color: var(--accent); }
@media (min-width: 992px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* WHATSAPP FLOAT */
.wa-float {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: grid; place-items: center;
    font-size: 26px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 50;
    transition: transform 0.3s;
    animation: waPulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.75); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav { padding: 14px 24px; }
    .nav.scrolled { padding: 10px 24px; }
    .nav__toggle { display: flex; }
    .nav__actions { display: none; }
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        /* bottom: 0; */
        width: min(78vw, 340px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding: 96px 28px 32px;
        box-shadow: -20px 0 60px rgba(16, 42, 42, 0.18);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 105;
        overflow-y: auto;
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__links li { width: 100%; border-bottom: 1px solid var(--line); }
    .nav__links a {
        color: var(--ink);
        display: block;
        padding: 16px 4px;
        font-size: 17px;
        width: 100%;
    }
    .nav__links a::after { display: none; }
    .nav__lang-item { display: block; margin-top: 12px; border-bottom: 0 !important; }
    .nav__lang-item a {
        background: var(--brand);
        color: var(--white) !important;
        border-radius: 999px;
        text-align: center;
        font-weight: 700;
        padding: 14px 4px !important;
    }
    .nav__lang-item a i { margin-inline-end: 8px; }
    .cat-grid { grid-auto-rows: 220px; }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .b2b__inner, .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .div-grid { grid-template-columns: 1fr; gap: 20px; }
    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .trust__item:nth-child(2) { border-right: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact__info { position: static; }
}
@media (max-width: 640px) {
    .nav, .hero, .about, .divisions, .categories, .collections .section-head,
    .projects, .b2b, .trust, .contact, .footer { padding-left: 20px; padding-right: 20px; }
    .coll-scroll { --coll-gutter: 20px; }
    .about { padding-top: 90px; padding-bottom: 90px; }
    .about__head { margin-bottom: 44px; }
    .about__pillars { grid-template-columns: 1fr; }
    .divisions { padding-top: 80px; padding-bottom: 80px; }
    .div-card { padding: 28px 22px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .cat-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .prod-grid { grid-template-columns: 1fr; }
    .form { padding: 28px; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__ctas { flex-direction: column; align-items: stretch; }
}

/* Keyboard focus on filter chips and category cards */
.chip:focus-visible, .cat-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }

/* Accessible product preview */
body.product-preview-open { overflow: hidden; }
.prod-card { cursor: default; }
.prod-card__quick { width: 100%; transform: none; letter-spacing: .02em; }
.prod-card__quick:focus-visible, .product-preview a:focus-visible, .product-preview button:focus-visible {
    outline: 3px solid var(--accent); outline-offset: -4px;
}
.product-preview {
    margin: auto; padding: 0; width: min(920px, calc(100% - 32px));
    max-height: calc(100svh - 32px); overflow-y: auto;
    border: 0; border-radius: 8px; background: var(--paper); color: var(--ink);
}
.product-preview::backdrop { background: rgba(8, 29, 26, .75); }
.product-preview__close { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; padding: 16px 24px; color: var(--brand); font-size: 16px; }
.product-preview__close span { font-size: 24px; }
.product-preview__layout { display: grid; grid-template-columns: 1fr 1fr; }
.product-preview__image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.product-preview__content { padding: 36px; align-self: center; }
.product-preview__brand { color: var(--muted); margin-bottom: 12px; }
.product-preview h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin-bottom: 20px; }
#product-preview-note { color: var(--muted); margin-bottom: 28px; }
.product-preview .btn-primary { border-radius: 4px; text-align: center; }
@media (max-width: 640px) {
    .product-preview__layout { grid-template-columns: 1fr; }
    .product-preview__image { min-height: 0; height: 220px; }
    .product-preview__content { padding: 24px; }
}

.coll-card__link { display: inline-block; margin-top: 20px; padding-block: 8px; color: var(--brand); border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.coll-card__link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

/* ======================================================================
   BRAND MARQUEE (home page, under the hero): every brand's logo in three
   rows drifting right-to-left, left-to-right, right-to-left. A row holds
   its logos twice (the copy is aria-hidden) and slides by one copy, so the
   loop has no seam; --count, set per row, keeps every row at one speed.
   A row rests while it is pointed at or holds keyboard focus; every row
   rests while the section is off-screen (.is-offscreen, site.js). There is
   no pause button (owner's choice). Reduced motion: nothing moves, the
   logos wrap into a still wall.
   ====================================================================== */
.brand-marquee {
    --bm-logo-w: 174px;            /* the logo files are 348 x 128 artboards, shown at half size */
    --bm-logo-h: 64px;
    --bm-pad: 12px 14px;
    --bm-gap: 16px;
    --bm-tile-time: 5.5s;          /* time to travel one tile and its gap: about 40px a second */
    padding: 100px 0 104px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.brand-marquee .section-head { padding-inline: 40px; margin-bottom: 40px; }
.brand-marquee .section-head__title { color: var(--ink);  }
.brand-marquee .section-head__link { color: var(--brand); border-color: var(--brand); }
.brand-marquee .section-head__link:hover { color: var(--ink); border-color: var(--ink); }
.brand-marquee .section-head__link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.brand-marquee__kicker { color: var(--brand); margin-bottom: 18px; }

/* The same physical directions in Arabic and English; never wider than one row's copy of logos. */
.brand-marquee__rows { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1920px; margin-inline: auto; direction: ltr; }
.brand-marquee__row {
    overflow: hidden;
    padding-block: 8px 14px;       /* room for the hover lift, focus ring and shadow */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
@supports (overflow: clip) { .brand-marquee__row { overflow: clip; } }
.brand-marquee__track {
    display: flex;
    width: max-content;
    animation: brand-marquee calc(var(--count) * var(--bm-tile-time)) linear infinite;
}
.brand-marquee__row:nth-child(2) .brand-marquee__track { animation-direction: reverse; }
/* The third row starts half a tile on, so its logos sit between the first row's. */
.brand-marquee__row:nth-child(3) .brand-marquee__track { animation-delay: calc(var(--bm-tile-time) * -.5); }
@keyframes brand-marquee { to { transform: translateX(-50%); } }
.brand-marquee__list { display: flex; gap: var(--bm-gap); padding-inline-end: var(--bm-gap); list-style: none; }
.brand-marquee__item {
    display: block;
    padding: var(--bm-pad);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.brand-marquee__item img { width: var(--bm-logo-w); height: var(--bm-logo-h); object-fit: contain; }
.brand-marquee__item:hover, .brand-marquee__item:focus-visible {
    border-color: var(--brand-soft);
    transform: translateY(-3px);
    box-shadow: 0 12px 22px -16px rgba(12, 56, 47, .45);
}
/* Drawn inside the tile, where the row's edges can't clip it. */
.brand-marquee__item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* A row rests while it is pointed at or holds keyboard focus, and drops its edge fade while it
   holds focus so a logo at either end is fully visible; every row rests while off-screen. */
.brand-marquee.is-offscreen .brand-marquee__track,
.brand-marquee__row:has(:focus-visible) .brand-marquee__track { animation-play-state: paused; }
.brand-marquee__row:has(:focus-visible) { -webkit-mask-image: none; mask-image: none; }
@media (hover: hover) and (pointer: fine) {
    .brand-marquee__row:hover .brand-marquee__track { animation-play-state: paused; }
}
@media (max-width: 640px) {
    .brand-marquee {
        --bm-logo-w: 130px;
        --bm-logo-h: 48px;
        --bm-pad: 9px 10px;
        --bm-gap: 10px;
        --bm-tile-time: 4.6s;      /* about 35px a second on a phone */
        padding: 72px 0 76px;
    }
    .brand-marquee .section-head { padding-inline: 20px; margin-bottom: 28px; }
    .brand-marquee__row {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
                mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    }
}
@media (prefers-reduced-motion: reduce) {
    .brand-marquee__rows { max-width: var(--container); padding-inline: 24px; gap: var(--bm-gap); direction: inherit; }
    .brand-marquee__row { padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .brand-marquee__track { width: auto; animation: none; }
    .brand-marquee__list { flex-wrap: wrap; justify-content: center; padding-inline-end: 0; }
    .brand-marquee__list[aria-hidden="true"] { display: none; }
    .brand-marquee__item { transition: none; }
    .brand-marquee__item:hover, .brand-marquee__item:focus-visible { transform: none; }
}

/* Standalone company pages */
.page-intro { padding: 160px 40px 72px; background: var(--linen); }
.page-intro__inner { max-width: var(--container); margin-inline: auto; }
.page-intro__breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; font-size: 13px; color: var(--muted); }
.page-intro h1 {    margin-bottom: 24px;  }

.page-intro p { max-width: 680px; font-size: 18px; color: var(--muted); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.company-page > section { padding-top: 80px; padding-bottom: 80px; }
#brands, #contact { scroll-margin-top: 100px; }
@media (max-width: 640px) { .page-intro { padding: 130px 20px 48px; } }

/* Card photos are real <img> elements (lazy-loaded, with alt text) that fill their frame
   exactly as the former background images did. */
.cat-card__img > img, .coll-card__img > img, .prod-card__img > img,
.b2b__img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.b2b__img { position: relative; overflow: hidden; }

/* 404 / error page */
.error-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.error-links a:not(.btn-primary) { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }

/* ======================================================================
   Catalogue pages (products hub, categories, brands) and legal pages
   ====================================================================== */
.catalog-detail { padding: 96px 40px; background: var(--paper); }
.catalog-detail__inner {
    max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 64px; align-items: start;
}
.catalog-detail__text p { font-size: 17px; line-height: 1.9; color: var(--muted); margin-bottom: 22px; max-width: 70ch; }
.catalog-detail__text h2, .catalog-aside h2, .catalog-more h2 {
    font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 700; color: var(--ink); margin: 40px 0 18px;
}
.catalog-detail__text .catalog-detail__first-heading, .catalog-aside h2:first-child { margin-top: 0; }
.catalog-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.catalog-list li { position: relative; padding-inline-start: 26px; color: var(--ink); }
.catalog-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .8em;
    width: 12px; height: 2px; background: var(--green);
}
.catalog-aside {
    position: sticky; top: 110px;
    background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 32px;
}
.catalog-aside .btn-primary { margin-top: 28px; width: 100%; justify-content: center; text-align: center; }
.catalog-logo {
    display: flex; align-items: center; justify-content: center;
    min-height: 96px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.catalog-logo img { width: 200px; height: 72px; object-fit: contain; }
.catalog-wordmark { font-size: 28px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.catalog-facts { display: grid; gap: 18px; }
.catalog-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 2px; }
[dir="rtl"] .catalog-facts dt { font-size: 13px; letter-spacing: 0; text-transform: none; }
.catalog-facts dd { font-weight: 600; color: var(--ink); line-height: 1.6; }
.catalog-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-chips a, .catalog-chips span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--brand); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s;
}
.catalog-chips a:hover, .catalog-chips a:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--white); }
.catalog-chips span { color: var(--muted); border-style: dashed; }
.catalog-products { padding: 96px 40px; background: var(--linen); }
.catalog-products__inner, .catalog-more__inner { max-width: var(--container); margin: 0 auto; }
.catalog-products .section-head__title { color: var(--ink);  }
.catalog-more { padding: 72px 40px 96px; background: var(--paper); }
.catalog-more h2 { margin-top: 0; }
.prod-card__cat a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.prod-card__cat a:hover { text-decoration-color: currentColor; }

.cta-band { padding: 88px 40px; background: var(--deep); color: var(--white); }
.cta-band__inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 {    margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 620px; }
.cta-band .btn-primary { background: var(--paper); color: var(--deep); }
.cta-band .btn-primary:hover { background: var(--accent-soft); }

/* Privacy policy and other legal text */
.legal { padding: 72px 40px 112px; background: var(--paper); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__updated { font-size: 14px; color: var(--muted-light); margin-bottom: 12px; }
.legal h2 { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--ink); margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); line-height: 1.9; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-inline-start: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a, .form__note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.form__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 1024px) {
    .catalog-detail__inner { grid-template-columns: 1fr; gap: 40px; }
    .catalog-aside { position: static; }
}
@media (max-width: 640px) {
    .catalog-detail, .catalog-products, .catalog-more, .cta-band, .legal { padding-left: 20px; padding-right: 20px; }
    .catalog-detail, .catalog-products { padding-top: 56px; padding-bottom: 56px; }
    .catalog-list { grid-template-columns: 1fr; }
    .catalog-aside { padding: 24px; }
}

/* ======================================================================
   Brand lockup: the mark with the company name in both languages, as in
   the logo (header and footer). White over the hero and in the footer.
   ====================================================================== */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-lockup__mark { width: auto; flex-shrink: 0; }
.brand-lockup__text { display: grid; white-space: nowrap; text-align: start; }
.brand-lockup__text small { font-weight: 700; }
[dir="ltr"] .brand-lockup__text small { font-family: 'Tajawal', var(--font); letter-spacing: 0; }
/* Header sizes (the footer lockup is styled with the footer). */
.nav .brand-lockup__mark { height: 50px; }
.nav .brand-lockup__text { gap: 3px; line-height: 1.15; }
.nav .brand-lockup__text strong { font-family: 'Tajawal', var(--font); font-size: 20px; font-weight: 800; }
.nav .brand-lockup__text small { font-size: 10px; letter-spacing: .1em; }
[dir="ltr"] .nav .brand-lockup__text strong { font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
[dir="ltr"] .nav .brand-lockup__text small { font-size: 13px; letter-spacing: 0; }
.nav .brand-lockup { color: var(--white); }
.nav .brand-lockup__mark--color, .nav.scrolled .brand-lockup__mark--reversed { display: none; }
.nav.scrolled .brand-lockup__mark--color { display: block; }
.nav:not(.scrolled) .brand-lockup__text small { color: var(--accent-soft); }
.nav.scrolled .brand-lockup { color: var(--ink); }
.nav.scrolled .brand-lockup__text small { color: var(--brand-soft); }
.nav.scrolled .nav__links a::after { background: var(--brand-soft); }
@media (max-width: 640px) {
    .brand-lockup { gap: 9px; }
    .nav .brand-lockup__mark { height: 40px; }
    .nav .brand-lockup__text strong { font-size: 16px; }
    .nav .brand-lockup__text small { font-size: 8px; letter-spacing: .06em; }
    [dir="ltr"] .nav .brand-lockup__text strong { font-size: 14px; }
    [dir="ltr"] .nav .brand-lockup__text small { font-size: 11px; letter-spacing: 0; }
}

/* ======================================================================
   Brand logos: the wall (/products) and the directory (/brands);
   the home page has the BRAND MARQUEE instead
   ====================================================================== */
.brand-wall { padding: 120px 40px; background: var(--paper); border-top: 1px solid var(--line); }
.brand-wall__inner { max-width: var(--container); margin: 0 auto; }
.brand-wall .section-head { margin-bottom: 44px; }
.brand-wall .section-head__title { color: var(--ink); }
.brand-wall .section-head__link { color: var(--brand); border-color: var(--brand); }
.brand-wall .section-head__link:hover { color: var(--ink); border-color: var(--ink); }
.brand-wall__grid { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.brand-wall__item, .brand-card__link {
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.brand-wall__item { display: grid; place-items: center; height: 100%; min-height: 104px; padding: 16px; }
.brand-wall__item img, .brand-card__logo img { width: min(100%, 174px); height: 64px; object-fit: contain; }
.brand-wall__item:hover, .brand-wall__item:focus-visible,
a.brand-card__link:hover, a.brand-card__link:focus-visible {
    border-color: var(--brand-soft); transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(12, 56, 47, .35);
}

.brand-directory { padding: 72px 40px 96px; background: var(--paper); }
.brand-directory__inner { max-width: var(--container); margin: 0 auto; }
.brand-directory__head { display: grid; gap: 22px; margin-bottom: 28px; }
.brand-directory h2 {   color: var(--ink); }

.brand-directory__filters { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-directory__status { min-height: 1.6em; color: var(--muted); font-size: 14px; }
.brand-directory__grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.brand-card[hidden] { display: none; }
.brand-card__link { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 22px 16px 20px; text-align: center; }
.brand-card__logo { display: grid; place-items: center; width: 100%; height: 72px; margin-bottom: 4px; }
.brand-card__name-ar { font-size: 15px; font-weight: 700; color: var(--ink); }
.brand-card__meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.brand-card__tag { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--linen); color: var(--brand); font-size: 12px; font-weight: 700; }
.brand-card__more { margin-top: auto; padding-top: 10px; color: var(--brand-soft); font-size: 13.5px; font-weight: 700; }
@media (max-width: 1100px) { .brand-directory__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .brand-wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .brand-directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .brand-wall { padding: 80px 20px; }
    .brand-wall__grid, .brand-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .brand-wall__item { min-height: 84px; padding: 12px; }
    .brand-directory { padding: 56px 20px 72px; }
    .brand-card__link { padding: 16px 10px; }
}

/* ======================================================================
   Branches: the wholesale and projects branch network (region list + map,
   drawn by wwwroot/js/branches.js from the --map-* colours below)
   ====================================================================== */
.hbm {
    --map-sea: #DCE6DF;
    --map-land: var(--linen);
    --map-border: #CFD9CF;
    --map-country: var(--white);
    --map-outline: var(--brand);
    --map-pin: var(--brand);
    --map-hq: var(--deep);
    --map-glow: #00C27A;
    --map-label: var(--ink);
    padding: clamp(64px, 8vw, 120px) 40px;
    background: var(--linen);
    color: var(--ink);
    overflow-x: clip;
}
.hbm * { min-width: 0; }
.hbm-wrap { max-width: var(--container); margin: 0 auto; }
.hbm-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.hbm-kicker { display: inline-block; margin-bottom: 18px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--brand); font-size: 14px; font-weight: 700; }
.hbm-title { margin-bottom: 18px;     text-wrap: balance; }

.hbm-intro { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.85; }
.hbm-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hbm-list { list-style: none; border-top: 1px solid var(--line); }
.hbm-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 4px 10px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .25s, box-shadow .25s; }
.hbm-list li.on { background: var(--white); border-bottom-color: transparent; box-shadow: 0 12px 30px -18px rgba(8, 29, 26, .35); }
.hbm-sel { grid-row: 1; display: grid; gap: 2px; padding: 14px 0 2px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.hbm-city { font-size: 20px; font-weight: 700; line-height: 1.3; }
.hbm-sub { color: var(--muted); font-size: 14px; line-height: 1.7; }
.hbm-num { grid-row: 2; justify-self: start; padding: 4px 0 14px; color: var(--brand); font-size: 15px; font-weight: 700; unicode-bidi: isolate; }
.hbm-num:hover { color: var(--ink); text-decoration: underline; }
.hbm-call { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand); font-size: 19px; transition: background .25s, color .25s, border-color .25s; }
.hbm-call:hover, .hbm-call:focus-visible { background: #25D366; border-color: #25D366; color: var(--white); }
/* Customer service and projects: two equal buttons on one row, centred under the list and map, each
   number under its label. The pair is as wide as its content (1fr columns in a fit-content grid make
   both buttons as wide as the longer one) and never wider than the section. Phones: tiles, at 520px. */
.hbm-ctas {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px;
    width: fit-content; max-width: 100%; margin: clamp(32px, 4vw, 48px) auto 0;
}
.hbm-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 10px 20px;
    border-radius: 999px; color: var(--white); font-size: 15px; font-weight: 700; line-height: 1.4;
    background-color: var(--brand); background-image: var(--grad-cta); background-size: 200% 200%;
    box-shadow: var(--cta-edge), var(--cta-shadow);
    transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hbm-btn:hover { color: var(--white); background-position: 100% 100%; transform: translateY(-2px); box-shadow: var(--cta-edge), var(--cta-shadow-hover); }
.hbm-btn--light, .hbm-btn--light:hover { background: var(--white); color: var(--ink); }
.hbm-btn--light { box-shadow: inset 0 0 0 1px var(--line-strong); }
.hbm-btn--light:hover { box-shadow: inset 0 0 0 1px var(--brand-soft), 0 12px 24px -16px rgba(8, 29, 26, .4); }
.hbm-btn i { flex-shrink: 0; font-size: 18px; }
.hbm-btn__text { display: flex; flex-direction: column; align-items: flex-start; text-wrap: balance; }
.hbm-btn small { font-size: 14px; opacity: .85; unicode-bidi: isolate; }
.hbm-map { position: relative; aspect-ratio: 1.2; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--map-sea); box-shadow: 0 30px 60px -32px rgba(8, 29, 26, .3); }
.hbm-map > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hbm-map svg text { font-family: inherit; }
.hbm-label, .hbm-all { position: absolute; top: 16px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(8, 29, 26, .3); }
.hbm-label { inset-inline-start: 16px; padding: 8px 16px; pointer-events: none; }
.hbm-all { inset-inline-end: 16px; min-height: 38px; padding: 0 16px; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hbm-all[hidden], .hbm-tip[hidden] { display: none; }
.hbm-pin { cursor: pointer; }
.hbm-pin:focus { outline: none; }
.hbm-pin:focus-visible circle:last-of-type { stroke: var(--accent); stroke-width: 4; }
.hbm-pulse { transform-box: fill-box; transform-origin: center; animation: hbmPulse 2.6s cubic-bezier(.22, 1, .36, 1) infinite; }
.hbm-glow { transform-box: fill-box; transform-origin: center; animation: hbmBreath 2.6s ease-in-out infinite; }
@keyframes hbmPulse { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes hbmBreath { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .85; transform: scale(1.15); } }
.hbm-tip { position: absolute; z-index: 2; width: max-content; max-width: 240px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.6; text-align: start; transform: translate(-50%, calc(-100% - 16px)); box-shadow: 0 12px 30px -12px rgba(8, 29, 26, .6); }
.hbm-tip::after { content: ""; position: absolute; bottom: -6px; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.hbm-tip.below { transform: translate(-50%, 16px); }
.hbm-tip.below::after { top: -6px; bottom: auto; }
.hbm-tip b { display: block; font-size: 16px; }
.hbm-tip span { color: var(--accent-soft); }
.hbm-tip a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; unicode-bidi: isolate; }
.hbm :focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
@media (max-width: 900px) {
    .hbm-grid { grid-template-columns: minmax(0, 1fr); }
    .hbm-mapcol { order: -1; }
}
@media (max-width: 640px) { .hbm { padding-inline: 20px; } }
@media (max-width: 520px) {
    .hbm-city { font-size: 18px; }
    .hbm-label { padding: 6px 12px; font-size: 13px; }
    /* Two tiles across the width: the icon above a centred label, instead of a pill. */
    .hbm-btn { flex-direction: column; gap: 6px; padding: 14px 10px; border-radius: 18px; font-size: 14px; text-align: center; }
    .hbm-btn__text { align-items: center; }
    .hbm-btn small { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .hbm * { transition: none !important; }
    .hbm-pulse { display: none; }
    .hbm-glow { animation: none; opacity: .6; }
}

/* ======================================================================
   Projects: home highlights and the /projects portfolio + register
   ====================================================================== */
.project-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-case { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--brand-soft); border-radius: 6px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.project-case img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.project-case__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.project-case__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--brand-soft); font-size: 13px; font-weight: 700; }
.project-case__name { font-size: 20px; line-height: 1.35; font-weight: 700; }
.project-case__scope { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.project-case__scope span { display: block; color: var(--muted-light); font-size: 12px; font-weight: 700; }
a.project-case:hover, a.project-case:focus-visible { border-color: var(--brand-soft); box-shadow: 0 18px 40px -24px rgba(12, 56, 47, .45); }
a.project-case:hover img, a.project-case:focus-visible img { transform: scale(1.04); }
.project-case:target { outline: 4px solid var(--brand-soft); outline-offset: 4px; }
.project-case[hidden], .register tr[hidden], .portfolio-grid[hidden], .register[hidden] { display: none !important; }

.portfolio { padding: 88px 40px 96px; background: var(--paper); }
.portfolio__inner { max-width: var(--container); margin: 0 auto; }
.portfolio .section-head { margin-bottom: 32px; }
.portfolio .section-head__title { color: var(--ink);  }
.portfolio__lead { max-width: 420px; color: var(--muted); }
.portfolio__tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.portfolio__filters { display: flex; flex-wrap: wrap; gap: 10px; }
.portfolio__search { display: grid; gap: 6px; min-width: min(100%, 340px); color: var(--muted); font-size: 14px; font-weight: 600; }
.portfolio__search input { padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.portfolio__search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 56, 47, .1); }
.portfolio__count { min-height: 1.6em; margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.register { margin-top: 48px; }
.register h3 { margin-bottom: 14px; color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }
.register__scroll { max-height: 540px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.register__scroll:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.register table { width: 100%; border-collapse: collapse; }
.register th, .register td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: start; }
.register thead th { position: sticky; top: 0; z-index: 1; background: var(--brand); color: var(--white); font-size: 14px; font-weight: 700; }
.register tbody th { color: var(--ink); font-weight: 600; }
.register td { color: var(--muted); white-space: nowrap; }
.register tbody tr:nth-child(even) { background: var(--paper); }
.portfolio__source { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

.project-support { padding: 88px 40px; background: var(--linen); }
.project-support__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.project-support h2 { margin-bottom: 16px; color: var(--ink);    }
.project-support__copy p { max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.9; }
.project-support__box { display: grid; justify-items: start; gap: 14px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.project-support__box h3 { color: var(--ink); font-size: 22px; font-weight: 700; }
.project-support__box p { color: var(--muted); }
.project-support__link { color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1024px) {
    .project-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-support__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .portfolio, .project-support { padding: 56px 20px; }
    .project-highlights { grid-template-columns: 1fr; }
    .portfolio__search { min-width: 100%; }
    .register th, .register td { padding: 10px 12px; font-size: 14px; }
}

/* In-page targets clear the fixed header. */
#branches, #branch-contacts, #brand-directory, #portfolio, #projects, .project-case, .brand-card { scroll-margin-top: 110px; }
/* On /branches the page header introduces the network, so the map follows it closely. */
.branches-page > .hbm { padding-top: 24px; }

/* English footer: the small line is the Arabic name, which needs a readable size and no tracking. */
[dir="ltr"] .footer__brand .brand-lockup__text small { font-size: 13px; letter-spacing: 0; }

/* Phones: the four stats and the footer lockup must fit a 360–390px screen (no sideways scroll). */
@media (max-width: 640px) {
    .trust__grid { gap: 16px; }
    .trust__item { padding: 16px 8px; }
    .trust__num { font-size: 46px; }
    .footer__brand .brand-lockup__mark { height: 46px; }
    .footer__brand .brand-lockup__text strong { font-size: 15px; }
    .footer__brand .brand-lockup__text small { font-size: 9px; }
    [dir="ltr"] .footer__brand .brand-lockup__text small { font-size: 12px; }
}

/* Homepage palette: midnight navy, porcelain and restrained champagne.
   Include the homepage header/footer; keep logo assets and other pages intact. */
body:has(.home-page) {
    --brand: #102238;
    --brand-dark: #0A1728;
    --brand-soft: #344B63;
    --ink: #15283C;
    --deep: #081321;
    --paper: #FAF9F6;
    --linen: #F0F1F2;
    --linen-2: #E4E7EA;
    --muted: #536170;
    --muted-light: #647383;
    --accent: #C5AD86;
    --accent-soft: #E8DCC9;
    --line: rgba(16, 34, 56, .12);
    --line-strong: rgba(16, 34, 56, .22);
    --grad-cta: none;
    --grad-cta-light: none;
    --grad-dark: none;
    --grad-brand: none;
}
/* Approved spacing remains unchanged. */
.home-page {
    --section-space: clamp(80px, 10vw, 144px);
    --heading-space: clamp(36px, 5vw, 72px);
    --content-gap: clamp(24px, 3vw, 44px);
    background: var(--paper);
}
.home-page > :is(.brand-marquee, .divisions, .projects, .categories, .collections, .b2b, .hbm, .contact) {
    padding-block: var(--section-space);
}
.home-page .section-head { margin-bottom: var(--heading-space); gap: 32px; }
.home-page :is(.div-grid, .project-highlights) { gap: var(--content-gap); }
.home-page .div-grid { margin-top: 0; }
.home-page :is(.b2b__inner, .contact__wrap, .hbm-grid) { gap: clamp(36px, 6vw, 88px); }
.home-page :is(.brand-marquee, .projects, .categories, .collections, .contact) { background: var(--paper); }
.home-page :is(.divisions, .hbm) { background: var(--linen); }
.home-page :is(.divisions, .categories) { color: var(--ink); }
.home-page :is(.divisions, .categories, .b2b)::before { display: none; }
.home-page .divisions .section-head__title { color: var(--ink); }
.home-page :is(.divisions, .categories) .section-head__link { color: var(--brand); border-color: var(--brand); }
.home-page :is(.divisions, .categories) .section-head__link:hover { color: var(--brand-dark); border-color: var(--brand-dark); }
.home-page .div-card {
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    backdrop-filter: none;
}
.home-page .div-card:hover { transform: none; background: var(--paper); border-color: var(--brand-soft); }
.home-page .div-card--featured { background: var(--paper); border-color: var(--line-strong); }
.home-page .div-card__title { color: var(--ink); }
.home-page .div-card__num { -webkit-text-stroke-color: rgba(16, 34, 56, .4); }
.home-page .div-card__icon { background: transparent; color: var(--brand); border: 1px solid var(--line-strong); }
.home-page .div-card__tag { color: var(--brand); border-color: var(--line-strong); letter-spacing: .04em; }
.home-page .div-card__text { color: var(--muted); }
.home-page .div-card__text strong { color: var(--ink); }
.home-page .div-card__list { border-color: var(--line-strong); padding-top: 24px; }
.home-page .div-card__list li { color: var(--muted); }
.home-page .div-card__list i { color: var(--brand); }
/* Preserve legibility on photographs after lightening the category section. */
.home-page .cat-card { color: var(--white); }
.home-page .cat-card__meta { color: var(--accent-soft); }
.home-page .cat-grid { gap: clamp(16px, 2vw, 28px); }
.home-page .coll-scroll { gap: var(--content-gap); }
.home-page .project-case { border-bottom: 1px solid var(--line); box-shadow: none; }
.home-page .project-case__body { padding: 26px; gap: 12px; }
.home-page .project-case:hover { box-shadow: none; }
.home-page .b2b { background: var(--brand); }
.home-page .b2b__text { max-width: 54ch; margin-bottom: 32px; }
.home-page .b2b__features { margin-bottom: 36px; }
.home-page .trust { background: var(--paper); color: var(--ink); padding-block: clamp(56px, 7vw, 96px); }
.home-page .trust__num { color: var(--brand); }
.home-page .trust__label { color: var(--muted); }
.home-page .trust__item { border-color: var(--line-strong); }
.home-page .form { padding: clamp(28px, 4vw, 56px); border-radius: 6px; box-shadow: none; }
.home-page .hbm { --map-sea: #E4E9EE; --map-border: #CBD3DB; --map-glow: var(--brand-soft); }
.home-page :is(.hbm-map, .hbm-label, .hbm-all) { box-shadow: none; }
.home-page :is(.btn-primary, .form__submit, .hbm-btn) {
    background: var(--brand);
    color: var(--white);
    box-shadow: none;
}
.home-page :is(.btn-primary, .form__submit, .hbm-btn):hover { background: var(--brand-dark); color: var(--white); box-shadow: none; }
.home-page :is(.hero, .b2b) .btn-primary { background: var(--paper); color: var(--brand); box-shadow: none; }
.home-page :is(.hero, .b2b) .btn-primary:hover { background: var(--white); color: var(--brand-dark); }
.home-page .hbm-btn--light { background: transparent; color: var(--brand); border: 1px solid var(--line-strong); }
.home-page .hbm-btn--light:hover { background: var(--paper); color: var(--brand); }
@media (max-width: 640px) {
    .home-page { --section-space: 72px; --heading-space: 32px; --content-gap: 24px; }
    .home-page .section-head { gap: 24px; }
    .home-page .project-case__body { padding: 22px; }
    .home-page .trust__grid { gap: 16px; }
}

/* Navy overlays keep the product photography clear; champagne stays on dark surfaces. */
.home-page .hero__bg {
    background-image:
        linear-gradient(90deg, rgba(8, 19, 33, .80), rgba(8, 19, 33, .55) 42%, rgba(8, 19, 33, .08) 75%),
        linear-gradient(180deg, rgba(8, 19, 33, .4), transparent 24%),
        url('/images/hero/alhadbania-panoramic-bathroom-v2.png');
}
.home-page .cat-card__overlay {
    background: linear-gradient(180deg, rgba(8, 19, 33, .1) 30%, rgba(8, 19, 33, .9) 100%);
}
body:has(.home-page) .nav__cta { background: var(--brand); box-shadow: none; }
body:has(.home-page) .nav__cta:hover { background: var(--brand-dark); color: var(--white); box-shadow: none; }
body:has(.home-page) .footer { background: var(--deep); }
@media (max-width: 640px) {
    .home-page .hero__bg {
        background-image:
            linear-gradient(90deg, rgba(8, 19, 33, .82), rgba(8, 19, 33, .58)),
            url('/images/hero/alhadbania-panoramic-bathroom-v2.png');
    }
}

/* Continuous hero animation respects the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none; scale: 1; }
}
