/* ==========================================================================
   CROWN — Project Management & Development
   Design System + Components
   --------------------------------------------------------------------------
   01. Tokens (light / dark)      08. Section heads           15. Lists / timeline
   02. Reset & base               09. Hero slider             16. Tabs / accordion
   03. Typography                 10. Marquee                 17. Forms
   04. Buttons & links            11. Cards                   18. Tables
   05. Top bar & header           12. Carousels               19. Gallery / lightbox
   06. Mobile menu & search       13. CTA band                20. Utilities & motion
   07. Page banner & breadcrumb   14. Footer                  21. Responsive
   ========================================================================== */

/* 01. TOKENS ------------------------------------------------------------- */
:root {
  /* Brand */
  --gold: #BD9D6E;            /* logo gold — fills, lines, large display text */
  --gold-strong: #BD9D6E;     /* Figma button fill (brand gold) */
  --gold-text: #C5A371;       /* Figma: numbers, "Learn more", categories */
  --gold-marquee: #C2A174;    /* Figma: marquee band, footer titles */
  --gold-num: #A98553;        /* Figma: "Why Crown" numerals */
  --gold-soft: #D9C4A3;
  --gold-tint: #F3ECE1;
  --teal: #1FB597;            /* status badge */

  /* Neutrals (warm) */
  --brown-950: #14100C;       /* footer */
  --brown-900: #1E1710;
  --brown-800: #312313;       /* top bar */
  --brown-700: #3E2D1E;
  --ink: #312313;             /* headings, eyebrow, lead (Figma) */
  --navy: #172235;            /* nav, card titles, Why list (Figma) */
  --navy-2: #3D4A64;
  --navy-3: #536079;
  --heading-strong: #000000;  /* service card titles */
  --text-card: rgba(0, 0, 0, .55);
  --text: #6C7280;            /* body copy (Figma) */
  --muted: #6C7280;
  --line: #E7E1D8;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;       /* soft section (Figma gradient start) */
  --surface-3: #F4F1EB;
  --overlay: rgba(20, 16, 12, .62);
  --accent-bg: var(--brown-800);   /* active/selected + button hover fill */
  --accent-fg: #FFFFFF;

  /* Typography */
  --font-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "Saira", "Segoe UI", system-ui, sans-serif;   /* Figma body copy: Magistral Book */
  --font-alt: "Inter", "Segoe UI", system-ui, sans-serif;    /* hero paragraph, badges */
  --font-footer: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-num: "Playfair Display", Georgia, serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: .875rem;         /* 14px body (Figma) */
  --fs-lg: 1.125rem;
  --fs-h6: 1.0625rem;
  --fs-h5: 1.125rem;
  --fs-h4: clamp(1.25rem, 1.05rem + .6vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  /* Section titles @1920: 60 (default) · 68 (xl) · 56 (md) · 52 (sm) — Figma */
  --fs-h2: clamp(2rem, 1rem + 2.6vw, 3.75rem);
  --fs-h2-xl: clamp(2.1rem, 1rem + 3vw, 4.25rem);
  --fs-h2-md: clamp(2rem, 1rem + 2.4vw, 3.5rem);
  --fs-h2-sm: clamp(1.9rem, 1rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.4rem, 1rem + 3.3vw, 4.5rem);   /* 72px @1920 */
  --lh-tight: 1.08;
  --lh-body: 1.85;
  --ls-display: -.051em;
  --ls-eyebrow: .18em;

  /* Spacing scale (4px base) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
  --section-y: clamp(3.5rem, 1.5rem + 3.6vw, 5.5rem);   /* 80–88px @1920 */
  --gutter: clamp(1rem, .5rem + 2vw, 1.5rem);

  /* Shape & depth */
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 26, 20, .06);
  --shadow: 0 14px 40px rgba(31, 26, 20, .09);
  --shadow-lg: 0 30px 70px rgba(31, 26, 20, .16);
  --ring: 0 0 0 3px rgba(189, 157, 110, .45);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t: .4s;
  --t-slow: .8s;

  /* Layout */
  --header-h: 88px;
  --topbar-h: 36px;
  --container: 1321px;        /* 1273px content: x=337 @1920 */
  --container-wide: 1539px;   /* service cards */
  --container-narrow: 1160px; /* Why Crown */
  --container-footer: 1440px;
  --frame-inset: 8px;         /* top bar + hero sit 8px in from the page edges */

  color-scheme: light;
}

/* Dark mode — follows the OS unless the visitor picks a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4EEE5; --text: #CFC7BB; --muted: #A39A8E; --line: #2E271F;
    --navy: #F4EEE5; --navy-2: #E5DCCF; --navy-3: #BDB4A8; --heading-strong: #F4EEE5; --text-card: rgba(255,255,255,.62);
    --surface: #120F0B; --surface-2: #1A1611; --surface-3: #221C16;
    --gold-text: #D4B88C; --gold-tint: #2A2219; --accent-bg: var(--gold); --accent-fg: var(--brown-950);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.35); --shadow: 0 14px 40px rgba(0,0,0,.45); --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F4EEE5; --text: #CFC7BB; --muted: #A39A8E; --line: #2E271F;
  --navy: #F4EEE5; --navy-2: #E5DCCF; --navy-3: #BDB4A8; --heading-strong: #F4EEE5; --text-card: rgba(255,255,255,.62);
  --surface: #120F0B; --surface-2: #1A1611; --surface-3: #221C16;
  --gold-text: #D4B88C; --gold-tint: #2A2219; --accent-bg: var(--gold); --accent-fg: var(--brown-950);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35); --shadow: 0 14px 40px rgba(0,0,0,.45); --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* 02. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
img, video, iframe, svg { max-width: 100%; }
/* Clip off-canvas reveal offsets & edge-to-edge sliders without creating a scroll container (keeps position: sticky working) */
main, .site-footer { overflow-x: clip; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--gold-text); }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }
hr { border-color: var(--line); opacity: 1; }
.container { max-width: var(--container); padding-inline: var(--gutter); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 2000;
  background: var(--gold-strong); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

/* 03. TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
  margin: 0 0 var(--sp-4);
}
h1, .h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.055em; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: var(--ls-display); }
.h-xl { font-size: var(--fs-h2-xl); line-height: 1.07; letter-spacing: -.045em; }
.h-md { font-size: var(--fs-h2-md); line-height: 1.08; letter-spacing: -.045em; }
.h-sm { font-size: var(--fs-h2-sm); line-height: 1.08; letter-spacing: -.045em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); line-height: 1.3; }
h6, .h6 { font-size: var(--fs-h6); line-height: 1.35; }
p { margin: 0 0 var(--sp-4); }
.lead { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); font-weight: 500; line-height: 1.7; }
.text-gold { color: var(--gold) !important; }
.text-gold-strong { color: var(--gold-text) !important; }
.text-muted-c { color: var(--muted) !important; }
.text-ink { color: var(--ink) !important; }
.accent { color: var(--gold); font-weight: 500; display: inline-block; padding-inline-end: .08em; }
.on-dark { color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5 { color: #fff; }
.on-dark p { color: rgba(255,255,255,.8); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-display);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--ink); margin-bottom: var(--sp-5);
}
.eyebrow::before { content: ""; width: 2.1rem; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow.centered::after { content: ""; width: 2.1rem; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow.gold { color: var(--gold-text); }
.on-dark .eyebrow, .eyebrow.light { color: rgba(255,255,255,.82); font-size: .5625rem; }

.prose { color: var(--text); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-6); }
.prose ul:not([class]) { padding-inline-start: 0; list-style: none; }
.prose ul:not([class]) li { position: relative; padding-inline-start: 1.75rem; margin-bottom: .6rem; }
.prose ul:not([class]) li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: .7rem; height: 1px; background: var(--gold); }
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-6);
  border-inline-start: 3px solid var(--gold); background: var(--surface-2);
  font-family: var(--font-display); font-size: var(--fs-h5); color: var(--ink);
}

/* 04. BUTTONS & LINKS ---------------------------------------------------- */
.btn-c {
  --bg: var(--gold-strong); --fg: #fff; --bd: var(--gold-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3rem; padding: .75rem 1.5rem;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .035em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius-xs);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
  white-space: nowrap;
}
.btn-c::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-bg);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
[dir="rtl"] .btn-c::before { transform-origin: left center; }
.btn-c:hover { color: var(--accent-fg); border-color: var(--accent-bg); box-shadow: var(--shadow); }
.btn-c:hover::before { transform: scaleX(1); transform-origin: left center; }
[dir="rtl"] .btn-c:hover::before { transform-origin: right center; }
.btn-c:active { transform: translateY(1px); }
.btn-c .bi { font-size: 1.35em; transition: transform var(--t) var(--ease); }
.btn-c:hover .bi-arrow-right, .btn-c:hover .bi-arrow-left { transform: translateX(4px); }
[dir="rtl"] .btn-c:hover .bi-arrow-left { transform: translateX(-4px); }

.btn-c.outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.9); font-size: .6875rem; font-weight: 500; }
.btn-c.outline-light::before { background: #fff; }
.btn-c.outline-light:hover { color: var(--brown-900); border-color: #fff; }
.btn-c.outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-c.outline:hover { color: var(--accent-fg); }
.btn-c.gold-dark { --bg: var(--gold); --fg: #172235; --bd: var(--gold); }
.btn-c.sm { min-height: 2.75rem; padding: .6rem 1.4rem; font-size: .6875rem; }
.btn-c.lg { min-height: 3.25rem; padding-inline: 1.6rem; }
.btn-c.block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: .625rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text);
}
.link-arrow .bi { transition: transform var(--t) var(--ease); }
.link-arrow:hover .bi { transform: translateX(5px); }
[dir="rtl"] .link-arrow:hover .bi { transform: translateX(-5px); }

.icon-btn {
  width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: all var(--t) var(--ease);
}
.icon-btn:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: #fff; }

/* RTL-aware arrows: markup uses bi-arrow-right; flipped for Arabic */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* 05. TOP BAR & HEADER --------------------------------------------------- */
.topbar {
  background: var(--brown-800); color: rgba(255,255,255,.9);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500;
  min-height: var(--topbar-h); margin: var(--frame-inset) var(--frame-inset) 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.topbar-info { display: flex; align-items: center; gap: 3.5rem; margin: 0; padding: 0; list-style: none; }
.topbar-info a { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.topbar-info a:hover { color: var(--gold-soft); }
.topbar-info .bi { color: var(--gold); }
.topbar .ltr-num { direction: ltr; unicode-bidi: isolate; }
.social-mini { display: flex; gap: .875rem; list-style: none; margin: 0; padding: 0; }
.social-mini a {
  width: 1.625rem; height: 1.625rem; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85); color: #fff; font-size: .75rem;
  transition: all var(--t) var(--ease);
}
.social-mini a:hover { background: var(--gold); border-color: var(--gold); color: var(--brown-950); transform: translateY(-2px); }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(20,16,12,.08); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height var(--t) var(--ease); }
.site-header.is-scrolled .container { min-height: 72px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 118px; height: auto; transition: width var(--t) var(--ease); }
.site-header.is-scrolled .brand img { width: 108px; }
[data-theme="dark"] .brand .logo-default { display: none; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-default { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(.9rem, 1.75vw, 2.0625rem); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: .5rem 0; white-space: nowrap;
  font-family: var(--font-display); font-size: .75rem; font-weight: 500; letter-spacing: .015em; color: var(--navy);
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform var(--t) var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .65rem; }
.lang-switch {
  font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .12em; color: var(--navy);
  padding: .5rem .65rem; border-radius: var(--radius-xs);
}
.lang-switch:hover { color: var(--gold-text); background: var(--gold-tint); }
.header-actions .icon-btn { width: 2.5rem; height: 2.5rem; border-color: transparent; background: transparent; font-size: 1.05rem; }
.header-actions .icon-btn:hover { background: var(--gold-tint); color: var(--gold-text); border-color: transparent; }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; padding: 0;
  position: relative; border-radius: var(--radius-sm);
}
.nav-toggle span { position: absolute; inset-inline-start: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease), width var(--t) var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; width: 16px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle:hover span:nth-child(2) { width: 24px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress */
.scroll-progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(var(--progress, 0)); transform-origin: left; }
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* 06. MOBILE MENU & SEARCH ---------------------------------------------- */
.mobile-menu {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 1050;
  width: min(88vw, 400px); background: var(--brown-950); color: #fff;
  display: flex; flex-direction: column; padding: 1.5rem 1.75rem 2rem;
  transform: translateX(100%); transition: transform .55s var(--ease-out), visibility 0s .55s; visibility: hidden;
  overflow-y: auto;
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.nav-open .mobile-menu { transform: none; visibility: visible; transition: transform .55s var(--ease-out); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-menu-head img { width: 112px; }
.mobile-menu .close-menu { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.1rem; }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu nav li { border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(24px); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
[dir="rtl"] .mobile-menu nav li { transform: translateX(-24px); }
.nav-open .mobile-menu nav li { opacity: 1; transform: none; }
.nav-open .mobile-menu nav li:nth-child(1) { transition-delay: .08s; }
.nav-open .mobile-menu nav li:nth-child(2) { transition-delay: .12s; }
.nav-open .mobile-menu nav li:nth-child(3) { transition-delay: .16s; }
.nav-open .mobile-menu nav li:nth-child(4) { transition-delay: .2s; }
.nav-open .mobile-menu nav li:nth-child(5) { transition-delay: .24s; }
.nav-open .mobile-menu nav li:nth-child(6) { transition-delay: .28s; }
.nav-open .mobile-menu nav li:nth-child(7) { transition-delay: .32s; }
.nav-open .mobile-menu nav li:nth-child(8) { transition-delay: .36s; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: #fff; }
.mobile-menu nav a[aria-current="page"], .mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu nav a .bi { font-size: .9rem; opacity: .5; }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .75rem; font-size: var(--fs-sm); }
.mobile-menu-foot a { color: rgba(255,255,255,.8); display: inline-flex; gap: .6rem; align-items: center; }
.mobile-menu-foot .bi { color: var(--gold); }
.menu-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(10,8,6,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility 0s var(--t); }
.nav-open .menu-backdrop { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease); }
.nav-open { overflow: hidden; }

.search-overlay {
  position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(20,16,12,.94); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility 0s var(--t);
}
.search-open .search-overlay { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease); }
.search-overlay form { width: min(760px, 100%); transform: translateY(20px); transition: transform .6s var(--ease-out); }
.search-open .search-overlay form { transform: none; }
.search-overlay label { color: var(--gold); font-family: var(--font-display); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-size: var(--fs-xs); font-weight: 700; }
.search-overlay .search-field { display: flex; border-bottom: 2px solid rgba(255,255,255,.3); margin-top: 1rem; }
.search-overlay .search-field:focus-within { border-color: var(--gold); }
.search-overlay input { flex: 1; width: 0; min-width: 0; background: transparent; border: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.5rem); padding: .75rem 0; outline: none; }
.search-overlay input::placeholder { color: rgba(255,255,255,.4); }
.search-overlay .search-field button { background: none; border: 0; color: var(--gold); font-size: 1.75rem; padding: 0 .5rem; }
.search-overlay .close-search { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.2rem; }
.search-suggest { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.search-suggest a { padding: .35rem .9rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-pill); color: rgba(255,255,255,.8); font-size: var(--fs-sm); }
.search-suggest a:hover { border-color: var(--gold); color: var(--gold); }

/* 07. PAGE BANNER & BREADCRUMB ------------------------------------------ */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(300px, 42vh, 440px); display: flex; align-items: flex-end;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--brown-950); color: #fff; margin-inline: var(--frame-inset);
}
.page-banner .banner-bg { position: absolute; inset: -40px 0; z-index: -2; background-size: cover; background-position: center; transform: translate3d(0, var(--parallax, 0), 0) scale(1.06); will-change: transform; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,16,12,.9) 0%, rgba(20,16,12,.55) 55%, rgba(20,16,12,.35) 100%); }
[dir="rtl"] .page-banner::before { background: linear-gradient(-90deg, rgba(20,16,12,.9) 0%, rgba(20,16,12,.55) 55%, rgba(20,16,12,.35) 100%); }
.page-banner::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
[dir="rtl"] .page-banner::after { background: linear-gradient(-90deg, var(--gold), transparent 70%); }
.page-banner h1 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); margin-bottom: .75rem; }
.page-banner p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; font-size: var(--fs-lg); }
.breadcrumb-c { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; }
.breadcrumb-c li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); }
.breadcrumb-c li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--gold); border-inline-end: 1.5px solid var(--gold); transform: rotate(45deg); }
[dir="rtl"] .breadcrumb-c li + li::before { transform: rotate(-45deg); }
.breadcrumb-c a { color: #fff; }
.breadcrumb-c a:hover { color: var(--gold); }
.breadcrumb-c [aria-current] { color: var(--gold); }

/* 08. SECTIONS & SECTION HEADS ------------------------------------------ */
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: calc(var(--section-y) * .6); }
.bg-soft { background: var(--surface-2); }
.bg-soft-grad { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%); }
.bg-dark-c { background: var(--brown-900); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 2.4vw, 2.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head h2 .line { display: block; }
.section-head p { font-size: .875rem; line-height: 1.85; color: var(--muted); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > p { max-width: 380px; color: var(--muted); margin: 0; }
.divider-fade { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); margin: 0; }

/* 09. HERO --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--brown-950); color: #fff; overflow: hidden; margin-inline: var(--frame-inset); }
.hero .swiper { height: clamp(560px, calc(100svh - var(--header-h) - var(--topbar-h) - var(--frame-inset)), 762px); }
.hero-slide { position: relative; display: flex; align-items: center; height: 100%; }
.hero-slide .hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; max-width: none; transform: scale(1.12); transition: transform 7s linear; }
.hero-slide.swiper-slide-active .hero-bg { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,16,12,.88) 0%, rgba(20,16,12,.55) 45%, rgba(20,16,12,.12) 80%); }
[dir="rtl"] .hero-slide::before { background: linear-gradient(-90deg, rgba(20,16,12,.88) 0%, rgba(20,16,12,.55) 45%, rgba(20,16,12,.12) 80%); }
.hero-content { max-width: 980px; padding-bottom: clamp(1.5rem, 3.5vw, 4.25rem); }   /* PDF: content block sits 34px above centre */
.hero-content > p:not(.hero-pill) { font-family: var(--font-alt); font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.8); max-width: 530px; margin-bottom: 2.3rem; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.25rem; border-radius: var(--radius-pill);
  background: rgba(20,16,12,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
  font-family: var(--font-display); font-size: .5625rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #fff;
  white-space: nowrap; max-width: 100%;
}
.hero-pill .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero h1, .hero .hero-title { color: #fff; margin: .875rem 0 1.875rem; font-size: var(--fs-h1); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* staged entrance per slide */
.hero-slide .stage { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.hero-slide.swiper-slide-active .stage { opacity: 1; transform: none; }
.hero-slide.swiper-slide-active .stage:nth-child(2) { transition-delay: .15s; }
.hero-slide.swiper-slide-active .stage:nth-child(3) { transition-delay: .3s; }
.hero-slide.swiper-slide-active .stage:nth-child(4) { transition-delay: .45s; }
.hero-controls { position: absolute; z-index: 5; bottom: 2.25rem; inset-inline: 0; pointer-events: none; }
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; }
.hero-pagination { display: flex; gap: .6rem; pointer-events: auto; width: auto !important; position: static !important; }
.hero-pagination .swiper-pagination-bullet { width: 34px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); opacity: 1; margin: 0 !important; transition: all var(--t) var(--ease); position: relative; overflow: hidden; }
.hero-pagination .swiper-pagination-bullet-active { width: 56px; background: rgba(255,255,255,.35); }
.hero-pagination .swiper-pagination-bullet-active::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: bulletFill 6s linear forwards; }
[dir="rtl"] .hero-pagination .swiper-pagination-bullet-active::after { transform-origin: right; }
@keyframes bulletFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-count { font-family: var(--font-display); color: rgba(255,255,255,.7); font-size: var(--fs-sm); letter-spacing: .1em; pointer-events: auto; }
.hero-count strong { color: #fff; font-size: 1.25rem; }
.scroll-cue {
  position: absolute; z-index: 6; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--gold-strong); box-shadow: 0 0 0 6px rgba(20,16,12,.35);
  font-size: 1.35rem;
}
.scroll-cue .bi { animation: cueBounce 1.8s var(--ease) infinite; }
.scroll-cue:hover { color: var(--brown-900); box-shadow: 0 0 0 12px rgba(255,255,255,.18); }
@keyframes cueBounce { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }

/* 10. MARQUEE ------------------------------------------------------------ */
.marquee { background: var(--gold-marquee); color: #fff; overflow: hidden; padding-block: 1.25rem; position: relative; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee-group { display: flex; align-items: center; gap: 1.5rem; padding-inline-end: 1.5rem; flex-shrink: 0; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + .65vw, 1.75rem); white-space: nowrap; }
.marquee-logo { width: 70px; height: auto; opacity: .95; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* 11. CARDS -------------------------------------------------------------- */
/* About media */
/* Beige block sits behind the photo and overhangs it by 40px / 35px (Figma) */
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; z-index: 0; inset-inline-end: calc(-1 * clamp(.75rem, 2.1vw, 2.5rem)); bottom: calc(-1 * clamp(.75rem, 1.85vw, 2.2rem)); width: 72%; height: 88%; background: #F4F1EC; }
[data-theme="dark"] .media-frame::before { background: var(--surface-3); }
.media-frame .media-inner { position: relative; z-index: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; aspect-ratio: 531 / 474; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame .media-inner::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,12,.18); pointer-events: none; }
.play-btn {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--gold-strong); font-size: 1.5rem; border: 0;
}
.play-btn::before, .play-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); animation: ripple 2.4s var(--ease) infinite; }
.play-btn::after { animation-delay: 1.2s; }
/* Play glyph never mirrors in RTL; nudge right to optically centre the triangle */
.play-btn .bi { margin-left: 4px; }
.play-btn:hover { background: var(--gold-strong); color: #fff; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.feature-inline { display: flex; flex-wrap: wrap; gap: 1rem 4.25rem; margin: 2rem 0 3.25rem; padding: 0; list-style: none; }
.feature-inline li { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: .75rem; }
.feature-inline .bi { color: var(--gold); font-size: 1.1rem; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2rem 1.5rem; text-align: center; position: relative; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-num sup { font-size: .45em; color: var(--gold); top: -1.1em; margin-inline-start: .1em; }
.stat-label { margin-top: .6rem; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.on-dark .stats-row, .on-dark .stat + .stat { border-color: rgba(255,255,255,.12); }
.on-dark .stat-num { color: #fff; }
.on-dark .stat-label { color: rgba(255,255,255,.7); }

/* Services band */
.services-band { position: relative; background: var(--surface); }
.services-band .band-top { position: relative; isolation: isolate; padding: var(--section-y) 0 calc(var(--band-overlap) + 3.4rem); --band-overlap: clamp(4rem, 7.3vw, 8.75rem); }
.services-band .band-bg { position: absolute; z-index: -2; inset: 0; background-size: cover; background-position: center; }
.services-band .band-top::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(44,31,17,.9); }
.services-band .section-head { margin-bottom: 0; }
.services-band .section-head h2 { color: #fff; margin-bottom: 0; }
.services-band .band-cards { position: relative; z-index: 1; margin-top: calc(-1 * clamp(4rem, 7.3vw, 8.75rem)); }
.services-band .band-cards .row { --bs-gutter-x: .8125rem; --bs-gutter-y: .8125rem; }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.service-card {
  position: relative; height: 100%; min-height: 316px; background: var(--surface); padding: 2.4rem 1.55rem 2.5rem;
  box-shadow: 0 0 80px rgba(131,131,131,.15); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.service-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
[dir="rtl"] .service-card::before { transform-origin: right; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .num { font-family: var(--font-display); font-size: .8125rem; color: var(--gold-text); margin-bottom: 1.25rem; }
.service-card .icon-box {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center; margin-bottom: .9rem;
  border: 1px solid var(--gold-soft); color: var(--gold-text); font-size: 1.25rem;
  transition: all var(--t) var(--ease);
}
.service-card:hover .icon-box { background: var(--gold); border-color: var(--gold); color: #fff; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.125rem; line-height: 1.33; letter-spacing: 0; color: var(--heading-strong); margin-bottom: .9rem; }
.service-card h3 a { color: inherit; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card p { font-size: .75rem; line-height: 1.75; color: var(--text-card); margin-bottom: 1rem; }
.service-card .link-arrow { margin-top: auto; position: relative; z-index: 2; }

/* Project card (overlay) */
.project-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5; color: #fff; background: var(--brown-900); isolation: isolate;
  box-shadow: 0 8px 22px rgba(23,34,53,.16), 0 38px 90px rgba(23,34,53,.28); border-top: 1px solid rgba(255,255,255,.2);
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,0) 35%, rgba(42,31,20,.55) 62%, rgba(42,31,20,.95) 100%); transition: opacity var(--t) var(--ease); }
.project-card:hover { color: #fff; }
.project-card:hover img { transform: scale(1.07); }
.project-card .badge-status { position: absolute; top: .95rem; inset-inline-end: .95rem; transition: inset .7s var(--ease-out); }
.project-card .card-body-c { position: absolute; inset-inline: 0; bottom: 0; padding: 0 clamp(1.25rem, 1.5vw, 1.8rem) clamp(1.5rem, 3.2vw, 3.8rem); transition: padding .7s var(--ease-out); }
.project-card .cat { font-family: var(--font-display); font-size: .5625rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .3rem; }
.project-card h3 { color: #fff; font-size: clamp(1.25rem, .9rem + 1vw, 1.8125rem); line-height: 1.1; margin-bottom: .75rem; letter-spacing: -.02em; }
.project-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .625rem; color: rgba(255,255,255,.85); }
.project-card .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.project-card .more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(10px); transition: all var(--t) var(--ease); }
.project-card:hover .more, .project-card:focus-visible .more { opacity: 1; transform: none; }
.project-card.wide { aspect-ratio: 16 / 11; }

.badge-status { display: inline-flex; align-items: center; padding: .45rem .75rem; border-radius: var(--radius-pill); background: #1E1A16; color: #fff; font-family: var(--font-alt); font-size: .5rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.badge-tag { display: inline-block; padding: .35rem .6rem; background: #fff; color: #3D4A64; font-family: var(--font-alt); font-size: .5625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-xs); }
.badge-teal { display: inline-block; padding: .35rem .6rem; background: var(--teal); color: #fff; font-family: var(--font-alt); font-size: .5625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-xs); }

/* Property card */
.property-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 0; box-shadow: 0 1px 3px rgba(23,34,53,.05); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); border-radius: var(--radius-xs); overflow: hidden; }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-card .thumb { position: relative; overflow: hidden; aspect-ratio: 395 / 286; }
.property-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.property-card:hover .thumb img { transform: scale(1.06); }
.property-card .thumb .badge-tag { position: absolute; top: 1rem; inset-inline-start: 1rem; }
.property-card .thumb .badge-teal { position: absolute; top: 1rem; inset-inline-end: 1rem; }
.property-card .body { padding: 1.625rem 1.625rem 0; flex: 1; }
.property-card .loc { display: flex; align-items: center; gap: .4rem; font-size: .6875rem; color: var(--muted); margin-bottom: .6rem; }
.property-card .loc .bi { color: var(--gold-text); }
.property-card h3 { font-size: 1.25rem; line-height: 1.5; letter-spacing: -.02em; color: var(--navy); margin-bottom: .35rem; }
.property-card h3 a { color: inherit; }
.property-card p { font-size: .75rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.25rem; }
.property-card .specs { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .625rem; color: var(--navy-3); }
.property-card .specs span { display: inline-flex; align-items: center; gap: .4rem; }
.property-card .specs .bi { color: var(--gold-text); }
.property-card .foot { display: flex; align-items: flex-end; justify-content: space-between; padding: 1rem 1.625rem 1.625rem; }
.property-card .price small { display: block; font-family: var(--font-display); font-size: .5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.property-card .price strong { font-family: var(--font-display); font-size: 1rem; color: var(--navy-2); font-weight: 700; }
.property-card .go { width: 2.375rem; height: 2.375rem; display: grid; place-items: center; background: var(--gold-strong); color: #fff; border-radius: var(--radius-xs); transition: background var(--t) var(--ease); }
.property-card .go:hover { background: var(--accent-bg); color: var(--accent-fg); }

/* Generic content card (news / grid1) */
.post-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .thumb .badge-tag { position: absolute; top: 1rem; inset-inline-start: 1rem; }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card .date { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--muted); margin-bottom: .6rem; font-family: var(--font-display); letter-spacing: .04em; }
.post-card .date .bi { color: var(--gold-text); }
.post-card .sub { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .4rem; }
.post-card h3 { font-size: var(--fs-h5); margin-bottom: .75rem; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--gold-text); }
.post-card p { font-size: var(--fs-sm); color: var(--muted); }
.post-card .link-arrow { margin-top: auto; }

/* Row (horizontal) news */
.post-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-row:hover .thumb img { transform: scale(1.05); }
.post-row h3 { font-size: var(--fs-h4); }
.post-row h3 a { color: inherit; }

/* Tile (grid2/grid3) */
.tile { position: relative; display: flex; align-items: flex-end; min-height: 320px; padding: 1.75rem; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.05) 30%, rgba(20,16,12,.85) 100%); transition: background var(--t) var(--ease); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.08); }
.tile:hover::before { background: linear-gradient(180deg, rgba(42,31,20,.25) 0%, rgba(42,31,20,.92) 100%); }
.tile h3 { color: #fff; font-size: var(--fs-h4); margin: 0 0 .35rem; }
.tile p { color: rgba(255,255,255,.8); font-size: var(--fs-sm); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity var(--t) var(--ease); }
.tile:hover p, .tile:focus-visible p { max-height: 6rem; opacity: 1; }
.tile .tile-icon { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); transition: all var(--t) var(--ease); }
.tile:hover .tile-icon { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
[dir="rtl"] .tile:hover .tile-icon { transform: rotate(45deg); }
.tile.lg { min-height: 420px; }

/* Value / pillar card */
.pillar { height: 100%; padding: 2.25rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; overflow: hidden; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.pillar:hover { border-color: var(--gold-soft); transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar .icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); font-size: 1.5rem; margin-bottom: 1.5rem; transition: all var(--t) var(--ease); }
.pillar:hover .icon { background: var(--gold); color: #fff; }
.pillar h3 { font-size: var(--fs-h5); }
.pillar p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.pillar .n { position: absolute; top: 1.25rem; inset-inline-end: 1.5rem; font-family: var(--font-display); font-weight: 600; color: var(--gold-text); font-size: var(--fs-sm); }

/* Vision / mission */
.vm-card { position: relative; height: 100%; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); background: var(--brown-900); color: #fff; overflow: hidden; isolation: isolate; }
.vm-card::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; inset-inline-end: -80px; top: -80px; border-radius: 50%; border: 50px solid rgba(189,157,110,.08); }
.vm-card .icon { font-size: 2rem; color: var(--gold); margin-bottom: 1.25rem; display: block; }
.vm-card h3 { color: #fff; }
.vm-card p { color: rgba(255,255,255,.8); margin: 0; }
.vm-card.light { background: var(--gold-tint); color: var(--text); }
[data-theme="dark"] .vm-card, [data-theme="dark"] .help-box, [data-theme="dark"] .sub-menu-box { border: 1px solid var(--line); }
.vm-card.light h3 { color: var(--ink); }
.vm-card.light p { color: var(--text); }
.vm-card.light .icon { color: var(--gold-text); }

/* Team */
.team-card { text-align: center; }
.team-card .photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--surface-3), var(--gold-tint)); display: grid; place-items: center; margin-bottom: 1.25rem; isolation: isolate; }
.team-card .initials { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 600; color: var(--gold); letter-spacing: -.02em; transition: transform .8s var(--ease-out); }
.team-card .photo::before { content: ""; position: absolute; inset: 1rem; border: 1px solid var(--gold-soft); border-radius: calc(var(--radius) - 4px); opacity: .7; }
.team-card .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: linear-gradient(180deg, transparent 20%, rgba(20,16,12,.92)); color: #fff; text-align: start; opacity: 0; transform: translateY(16px); transition: all .5s var(--ease-out); }
.team-card:hover .overlay, .team-card:focus-within .overlay { opacity: 1; transform: none; }
.team-card:hover .initials { transform: scale(1.12); }
.team-card .overlay p { font-size: var(--fs-sm); color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.team-card .overlay .social-mini a { width: 2.1rem; height: 2.1rem; }
.team-card h3 { font-size: var(--fs-h5); margin-bottom: .25rem; }
.team-card .role { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }

/* Contact info box */
.info-box { height: 100%; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all var(--t) var(--ease); }
.info-box:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-4px); }
.info-box .icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-text); font-size: 1.3rem; margin-bottom: 1.25rem; transition: all var(--t) var(--ease); }
.info-box:hover .icon { background: var(--gold-strong); color: #fff; }
.info-box h3 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.info-box p, .info-box a { margin: 0; color: var(--text); font-size: var(--fs-sm); }
.info-box a:hover { color: var(--gold-text); }

/* Sidebar widgets */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.widget { padding: 1.75rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.widget-title { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); position: relative; }
.widget-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; width: 40px; height: 2px; background: var(--gold); }
.side-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.side-menu a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--surface); border-radius: var(--radius-xs); font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--ink); border-inline-start: 3px solid transparent; transition: all var(--t) var(--ease); }
.side-menu a:hover, .side-menu a.active, .side-menu a[aria-current="page"] { border-inline-start-color: var(--gold); color: var(--gold-text); background: var(--surface); box-shadow: var(--shadow-sm); }
.side-menu a.active, .side-menu a[aria-current="page"] { background: var(--accent-bg); color: var(--accent-fg); }
.help-box { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-sm); color: #fff; overflow: hidden; isolation: isolate; background: var(--brown-900); }
.help-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.help-box h3 { color: #fff; font-size: var(--fs-h5); }
.help-box p { color: rgba(255,255,255,.8); font-size: var(--fs-sm); }
.help-box .phone { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--gold); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mini-post { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: center; }
.mini-post + .mini-post { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mini-post img { width: 76px; height: 64px; object-fit: cover; border-radius: var(--radius-xs); }
.mini-post .date { font-size: var(--fs-xs); color: var(--muted); }
.mini-post h4 { font-size: .9375rem; margin: .15rem 0 0; line-height: 1.35; }
.mini-post a { color: inherit; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tag-cloud a { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-sm); background: var(--surface); }
.tag-cloud a:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: #fff; }

.price-big small { display: block; font-family: var(--font-display); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price-big strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); }

/* Spec list (detail pages) */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-list li span:first-child { color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; }
.spec-list li span:first-child .bi { color: var(--gold-text); }
.spec-list li span:last-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-align: end; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; flex-shrink: 0; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); font-size: .9rem; margin-top: .15rem; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 2rem; }

/* 12. CAROUSELS ---------------------------------------------------------- */
/* Coverflow geometry from Figma: centre card 705×550; side cards show 360×450 with a 17px gap.
   Side cards are the same box scaled (.818) and clipped horizontally (.188W each side). */
.projects-carousel { --w: min(705px, 78vw); --clip: calc(var(--w) * .188); --shift: calc(var(--w) * .245 - 17px); position: relative; }
.projects-carousel .swiper { overflow: visible; padding-block: 2.5rem 2.75rem; }
.projects-carousel .swiper-slide { width: var(--w); }
.projects-carousel .project-card { aspect-ratio: 705 / 550; transition: transform .7s var(--ease-out), clip-path .7s var(--ease-out), opacity .5s var(--ease); }
.projects-carousel .swiper-slide:not(.swiper-slide-active) .project-card { clip-path: inset(0 var(--clip) round 24px); }
.projects-carousel .swiper-slide-prev .project-card { transform: translateX(var(--shift)) scale(.818); }
.projects-carousel .swiper-slide-next .project-card { transform: translateX(calc(-1 * var(--shift))) scale(.818); }
[dir="rtl"] .projects-carousel .swiper-slide-prev .project-card { transform: translateX(calc(-1 * var(--shift))) scale(.818); }
[dir="rtl"] .projects-carousel .swiper-slide-next .project-card { transform: translateX(var(--shift)) scale(.818); }
.projects-carousel .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) .project-card { opacity: 0; transform: scale(.7); }
.projects-carousel .swiper-slide-active { z-index: 2; }
.projects-carousel .swiper-slide:not(.swiper-slide-active) .card-body-c { padding-inline: calc(var(--clip) + 2.1rem); }
.projects-carousel .swiper-slide:not(.swiper-slide-active) .badge-status { inset-inline-end: calc(var(--clip) + 1.1rem); }
.projects-carousel .swiper-slide:not(.swiper-slide-active) .project-card h3 { font-size: clamp(1.1rem, .8rem + .85vw, 1.7rem); }
.projects-carousel-clip { overflow: hidden; padding-block: 0 1rem; }
.carousel-nav { position: absolute; top: calc(50% - 1.5rem); transform: translateY(-50%); z-index: 5; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.15rem; transition: all var(--t) var(--ease); }
.carousel-nav:hover { background: var(--gold-strong); color: #fff; }
.carousel-nav.prev { inset-inline-start: 0; }
.carousel-nav.next { inset-inline-end: 0; }
/* Projects arrows sit 26px outside the side cards (Figma), but never past the viewport edge */
.projects-carousel .carousel-nav { top: calc(50% - .15rem); }
.projects-carousel .carousel-nav.prev { inset-inline-start: max(calc(50% - 50vw + .5rem), calc(50% - var(--w) * 1.0105 - 95px)); }
.projects-carousel .carousel-nav.next { inset-inline-end: max(calc(50% - 50vw + .5rem), calc(50% - var(--w) * 1.0105 - 95px)); }
.carousel-nav.swiper-button-disabled { opacity: .4; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: .5rem; }
.dots button { position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: #D9D9D9; transition: all var(--t) var(--ease); }
.dots button::after { content: ""; position: absolute; inset: -9px -4px; }   /* larger hit area */
.dots button.active { width: 34px; background: var(--gold); }
.dots .swiper-pagination-bullet { width: 6px; height: 6px; background: #D9D9D9; opacity: 1; margin: 0 !important; border-radius: 99px; transition: all var(--t) var(--ease); }
.dots .swiper-pagination-bullet-active { width: 34px; background: var(--gold); }
.swiper-pagination.dots { position: static; }

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.filter-chips button { padding: .55rem 1rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: var(--font-display); font-size: .6875rem; font-weight: 500; border-radius: var(--radius-xs); transition: all var(--t) var(--ease); }
.filter-chips button:hover { border-color: var(--gold); color: var(--gold-text); }
.filter-chips button.active, .filter-chips button[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-fg); }
.filter-item { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.filter-item.is-hidden { display: none; }
.filter-item.is-entering { opacity: 0; transform: translateY(16px) scale(.98); }

.properties-carousel .swiper { overflow: visible; }
.properties-carousel .swiper-slide { height: auto; width: 395px; }
/* Slider bleeds to the right edge of the viewport (Figma); left edge aligns with the container */
.properties-clip { overflow: hidden; margin-inline-end: calc(50% - 50vw); padding: 1rem 0 2.5rem; }
.slider-arrows { display: flex; gap: .5rem; }

/* Gallery slider (photo1) */
.gallery-main { border-radius: var(--radius); overflow: hidden; }
.gallery-main .swiper-slide { position: relative; aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .caption { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem; background: linear-gradient(180deg, transparent, rgba(20,16,12,.85)); color: #fff; }
.gallery-main .caption h3 { color: #fff; font-size: var(--fs-h4); margin-bottom: .25rem; }
.gallery-main .caption p { margin: 0; color: rgba(255,255,255,.8); font-size: var(--fs-sm); }
.gallery-main .carousel-nav { top: 50%; }
.gallery-main .carousel-nav.prev { inset-inline-start: 1rem; }
.gallery-main .carousel-nav.next { inset-inline-end: 1rem; }
.gallery-thumbs { margin-top: 1rem; }
.gallery-thumbs .swiper-slide { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: .5; transition: opacity var(--t) var(--ease); position: relative; }
.gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--gold); outline-offset: -2px; }

/* 13. CTA BAND ----------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(4.5rem, 2rem + 5vw, 8rem); border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--brown-900); }
.cta-band .container { max-width: calc(1176px + 2 * var(--gutter)); }
.cta-band .cta-bg { position: absolute; inset: -60px 0; z-index: -2; background-size: cover; background-position: center; transform: translate3d(0, var(--parallax, 0), 0); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(42,31,20,.94) 0%, rgba(42,31,20,.8) 45%, rgba(42,31,20,.45) 100%); }
[dir="rtl"] .cta-band::before { background: linear-gradient(-90deg, rgba(42,31,20,.94) 0%, rgba(42,31,20,.8) 45%, rgba(42,31,20,.45) 100%); }
.cta-band h2 { color: #fff; }
.cta-band h2 .line { display: block; }
.cta-band p { color: rgba(255,255,255,.7); font-size: .9375rem; line-height: 1.8; max-width: 600px; margin-bottom: 2.5rem; }
.cta-band .eyebrow { color: rgba(255,255,255,.82); font-size: .5625rem; }

/* Why list */
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: why; }
.why-list li { display: grid; grid-template-columns: 4.8rem 1fr; padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); transition: padding var(--t) var(--ease); position: relative; }
.why-list li::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .7s var(--ease-out); }
.why-list li:hover::after { width: 100%; }
.why-list li:hover { padding-inline-start: .5rem; }
.why-list .n { font-family: var(--font-num); font-size: 1.125rem; line-height: 1.5; color: var(--gold-num); }
.why-list h3 { font-size: 1.0625rem; line-height: 1.5; letter-spacing: 0; color: var(--navy); margin-bottom: .4rem; }
.why-list p { margin: 0; font-size: .75rem; line-height: 1.75; color: var(--muted); }
.why-head h2 { color: var(--navy); }
.why-head p { max-width: 410px; }

/* Process / timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 1.75rem; inset-inline: 1.75rem; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-soft) 0 8px, transparent 8px 14px); }
.timeline .step { position: relative; }
.timeline .step .dot { position: relative; z-index: 1; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--gold-soft); color: var(--gold-text); font-family: var(--font-display); font-weight: 600; margin-bottom: 1.5rem; transition: all var(--t) var(--ease); }
.timeline .step:hover .dot { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 0 0 8px var(--gold-tint); }
.timeline .step h3 { font-size: var(--fs-h5); }
.timeline .step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.bg-soft .timeline .step .dot { background: var(--surface-2); }

/* 14. FOOTER ------------------------------------------------------------- */
.site-footer { background: var(--brown-950); color: #ADADAD; border-top: 5px solid #BD9E6F; padding-top: clamp(3.5rem, 6vw, 4.5rem); font-family: var(--font-footer); font-size: .875rem; }
.site-footer .container { max-width: calc(var(--container-footer) + 2 * var(--gutter)); }
.footer-grid { display: grid; grid-template-columns: 538fr 291fr 347fr 264fr; gap: 2.5rem 0; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { width: 176px; margin-bottom: 1.75rem; }
.footer-brand p { max-width: 392px; line-height: 1.6; color: #ADADAD; }
.footer-title { font-family: var(--font-footer); font-size: .625rem; font-weight: 700; letter-spacing: .134em; text-transform: uppercase; color: var(--gold-marquee); margin-bottom: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; position: relative; }
.footer-links a::before { content: ""; width: 0; height: 1px; background: var(--gold); transition: width var(--t) var(--ease); }
.footer-links a:hover::before { width: 12px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.footer-contact li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; align-items: center; color: #B4B2B1; }
.footer-contact li a { color: #B4B2B1; }
.footer-contact .ic { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; font-size: .9rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.footer-social a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: #1E1B18; color: #fff; font-size: 1.15rem; transition: all var(--t) var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--brown-950); transform: translateY(-3px); }
.footer-map { border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 264 / 200; background: #2a241d; }
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.footer-bottom { margin-top: clamp(3rem, 5vw, 4rem); padding-block: 1.5rem 1.75rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .58rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom ul { font-size: .58rem; }
.footer-bottom ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }

.back-to-top { position: fixed; z-index: 1020; inset-inline-end: 1.5rem; bottom: 1.5rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--t) var(--ease); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 150.8; stroke-dashoffset: calc(150.8 - 150.8 * var(--progress, 0)); transition: stroke-dashoffset .1s linear; }
.back-to-top:hover { background: var(--gold-strong); color: #fff; }
.whatsapp-fab { position: fixed; z-index: 1020; inset-inline-start: 1.5rem; bottom: 1.5rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform var(--t) var(--ease); }
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); }

/* 15. TABS / ACCORDION -------------------------------------------------- */
.tabs-c { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; padding: 0; list-style: none; }
.tabs-c button { position: relative; padding: 1rem 1.25rem; background: none; border: 0; font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 1rem; }
.tabs-c button::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--t) var(--ease-out); }
.tabs-c button[aria-selected="true"] { color: var(--ink); }
.tabs-c button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs-c button:hover { color: var(--gold-text); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .6s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.accordion-c { display: grid; gap: .75rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.acc-item.open { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.acc-item h3 { margin: 0; font-size: var(--fs-h6); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: none; border: 0; text-align: start; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.acc-btn .pm { position: relative; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold-tint); }
.acc-btn .pm::before, .acc-btn .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--gold-text); transform: translate(-50%, -50%); transition: transform var(--t) var(--ease); }
.acc-btn .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .pm { background: var(--gold-strong); }
.acc-item.open .pm::before, .acc-item.open .pm::after { background: #fff; }
.acc-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .inner { padding: 0 1.5rem 1.5rem; color: var(--text); }
.acc-group-title { font-size: var(--fs-h4); margin: 3rem 0 1.25rem; display: flex; align-items: center; gap: .75rem; }
.acc-group-title:first-child { margin-top: 0; }
.acc-group-title .bi { color: var(--gold); }

/* Job list */
.job { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: all var(--t) var(--ease); }
.job + .job { margin-top: 1rem; }
.job:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.job-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding: 1.5rem 1.75rem; }
.job-head h3 { font-size: var(--fs-h5); margin: .35rem 0 .5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--fs-sm); color: var(--muted); }
.job-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.job-meta .bi { color: var(--gold-text); }
.job-ref { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; color: var(--gold-text); text-transform: uppercase; }
.job-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.job-actions .acc-btn { width: auto; padding: 0; }
.job .acc-panel .inner { padding: 0 1.75rem 1.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-inline: 0; }

/* 17. FORMS ------------------------------------------------------------- */
.form-c { display: grid; gap: 1.25rem; }
.form-c .row { --bs-gutter-y: 1.25rem; }
.field label, .field .label { display: block; margin-bottom: .5rem; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: #C0392B; margin-inline-start: .15rem; }
.input-c {
  width: 100%; min-height: 3.25rem; padding: .8rem 1rem; font: inherit; font-size: .9375rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  appearance: none;
}
.input-c::placeholder { color: var(--muted); opacity: .75; }
.input-c:hover { border-color: var(--gold-soft); }
.input-c:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
textarea.input-c { min-height: 150px; resize: vertical; }
select.input-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23BD9D6E' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.5rem; }
[dir="rtl"] select.input-c { background-position: left 1rem center; }
.field.invalid .input-c, .input-c[aria-invalid="true"] { border-color: #C0392B; }
.field .error-msg { display: none; margin-top: .4rem; font-size: var(--fs-xs); color: #C0392B; }
.field.invalid .error-msg { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.choice { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9375rem; color: var(--ink); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--gold-soft); border-radius: 4px; display: grid; place-items: center; transition: all var(--t-fast) var(--ease); background: var(--surface); }
.choice input[type="radio"] + .box { border-radius: 50%; }
.choice .box::after { content: ""; width: .55rem; height: .55rem; background: #fff; transform: scale(0); transition: transform var(--t-fast) var(--ease); border-radius: 2px; }
.choice input[type="radio"] + .box::after { border-radius: 50%; }
.choice input:checked + .box { background: var(--gold-strong); border-color: var(--gold-strong); }
.choice input:checked + .box::after { transform: scale(1); }
.choice input:focus-visible + .box { box-shadow: var(--ring); }
.file-drop { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1.5px dashed var(--gold-soft); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: all var(--t) var(--ease); }
.file-drop:hover, .file-drop.drag { border-color: var(--gold); background: var(--gold-tint); }
.file-drop .bi { font-size: 1.75rem; color: var(--gold-text); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop small { display: block; color: var(--muted); }
.form-success { display: none; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius-xs); background: #E8F7F1; color: #11694F; font-weight: 500; }
.form-success.show { display: flex; animation: fadeUp .5s var(--ease-out); }
[data-theme="dark"] .form-success { background: #10241d; color: #7fe0bf; }
.form-card { padding: clamp(1.75rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.search-box { display: flex; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface); overflow: hidden; transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.search-box:focus-within { border-color: var(--gold); box-shadow: var(--ring); }
.search-box input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; padding: 1rem 1.25rem; font: inherit; color: var(--ink); outline: none; }
.search-box button { border: 0; background: var(--gold-strong); color: #fff; padding: 0 1.4rem; font-size: 1.1rem; }
.search-box button:hover { background: var(--accent-bg); color: var(--accent-fg); }
.result-item { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.result-item h3 { font-size: var(--fs-h5); margin-bottom: .35rem; }
.result-item h3 a { color: inherit; }
.result-item h3 a:hover { color: var(--gold-text); }
.result-path { font-size: var(--fs-xs); color: var(--gold-text); font-family: var(--font-display); letter-spacing: .04em; margin-bottom: .5rem; }
.result-item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.result-item mark { background: var(--gold-tint); color: var(--ink); padding: 0 .15em; }

.pagination-c { display: flex; justify-content: center; gap: .4rem; list-style: none; margin: 3rem 0 0; padding: 0; }
.pagination-c a, .pagination-c span { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding-inline: .5rem; border: 1px solid var(--line); border-radius: var(--radius-xs); font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--surface); transition: all var(--t) var(--ease); }
.pagination-c a:hover { border-color: var(--gold); color: var(--gold-text); }
.pagination-c [aria-current="page"] { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-fg); }

/* 18. TABLES ------------------------------------------------------------ */
.table-c { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-c caption { caption-side: top; text-align: start; font-family: var(--font-display); color: var(--ink); font-weight: 600; padding-bottom: 1rem; }
.table-c th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); color: #fff; background: var(--brown-900); padding: 1rem 1.25rem; text-align: start; }
.table-c td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--text); }
.table-c tbody tr { transition: background var(--t-fast) var(--ease); }
.table-c tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* 19. GALLERY ----------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; grid-auto-flow: dense; }
.gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; isolation: isolate; }
.gallery-grid a.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid a.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery-grid a::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.75rem; color: #fff; background: rgba(42,31,20,.55); opacity: 0; transition: opacity var(--t) var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; }

.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; isolation: isolate; color: #fff; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.video-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.1), rgba(20,16,12,.85)); }
.video-card .play-btn { width: 4rem; height: 4rem; font-size: 1.4rem; }
.video-card:hover img { transform: scale(1.06); }
.video-card .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem; }
.video-card h3 { color: #fff; font-size: var(--fs-h5); margin: 0 0 .25rem; }
.video-card .dur { font-size: var(--fs-xs); color: rgba(255,255,255,.8); display: inline-flex; gap: .35rem; align-items: center; }
.video-card:hover { color: #fff; }

/* Viewer (photo2) */
.viewer-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--brown-950); aspect-ratio: 16 / 9; }
.viewer-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .4s var(--ease); }
.viewer-main img.fading { opacity: 0; }
.viewer-counter { position: absolute; top: 1rem; inset-inline-start: 1rem; padding: .35rem .85rem; border-radius: var(--radius-pill); background: rgba(20,16,12,.7); color: #fff; font-family: var(--font-display); font-size: var(--fs-sm); }
.viewer-main .carousel-nav { top: 50%; }
.viewer-main .carousel-nav.prev { inset-inline-start: 1rem; }
.viewer-main .carousel-nav.next { inset-inline-end: 1rem; }
.viewer-roll { display: flex; gap: .75rem; overflow-x: auto; padding: 1rem 0 .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.viewer-roll button { flex: 0 0 120px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; opacity: .55; scroll-snap-align: start; background: none; transition: all var(--t) var(--ease); }
.viewer-roll button img { width: 100%; height: 100%; object-fit: cover; }
.viewer-roll button[aria-current="true"], .viewer-roll button:hover { opacity: 1; border-color: var(--gold); }

/* Lightbox (custom, dependency-free) */
.lightbox { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; background: rgba(12,10,8,.94); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility 0s var(--t); padding: 4.5rem 1rem; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease); }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: .75rem; transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.open figure { transform: none; }
.lightbox img, .lightbox video, .lightbox iframe { max-width: 100%; max-height: calc(100vh - 10rem); margin: auto; border-radius: var(--radius-sm); }
.lightbox video, .lightbox iframe { width: min(1100px, 92vw); aspect-ratio: 16 / 9; height: auto; background: #000; border: 0; }
.lightbox figcaption { color: rgba(255,255,255,.8); text-align: center; font-size: var(--fs-sm); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: #fff; display: grid; place-items: center; font-size: 1.15rem; transition: all var(--t) var(--ease); }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--gold); border-color: var(--gold); color: var(--brown-950); }
.lightbox .lb-close { top: 1rem; inset-inline-end: 1rem; }
.lightbox .lb-prev { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 1.6rem; inset-inline-start: 1.5rem; color: rgba(255,255,255,.7); font-family: var(--font-display); font-size: var(--fs-sm); }

/* Side submenu (list1/list2) */
.sub-menu-box { padding: 1.75rem; background: var(--brown-900); border-radius: var(--radius-sm); color: #fff; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sub-menu-box h2 { color: #fff; font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.25rem; }
.sub-menu-box ol { list-style: none; margin: 0; padding: 0; counter-reset: sm; display: grid; gap: .25rem; }
.sub-menu-box li { counter-increment: sm; }
.sub-menu-box a { display: flex; gap: .9rem; align-items: center; padding: .7rem .5rem; border-radius: var(--radius-xs); color: rgba(255,255,255,.8); font-family: var(--font-display); font-weight: 500; transition: all var(--t) var(--ease); }
.sub-menu-box a::before { content: counter(sm, decimal-leading-zero); font-size: var(--fs-xs); color: var(--gold); }
.sub-menu-box a:hover, .sub-menu-box a.active { background: rgba(255,255,255,.06); color: #fff; padding-inline-start: .9rem; }
.content-block { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.content-block:last-child { border-bottom: 0; margin-bottom: 0; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 2rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta .bi { color: var(--gold-text); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; margin-top: 2.5rem; border-block: 1px solid var(--line); }
.share-row .social-mini a { border-color: var(--line); color: var(--ink); }
.share-row .social-mini a:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .35rem; }
.post-nav strong { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.post-nav a:last-child { text-align: end; }

/* 404 */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.error-code { font-family: var(--font-display); font-size: clamp(7rem, 4rem + 15vw, 14rem); font-weight: 700; line-height: .9; letter-spacing: -.06em; background: linear-gradient(135deg, var(--gold) 0%, var(--brown-700) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 20. UTILITIES & MOTION ------------------------------------------------ */
.rounded-c { border-radius: var(--radius); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.mt-section { margin-top: var(--section-y); }
.gap-row { row-gap: 1.5rem; }
.text-balance { text-wrap: balance; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Scroll reveal (progressive enhancement: only hides when JS is running) */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="down"] { transform: translateY(-30px); }
.js [data-reveal="start"] { transform: translateX(-50px); }
.js [data-reveal="end"] { transform: translateX(50px); }
.js[dir="rtl"] [data-reveal="start"] { transform: translateX(50px); }
.js[dir="rtl"] [data-reveal="end"] { transform: translateX(-50px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="mask"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out); opacity: 1; }
.js[dir="rtl"] [data-reveal="mask"] { clip-path: inset(0 0 0 100%); }
.js [data-reveal].revealed { opacity: 1; transform: none; }
/* only the mask variant animates clip-path; a clip on other elements would cut shadows and overflowing carousels */
.js [data-reveal="mask"].revealed { clip-path: inset(0 0 0 0); }
.js [data-reveal="split"] { opacity: 1; transform: none; }

/* Split-word headline animation */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--d, 0s)); }
.revealed .split-word > span, .split-word.revealed > span { transform: none; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--brown-950); transition: opacity .6s var(--ease), visibility 0s .6s; }
.preloader img { width: 120px; animation: pulseLogo 1.4s var(--ease) infinite; }
.preloader .bar { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; animation: loadBar 1.2s var(--ease) forwards; }
.loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes pulseLogo { 50% { opacity: .55; transform: scale(.96); } }
@keyframes loadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .split-word > span { transform: none; }
  .marquee-track { animation: none; }
  .hero-slide .hero-bg { transform: none; }
}

/* 21. RESPONSIVE -------------------------------------------------------- */
/* Large laptop: collapse the 8-item menu into the hamburger */
@media (max-width: 1199.98px) {
  .main-nav, .header-cta { display: none !important; }
  .nav-toggle { display: inline-block; }
  .header-actions { margin-inline-start: auto; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .timeline::before { display: none; }
}
/* Laptop ≤1024 */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .properties-carousel .swiper-slide { width: 46vw; }
  :root { --header-h: 76px; }
  .brand img { width: 112px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .on-dark .stat:nth-child(n+3) { border-top-color: rgba(255,255,255,.12); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar, .sub-menu-box { position: static; }
  .projects-carousel { padding-inline: 0; }
  .carousel-nav.prev { inset-inline-start: .5rem; }
  .carousel-nav.next { inset-inline-end: .5rem; }
}
/* Tablet ≤768 */
@media (max-width: 768px) {
  :root { --frame-inset: 0px; }
  .properties-carousel .swiper-slide { width: 82vw; }
  .topbar-info li.hide-sm, .topbar .social-mini { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-info { gap: 1.25rem; font-size: .8125rem; }
  .hero .swiper { height: max(600px, calc(100svh - var(--header-h) - var(--topbar-h))); }
  .hero-slide::before { background: linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.85) 100%) !important; }
  .hero-count { display: none; }
  .hero-controls .container { justify-content: center; }
  .scroll-cue { display: none; }
  .section-head-row { align-items: flex-start; }
  .post-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid a.wide { grid-column: span 2; }
  .why-list li { grid-template-columns: 3rem 1fr; }
  .job-head { grid-template-columns: 1fr; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: start; }
  .footer-bottom { justify-content: center; text-align: center; }
  .media-frame { margin-top: 1rem; }
  .projects-carousel .swiper-slide { width: 86vw; transform: scale(.9); }
  .projects-carousel .swiper-slide-active { transform: scale(1); }
  .projects-carousel .project-card { aspect-ratio: 4 / 5; }
  .carousel-nav { width: 2.75rem; height: 2.75rem; }
  .tile, .tile.lg { min-height: 260px; }
  .tile p { max-height: 6rem; opacity: 1; }
}
/* Phablet ≤576: let the hero pill wrap instead of overflowing */
@media (max-width: 576px) {
  .hero-pill { white-space: normal; flex-wrap: wrap; row-gap: .25rem; font-size: .625rem; letter-spacing: .1em; padding: .5rem 1rem; border-radius: 1rem; }
}
/* Mobile ≤480 */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  :root { --header-h: 68px; }
  .brand img { width: 96px; }
  .site-header.is-scrolled .brand img { width: 88px; }
  .topbar-info a span.txt { display: none; }
  .topbar-info a { font-size: 0; gap: 0; }
  .topbar-info a .bi { font-size: .95rem; }
  .topbar-info a .ltr-num, .topbar-info a .mail-txt { font-size: .8125rem; margin-inline-start: .45rem; }
  .hero-actions .btn-c { width: 100%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.5rem .75rem; }
  .timeline { grid-template-columns: 1fr; }
  .gallery-grid { gap: .5rem; }
  .feature-inline { gap: .9rem; flex-direction: column; }
  .cta-band .btn-c { width: 100%; }
  .back-to-top { inset-inline-end: 1rem; bottom: 1rem; width: 2.85rem; height: 2.85rem; }
  .whatsapp-fab { inset-inline-start: 1rem; bottom: 1rem; width: 2.85rem; height: 2.85rem; font-size: 1.3rem; }
  .lang-switch { padding: .4rem; }
  .header-actions { gap: .15rem; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .filter-chips button { white-space: nowrap; }
  .viewer-roll button { flex-basis: 84px; }
}
/* Large desktop */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .back-to-top, .whatsapp-fab, .mobile-menu, .search-overlay, .preloader, .cta-band, .marquee { display: none !important; }
  .page-banner { min-height: 0; background: none; color: #000; padding: 1rem 0; }
  .page-banner::before, .page-banner .banner-bg { display: none; }
  .page-banner h1 { color: #000; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   ARABIC (RTL) LAYER
   Arabic script is cursive: letter-spacing breaks letter joining, italics
   and uppercase have no meaning, and it needs a taller line-height.
   ========================================================================== */
:root {
  --font-display: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-alt: var(--font-body);
  --font-footer: var(--font-body);
  --ls-display: 0;
  --ls-eyebrow: 0;
  --lh-tight: 1.35;
  --lh-body: 1.9;
  --fs-h1: clamp(2.1rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.85rem);
  --fs-h2-xl: clamp(1.85rem, 1.2rem + 2.3vw, 3.1rem);
  --fs-h2-md: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --fs-h2-sm: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
}
body { font-size: .9375rem; }
/* Arabic needs larger minimum sizes than the 9–12px Latin labels in Figma */
.main-nav a, .lang-switch, .btn-c, .btn-c.sm, .btn-c.outline-light, .feature-inline li, .filter-chips button { font-size: .8125rem; }
.eyebrow.light, .on-dark .eyebrow, .cta-band .eyebrow { font-size: .75rem; }
.project-card .cat, .property-card .price small, .property-card .specs, .project-card .meta, .footer-bottom, .footer-bottom ul { font-size: .6875rem; }
.service-card p, .property-card p, .why-list p { font-size: .8125rem; }
.hero-content > p:not(.hero-pill) { font-size: .9375rem; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { letter-spacing: 0 !important; font-weight: 700; }
.accent { font-style: normal !important; font-weight: 700; }
.eyebrow, .link-arrow, .hero-pill, .badge-status, .badge-tag, .badge-teal, .stat-label, .project-card .cat,
.project-card .more, .footer-title, .post-card .sub, .post-card .date, .job-ref, .team-card .role, .widget-title,
.info-box h3, .table-c th, .property-card .price small, .post-nav small, .search-overlay label, .sub-menu-box h2,
.marquee-item, .btn-c, .main-nav a, .acc-btn, .tabs-c button, .breadcrumb-c, .result-path, .hero-count {
  letter-spacing: 0 !important; text-transform: none !important;
}
.eyebrow { font-size: .8125rem; }
.link-arrow, .project-card .more { font-size: .8125rem; }
.badge-status, .badge-tag, .badge-teal { font-size: .6875rem; }
.stat-label, .footer-title { font-size: .8125rem; }
.hero .hero-title { line-height: 1.3; }
.hero-pill { font-size: .8125rem; }
.split-word { padding-bottom: .25em; margin-bottom: -.25em; }
.why-list .n { font-family: var(--font-display); }
.btn-c { font-size: .9375rem; }
/* Numbers, phones and emails stay LTR inside RTL flow */
.num-ltr, a[href^="tel:"], a[href^="mailto:"] { unicode-bidi: isolate; }
a[href^="tel:"] .ltr-num { direction: ltr; }
