/* =====================================================================
   Dar al Ofoq · Proposal 6 · Versions 3 + 4 combined (design preview)
   One block per section; every section owns a `section-*` class.
   ===================================================================== */

/* ---------------------------- Tokens ---------------------------- */
:root {
  /* colour */
  --ink: #241F1A;
  --muted: #5B5147;
  --paper: #F4EDDF;        /* Kasbah chalk */
  --paper-2: #FAF6EE;      /* lighter chalk, header + hero 2 */
  --sand: #ECE1CC;
  --pale: #E4DCCB;
  --green: #15453B;        /* Deep Atlas green */
  --green-deep: #0E332B;
  --gold: #C68A2E;         /* Saffron */
  --gold-l: #E7BC63;
  --terra: #A2472A;        /* Clay */
  --line: rgba(36, 31, 26, .14);
  --line-light: rgba(244, 237, 223, .18);
  --gold-line: rgba(231, 188, 99, .22);

  /* type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --arabic: "Reem Kufi", "Noto Kufi Arabic", serif;
  --fs-display: clamp(40px, 5.4vw, 72px);
  --fs-lede: clamp(17px, 1.5vw, 20px);

  /* space + shape */
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --hdr: 72px;
  --sec-y: clamp(72px, 9vw, 128px);
  --arch: 50% 50% 8px 8px / 34% 34% 8px 8px;
  --arch-soft: 50% 50% 6px 6px / 22% 22% 6px 6px;
  --ease: cubic-bezier(.16, .8, .3, 1);
  --dots-green: radial-gradient(circle at center, rgba(21, 69, 59, .07) 0 1.5px, transparent 2px);
  --dots-gold: radial-gradient(circle at center, rgba(231, 188, 99, .10) 0 2px, transparent 2px);

  /* The arrow drawn for editable buttons, stroked exactly like `svg path`
     above so it matches the inline icons the theme renders itself. */
  --ofoq-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------------------------- Base ---------------------------- */
:where(.ofoq-site, .ofoq-site *, .ofoq-site *::before, .ofoq-site *::after) { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* The element resets are scoped to the theme's own wrapper so they cannot
   restyle the WordPress Media Library that NativePress opens on the page, and are
   written with :where() so the scope adds no specificity: a component rule such
   as .btn or .hero1__img must still win, exactly as it did against a bare
   element selector. */
:where(.ofoq-site) img { display: block; max-width: 100%; height: auto; }
:where(.ofoq-site) a { color: inherit; text-decoration: none; }
:where(.ofoq-site) button { font: inherit; color: inherit; }
:where(.ofoq-site) figure { margin: 0; }
:where(.ofoq-site) :is(h1, h2, h3) { text-wrap: balance; }
:where(.ofoq-site) p { margin: 0; }
:where(.ofoq-site) [lang="ar"] { font-family: var(--arabic); font-weight: 500; }
:where(.ofoq-site) ::selection { background: var(--green); color: var(--paper); }
:where(.ofoq-site) :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:where(.ofoq-site) svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 16px; background: var(--gold); color: var(--green-deep); font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------- Shared type ---------------------------- */
/* eyebrow with the logo's sun arc (V3) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--terra); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 11px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M4 20 A18 18 0 0 1 40 20' fill='none' stroke='%23A2472A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.eyebrow--light { color: var(--gold-l); }
.eyebrow--light::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M4 20 A18 18 0 0 1 40 20' fill='none' stroke='%23E7BC63' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

.display { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-display); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.display em { font-style: italic; color: var(--terra); }
.display--light { color: var(--paper); }
.display--light em { color: var(--gold-l); }
.lede { font-size: var(--fs-lede); line-height: 1.6; max-width: 34em; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------------------------- Buttons & links ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-l); transform: translateY(-2px); }
.btn--green { background: var(--green); color: var(--paper); }
.btn--green:hover { background: var(--green-deep); }
.btn--line { border-color: rgba(21, 69, 59, .45); color: var(--green); background: transparent; }
.btn--line:hover { border-color: var(--green); background: var(--green); color: var(--paper); }
.btn--line-light { border-color: rgba(244, 237, 223, .5); color: var(--paper); background: transparent; }
.btn--line-light:hover { border-color: var(--gold-l); color: var(--gold-l); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px;
  color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
}
.textlink svg { width: 16px; height: 16px; transition: transform .2s; }
.textlink:hover svg { transform: translateX(3px); }

.icon-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(21, 69, 59, .35); background: transparent; color: var(--green); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(198, 138, 46, .12); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--light { border-color: rgba(244, 237, 223, .4); color: var(--paper); }

/* exclusive-hire notice (V3) */
.ofoq-note {
  width: fit-content; max-width: 100%; padding: 12px 20px;
  background: rgba(198, 138, 46, .1); border: 1px solid rgba(198, 138, 46, .6); border-radius: 3px;
  color: var(--green-deep); font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center;
}
.ofoq-note--left { text-align: left; }

/* arched-door badge (V4) */
.badge {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 46px; flex: none;
  background: var(--green); color: var(--gold-l); font: 600 20px/1 var(--display); font-variant-numeric: lining-nums;
  border-radius: 50% 50% 2px 2px / 17px 17px 2px 2px; outline: 1px solid var(--gold-l); outline-offset: -4px;
}
.badge--xl { width: 64px; height: 76px; font-size: 32px; border-radius: 50% 50% 2px 2px / 26px 26px 2px 2px; outline-offset: -5px; box-shadow: 0 0 0 4px var(--paper); }

/* arch frame with inner line (V3) */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); border: 1px solid rgba(198, 138, 46, .35); }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(244, 237, 223, .55); border-radius: 50% 50% 4px 4px / 32% 32% 4px 4px; pointer-events: none; z-index: 2; }

/* street-door plaque (V3/V4) */
.door-plaque {
  position: absolute; left: 50%; z-index: 5; translate: -50% 0; white-space: nowrap;
  padding: 8px 16px; background: var(--paper); color: var(--green);
  font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  border-radius: 2px; outline: 1px solid var(--green); outline-offset: -4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.door-plaque [lang="ar"] { font-size: 13px; letter-spacing: 0; }

/* cedar door leaves (V3 structure, V4 finish) — shared by Door 1 and Door 2 */
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 3;
  background-color: var(--green);
  background-image: radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px);
  background-size: 30px 52px; background-repeat: repeat-y;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .28);
  backface-visibility: hidden;
}
.leaf--l { left: 0; transform-origin: 0 50%; background-position: 6px 26px; }
.leaf--r { right: 0; transform-origin: 100% 50%; background-position: right 6px top 26px; }
.leaf--l::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 1px; background: rgba(0, 0, 0, .45); }
.leaf__panel { position: absolute; left: 16%; right: 16%; border: 1px solid var(--gold); background: var(--green-deep); outline: 1px solid rgba(198, 138, 46, .45); outline-offset: 9px; }
.leaf__panel--top { top: 9%; bottom: 52%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.leaf__panel--bot { top: 56%; bottom: 9%; }
.leaf__ring { position: absolute; top: 48%; width: clamp(26px, 3vw, 42px); aspect-ratio: 1; border: 3px solid var(--gold); border-radius: 50%; }
.leaf--l .leaf__ring { right: 6%; }
.leaf--r .leaf__ring { left: 6%; }

/* =====================================================================
   HEADER (V4)
   ===================================================================== */
.section-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 238, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.section-header.is-scrolled { box-shadow: 0 8px 24px rgba(14, 51, 43, .08); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-deep); }
.brand__mark { width: 64px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 600 24px/1 var(--display); white-space: nowrap; }
.brand__ar { margin-top: 3px; font-size: 13px; color: var(--gold); }
.brand--light { color: var(--paper); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--green-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 9px; transform: translateX(-50%) scale(.4);
  border: 2px solid var(--gold); border-bottom: 0; border-radius: 18px 18px 0 0; opacity: 0; transition: opacity .2s, transform .2s;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { opacity: 1; transform: translateX(-50%) translateY(10px) scale(1); }
.nav__link[aria-current="page"] { color: var(--terra); }
.nav .btn[aria-current="page"] { background: var(--green-deep); outline: 1px solid var(--gold); outline-offset: 3px; }
.menu-overlay__nav a[aria-current="page"] { color: var(--gold-l); }
.menu-btn { display: none; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto;
  padding: 16px var(--gutter) 24px; background: var(--green-deep) var(--dots-gold); background-size: 34px 34px; color: var(--paper);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility 0s linear .3s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-overlay__nav { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--line-light); }
.menu-overlay__nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-light); font: 500 clamp(34px, 9vw, 46px)/1.05 var(--display); }
.menu-overlay__nav [lang="ar"] { font-size: 18px; color: var(--gold-l); }
.menu-overlay__contact { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; font-size: 15px; color: var(--pale); }

@media (max-width: 860px) {
  :root { --hdr: 64px; }
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; cursor: pointer;
    background: transparent; border: 1px solid rgba(21, 69, 59, .35); border-radius: 2px; color: var(--green-deep);
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .brand__mark { width: 52px; }
  .brand__name { font-size: 21px; }
}

/* =====================================================================
   HERO 1 (V3): full-bleed slider — brand plate, sunset, Grand Salon
   ===================================================================== */
.section-hero-1 { position: relative; height: calc(100svh - var(--hdr)); min-height: 600px; max-height: 980px; overflow: hidden; background: var(--green-deep); color: var(--paper); }
.hero1__slider { position: absolute; inset: 0; }
.hero1__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease; }
.hero1__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero1__slide[hidden] { display: block; }
.hero1__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero1__img--top { object-position: center 30%; }
.hero1__slide.is-active .hero1__img { transform: none; }
.hero1__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 51, 43, .45) 0%, rgba(14, 51, 43, .1) 36%, rgba(14, 51, 43, .86) 100%); }
.hero1__caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 15vh, 140px); max-width: 560px; transform: translateY(22px); opacity: 0; transition: transform .8s ease .15s, opacity .8s ease .15s; }
.hero1__slide.is-active .hero1__caption { transform: none; opacity: 1; }
.hero1__caption h2 { margin: 16px 0 0; font: 500 clamp(44px, 7vw, 84px)/.98 var(--display); letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero1__caption h2 em { color: var(--gold-l); }
.hero1__caption p:last-child, .hero1__caption .ofoq-richtext:last-child { margin-top: 14px; max-width: 30rem; font-size: 17px; color: rgba(244, 237, 223, .92); }

.hero1__slide--brand {
  display: grid; place-items: center; text-align: center; padding: 48px var(--gutter) 110px; color: var(--ink);
  background: radial-gradient(80% 70% at 50% 38%, rgba(198, 138, 46, .16), transparent 68%), linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}
.hero1__slide--brand::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-green); background-size: 34px 34px; }
.brandplate { position: relative; display: grid; justify-items: center; gap: 18px; }
.brandplate__eyebrow { color: var(--terra); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.brandplate__logo { width: clamp(240px, 32vw, 430px); transform: translateY(22px) scale(.97); opacity: 0; transition: transform 1.15s var(--ease) .1s, opacity 1.1s ease .1s; }
.hero1__slide--brand.is-active .brandplate__logo { transform: none; opacity: 1; }
.brandplate__tag { margin-top: -4px; font: italic 500 clamp(22px, 2.4vw, 30px)/1.2 var(--display); color: var(--green); }
.brandplate .ofoq-note { margin-top: 2px; }

.hero1__arrow {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 237, 223, .4); border-radius: 50%; background: rgba(14, 51, 43, .35); color: var(--paper);
  transition: background-color .25s, border-color .25s, color .25s;
}
.hero1__arrow svg { width: 18px; height: 18px; }
.hero1__arrow:hover { background: var(--gold); border-color: var(--gold-l); color: var(--green-deep); }
.hero1__arrow--prev { left: clamp(12px, 2.5vw, 32px); }
.hero1__arrow--next { right: clamp(12px, 2.5vw, 32px); }
.section-hero-1[data-light] .hero1__arrow { background: transparent; border-color: rgba(21, 69, 59, .3); color: var(--green); }
.section-hero-1[data-light] .hero1__arrow:hover { background: var(--green); color: var(--paper); }

.hero1__nav { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 40px); display: flex; align-items: center; gap: 22px; }
.hero1__count { flex: none; min-width: 72px; font: 500 17px/1 var(--display); letter-spacing: .12em; color: rgba(244, 237, 223, .85); }
.hero1__count b { font-weight: 600; color: var(--gold-l); }
.hero1__rail { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.hero1__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 237, 223, .4) 12%, rgba(244, 237, 223, .4) 88%, transparent); }
.hero1__dots { position: relative; display: flex; justify-content: space-between; width: 100%; }
.hero1__dot { padding: 10px 4px; border: 0; background: none; cursor: pointer; }
.hero1__dot svg { display: block; width: 30px; height: 15px; }
.hero1__dot path { stroke: rgba(244, 237, 223, .55); stroke-width: 3; transition: stroke .3s; }
.hero1__dot[aria-current="true"] path { stroke: var(--gold); }
.hero1__diamond { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); transition: left .7s var(--ease); }
.section-hero-1[data-light] .hero1__count { color: var(--muted); }
.section-hero-1[data-light] .hero1__count b { color: var(--terra); }
.section-hero-1[data-light] .hero1__rail::before { background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.section-hero-1[data-light] .hero1__dot path { stroke: rgba(21, 69, 59, .3); }
.section-hero-1[data-light] .hero1__dot[aria-current="true"] path { stroke: var(--gold); }

@media (max-width: 720px) {
  .section-hero-1 { height: calc(100svh - var(--hdr) - 68px); min-height: 600px; }
  .hero1__arrow { display: none; }
  .hero1__slide--brand { padding-bottom: 96px; }
  .brandplate { gap: 14px; }
  .brandplate__eyebrow { font-size: 11px; letter-spacing: .2em; }
}

/* =====================================================================
   AT A GLANCE (V3 + V4)
   ===================================================================== */
.section-glance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--green); color: var(--paper); }
.section-glance li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; text-align: center; border-left: 1px solid var(--gold-line); }
.section-glance li:first-child { border-left: 0; }
.section-glance strong { font: 500 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--gold-l); font-variant-numeric: lining-nums; }
.section-glance li > span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 237, 223, .85); }
@media (max-width: 600px) {
  .section-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-glance li:nth-child(3) { border-left: 0; }
  .section-glance li:nth-child(n+3) { border-top: 1px solid var(--gold-line); }
}

/* =====================================================================
   HERO 2 (V4): headline + facts + arched window slider
   ===================================================================== */
.section-hero-2 { background: var(--paper-2) var(--dots-green); background-size: 30px 30px; }
.hero2__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(64px, 8vw, 112px); }
.hero2__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.section-hero-2 h1 { margin: 0; font: 500 clamp(46px, 6.2vw, 92px)/.96 var(--display); letter-spacing: -.015em; color: var(--green-deep); }
.section-hero-2 h1 em { color: var(--terra); }
.hero2__facts { align-self: stretch; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 14px 0; list-style: none; border-block: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--green-deep); }
.hero2__facts li { display: flex; align-items: center; }
.hero2__facts li::before { content: ""; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: var(--gold); }

.window { position: relative; min-width: 0; }
.window__frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: min(76vh, 720px); width: 100%; margin-inline: auto;
  border-radius: var(--arch); background: var(--green-deep);
  outline: 1px solid rgba(198, 138, 46, .7); outline-offset: 10px;
}
.window__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.window__slide.is-active { opacity: 1; }
/* The slides are stacked; one that is not showing must not catch the click
   meant for the one that is -- with NativePress, the photo to replace. */
.window__slide:not(.is-active) { pointer-events: none; }
.window__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.window__slide.is-active img { transform: scale(1); }
.window__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.window__caption { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.window__caption b { display: block; font: 500 22px/1.2 var(--display); color: var(--green-deep); }
.window__caption .window__cap > span { display: block; }
.window__caption .window__cap { display: none; }
.window__caption .window__cap.is-active { display: block; }
.suns { display: flex; gap: 2px; }
.sun-dot { width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgba(21, 69, 59, .3); }
.sun-dot svg { width: 26px; height: 13px; }
.sun-dot path { stroke-width: 3; }
.sun-dot[aria-current="true"] { color: var(--gold); }

@media (max-width: 860px) {
  .hero2__grid { grid-template-columns: 1fr; }
  .window__frame { aspect-ratio: 5 / 5.4; }
}
@media (max-width: 600px) { .window__caption { flex-basis: 100%; } .suns { margin-right: auto; } }

/* =====================================================================
   DOOR 1 (V3 mechanic): the street door opens as you scroll
   ===================================================================== */
.section-door-1 { position: relative; background: var(--green-deep); }
.door1__stage { position: relative; min-height: 100svh; display: grid; overflow: hidden; }
.door1__view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door1__shade { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, rgba(14, 51, 43, 0), rgba(14, 51, 43, .9)); pointer-events: none; }
.door1__leaves { display: none; }
.door1__caption { position: relative; z-index: 4; align-self: end; justify-self: center; display: grid; justify-items: center; gap: 16px; max-width: 760px; padding: 96px var(--gutter) clamp(48px, 9vh, 88px); text-align: center; }
.door1__caption p:last-child, .door1__caption .ofoq-richtext:last-child { max-width: 32em; color: rgba(244, 237, 223, .9); }

.door1-anim .section-door-1 { height: 240svh; }
.door1-anim .door1__stage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 0; perspective: 140vw; }
.door1-anim .door1__view { transform: scale(calc(1.12 - .12 * var(--p, 0))); }
.door1-anim .door1__leaves { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; transform-style: preserve-3d; }
.door1-anim .door1__leaves .leaf--l { transform: rotateY(calc(var(--p, 0) * 92deg)); }
.door1-anim .door1__leaves .leaf--r { transform: rotateY(calc(var(--p, 0) * -92deg)); }
.door1-anim .door1__caption { opacity: clamp(0, calc((var(--p, 0) - .55) * 3), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - .55) * 3), 1)) * 2rem)); }
.door1__plaque { top: 7%; opacity: calc(1 - var(--p, 0) * 4); }
.door1__hint {
  position: absolute; left: 50%; bottom: 7%; z-index: 5; translate: -50% 0; display: grid; justify-items: center; gap: 6px;
  color: var(--gold-l); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  opacity: calc(1 - var(--p, 0) * 4);
}
.door1__hint svg { width: 20px; height: 20px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 640px) {
  .leaf__panel { left: 12%; right: 12%; }
  .door1__plaque { font-size: 10px; }
}

/* =====================================================================
   THE HOUSE (V4 split + collage, V3 captions + horizon)
   ===================================================================== */
.section-house { padding-block: var(--sec-y) clamp(48px, 6vw, 72px); background: var(--paper); }
.house__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.house__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.house__text .muted { max-width: 34em; }
.collage { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.collage figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.collage img { width: 100%; object-fit: cover; border-radius: 6px; }
.collage figcaption { font-size: 13px; color: var(--muted); }
.collage__a { grid-row: span 2; }
.collage__a img { height: 100%; min-height: 460px; border-radius: var(--arch-soft); }
.collage__b img, .collage__c img { height: clamp(170px, 16vw, 220px); }
.horizon { display: flex; align-items: center; gap: 24px; margin-top: clamp(56px, 7vw, 88px); }
.horizon__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent); }
.horizon__mark { width: 104px; flex: none; }
@media (max-width: 860px) { .house__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .collage__a { grid-column: 1 / -1; grid-row: auto; }
  .collage__a img { min-height: 0; height: 300px; }
  .collage__b img, .collage__c img { height: 170px; }
}

/* =====================================================================
   ROOMS (V3 plaque index, V4 badges)
   ===================================================================== */
.section-rooms { padding-block: var(--sec-y); background: var(--sand); }
.rooms__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 88px); align-items: center; }
.rooms__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.room-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.room-row {
  width: 100%; display: grid; grid-template-columns: 38px 1fr; column-gap: 18px; row-gap: 2px; align-items: center;
  padding: 14px 8px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer;
  transition: background-color .3s;
}
.room-row:hover { background: rgba(250, 246, 238, .6); }
.room-row .badge { grid-row: 1 / span 2; background: var(--paper); color: var(--green); outline-color: var(--green); transition: background-color .3s, color .3s, outline-color .3s; }
.room-row.is-on .badge { background: var(--green); color: var(--gold-l); outline-color: var(--gold-l); }
.room-row__name { font: 500 26px/1.15 var(--display); color: var(--ink); }
.room-row__name [lang="ar"] { margin-left: 8px; font-size: 15px; color: var(--gold); }
.room-row.is-on .room-row__name { color: var(--green); }
.room-row__line { font-size: 14px; color: var(--muted); }
.rooms__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.rooms__note { flex: 1 1 260px; font-size: 14px; color: var(--muted); }
.rooms__figure { position: relative; min-width: 0; }
.rooms__view { aspect-ratio: 4 / 5; max-height: 720px; margin-inline: auto; background: var(--green-deep); overflow: visible; border: 0; }
.rooms__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); opacity: 0; transition: opacity .7s ease; }
.rooms__view img.is-on { opacity: 1; }
.rooms__view { border-radius: var(--arch); outline: 1px solid rgba(198, 138, 46, .6); outline-offset: 10px; }
.rooms__badge { position: absolute; left: 28px; bottom: -22px; z-index: 3; }
@media (max-width: 860px) {
  .rooms__grid { grid-template-columns: 1fr; }
  .rooms__figure { order: -1; }
  .rooms__view { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 600px) { .room-row__name { font-size: 22px; } .room-row__name [lang="ar"] { display: inline-block; } }

/* shared by the two room carousels below */
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; border-color: rgba(21, 69, 59, .35); }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm svg { width: 15px; height: 15px; }
[data-scroll-track] { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
[data-scroll-track] > * { scroll-snap-align: start; min-width: 0; }

/* =====================================================================
   ROOMS · CARDS (new, reference 1): five arched cards + feature strip
   ===================================================================== */
.section-rooms-cards { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--sec-y); background: var(--paper-2); }
.rcards__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.rcards__title { display: flex; flex-direction: column; gap: 14px; }
.section-rooms-cards .display { font-size: clamp(38px, 4.4vw, 60px); color: var(--green-deep); }
.rcards__ctrl { display: flex; align-items: center; gap: 10px; }
.rcards__ctrl .textlink { margin-right: 14px; font-size: 12px; }

.rcards__track {
  --gap: clamp(14px, 1.6vw, 22px);
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - 4 * var(--gap)) / 5);
  padding: 6px 4px 30px; margin-inline: -4px; scrollbar-width: none;
}
.rcards__track::-webkit-scrollbar { display: none; }
.rcard2 {
  position: relative; display: flex; flex-direction: column;
  background: #FFFDF8; border: 1px solid rgba(198, 138, 46, .22); border-radius: 8px;
  box-shadow: 0 14px 28px -20px rgba(36, 31, 26, .45);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.rcard2:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -22px rgba(36, 31, 26, .5); }
.rcard2__img { position: relative; }
.rcard2__img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.rcard2__no {
  position: absolute; left: 14px; bottom: -14px; display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px;
  background: var(--green-deep); color: var(--paper); font: 600 12px/1 var(--body); letter-spacing: .06em; font-variant-numeric: lining-nums;
  border-radius: 3px; outline: 1px solid rgba(231, 188, 99, .7); outline-offset: -4px;
}
.rcard2__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; align-items: center; padding: 28px 14px 20px 16px; }
.rcard2__name { grid-column: 1 / -1; margin: 0; font: 500 clamp(19px, 1.5vw, 21px)/1.15 var(--display); color: var(--green-deep); white-space: nowrap; }
.rcard2__name a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.rcard2__line { grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rcard2__arrow { grid-column: 2; grid-row: 2; width: 18px; height: 18px; color: var(--green); transition: transform .2s; }
.rcard2:hover .rcard2__arrow { transform: translateX(3px); }

.rcards__features { list-style: none; margin: clamp(36px, 4.4vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(48px, 6vw, 96px); }
.rfeat { position: relative; display: flex; flex-direction: column; gap: 14px; }
.rfeat + .rfeat::before {
  content: ""; position: absolute; top: 18px; left: calc(clamp(48px, 6vw, 96px) / -2 - 4px); width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.rfeat__head { display: flex; align-items: center; gap: 14px; }
.rfeat__icon { width: 44px; height: 44px; flex: none; }
.rfeat h3 { margin: 0; color: var(--terra); font: 700 12px/1.6 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.rfeat p, .rfeat .ofoq-richtext { max-width: 30em; font-size: 14px; color: var(--muted); }

/* decorations: carved plaster panel (bottom-left) and palm fronds (bottom-right) */
.rcards__ornament, .rcards__palm { position: absolute; z-index: -1; pointer-events: none; background: no-repeat center / contain; }
.rcards__ornament { left: -40px; bottom: -70px; width: clamp(180px, 20vw, 280px); aspect-ratio: 320 / 420; background-image: url("../img/carved-plaster-ornament.svg"); opacity: .28; }
.rcards__palm { right: -36px; bottom: -24px; width: clamp(200px, 22vw, 320px); aspect-ratio: 320 / 360; background-image: url("../img/palm-fronds.svg"); opacity: .5; }

@media (max-width: 1100px) { .rcards__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 760px) {
  .rcards__track { grid-auto-columns: 72%; }
  .rcards__ctrl .icon-btn { display: none; }
  .rcards__ctrl .textlink { margin-right: 0; }
  .rcards__features { grid-template-columns: 1fr; }
  .rfeat + .rfeat::before { top: -22px; left: 18px; }
  .rcards__ornament { opacity: .18; }
  .rcards__palm { width: 170px; opacity: .35; }
}

/* =====================================================================
   ROOMS · SCROLLER (new, reference 2 = V4 rooms row)
   ===================================================================== */
.section-rooms-scroller { padding-block: var(--sec-y); background: var(--sand); }
.rscroll__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.rscroll__title { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rscroll__ctrl { display: flex; align-items: center; gap: 10px; }
.rscroll__ctrl .textlink { margin-right: 8px; }
.rscroll__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 28vw, 340px); gap: clamp(16px, 2vw, 28px);
  padding: 14px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
}
.rcard { position: relative; display: flex; flex-direction: column; gap: 4px; }
.rcard__img { position: relative; margin-bottom: 26px; }
.rcard__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--arch); transition: transform .6s ease; }
.rcard:hover .rcard__img img { transform: translateY(-4px); }
.rcard__img .badge { position: absolute; left: 16px; bottom: -18px; box-shadow: 0 0 0 3px var(--paper); }
.rcard__name { margin: 0; font: 500 27px/1.1 var(--display); color: var(--green-deep); }
.rcard__name a::after { content: ""; position: absolute; inset: 0; }
.rcard__ar { color: var(--terra); font-size: 15px; }
.rcard__line { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .rscroll__ctrl .icon-btn { display: none; } .rscroll__track { grid-auto-columns: 78%; } }

/* =====================================================================
   DOOR 2 (V4 mechanic): a roof door set in an arched doorway
   ===================================================================== */
.section-door-2 { position: relative; padding-top: var(--sec-y); background: var(--paper); overflow: hidden; }
.door2__head { display: grid; justify-items: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); text-align: center; }
.door2__sub { font: italic 500 clamp(22px, 2.4vw, 30px)/1.2 var(--display); color: var(--green); }
.door2__arch {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(1100px, calc(100% - 2 * var(--gutter))); height: clamp(480px, 54vw, 740px); margin-inline: auto;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0; background: var(--green-deep); perspective: 1800px;
  outline: 1px solid rgba(198, 138, 46, .7); outline-offset: 10px;
}
.door2__view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.4s var(--ease); }
.door2__shade { position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(180deg, rgba(14, 51, 43, 0), rgba(14, 51, 43, .92)); }
.door2__arch .leaf { transition: transform 1.5s var(--ease); }
.door2__plaque { top: 22%; transition: opacity .4s; }
.door2__caption { position: absolute; inset: auto 0 clamp(36px, 5vw, 64px) 0; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: 0 20px; text-align: center; color: var(--paper); opacity: 0; transform: translateY(12px); transition: opacity 1s ease .5s, transform 1s ease .5s; }
.door2__caption p:last-child, .door2__caption .ofoq-richtext:last-child { max-width: 32em; color: rgba(244, 237, 223, .9); }
/* keep small caption text legible over bright lanterns in the photos */
.hero1__caption, .door1__caption, .door2__caption { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.section-door-2.is-open .door2__view { transform: scale(1); }
.section-door-2.is-open .leaf--l { transform: rotateY(86deg); }
.section-door-2.is-open .leaf--r { transform: rotateY(-86deg); }
.section-door-2.is-open .door2__plaque { opacity: 0; }
.section-door-2.is-open .door2__caption { opacity: 1; transform: none; }
/* The door toggles carry both labels; only the one matching the state shows. */
.door-toggle__close { display: none; }
.section-door-2.is-open .door-toggle__open,
.section-door-3.is-open .door-toggle__open { display: none; }
.section-door-2.is-open .door-toggle__close,
.section-door-3.is-open .door-toggle__close { display: inline; }

.door2__btnrow { display: flex; justify-content: center; padding: 28px var(--gutter) clamp(48px, 6vw, 72px); }
/* zellige dado along the foot of the wall (generated SVG tile) */
.door2__dado { height: 38px; background: url("../img/zellige-star-tile.svg") repeat-x left center / 38px 38px; border-block: 3px solid var(--green-deep); }
@media (max-width: 600px) {
  .door2__arch { height: 520px; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
  .door2__plaque { top: 18%; }
}

/* =====================================================================
   TERRACES (V3 staggered arches)
   ===================================================================== */
.section-terraces { padding-block: var(--sec-y); background: var(--paper); }
.terraces__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(24px, 3vw, 40px); align-items: start; }
.terraces__intro { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(0px, 4vw, 48px); }
.terrace-card { display: flex; flex-direction: column; gap: 10px; }
.terrace-card .arch { margin-bottom: 14px; }
.terrace-card .arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.terrace-card--low { margin-top: clamp(0px, 8vw, 96px); }
.terrace-card h3 { margin: 0; font: 500 30px/1.1 var(--display); }
.terrace-card h3 em { color: var(--terra); }
@media (max-width: 960px) {
  .terraces__grid { grid-template-columns: 1fr 1fr; }
  .terraces__intro { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 600px) { .terraces__grid { grid-template-columns: 1fr; } .terrace-card--low { margin-top: 0; } }

/* =====================================================================
   AMENITIES (V3 "What you'll find")
   ===================================================================== */
.section-amenities { padding-block: var(--sec-y); background: var(--sand); }
.amen__head { display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); text-align: center; }
.amen__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amen { padding: clamp(28px, 3vw, 40px); background: var(--paper); transition: background-color .3s; }
.amen:hover { background: var(--paper-2); }
.amen__mark { width: 84px; margin-bottom: 18px; transition: transform .45s var(--ease); }
.amen:hover .amen__mark { transform: translateY(-3px); }
.amen h3 { margin: 0 0 6px; font: 500 25px/1.2 var(--display); }
.amen p, .amen .ofoq-richtext { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .amen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .amen__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   NEIGHBOURHOOD (street signs on green, Kasbah skyline)
   ===================================================================== */
.section-neighbourhood { position: relative; padding-block: var(--sec-y) calc(var(--sec-y) + 60px); background: var(--green) var(--dots-gold); background-size: 34px 34px; color: var(--paper); overflow: hidden; }
.kasbah__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.kasbah__text { display: flex; flex-direction: column; gap: 18px; }
.kasbah__text > p:last-child, .kasbah__text > .ofoq-richtext:last-child { max-width: 30em; color: var(--pale); }
.signs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sign { display: flex; align-items: center; gap: 14px; padding: 13px 14px 13px 18px; background: var(--paper); color: var(--green); border-radius: 2px; outline: 1.5px solid var(--green); outline-offset: -5px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sign:nth-child(2) { margin-left: clamp(0px, 2vw, 24px); }
.sign:nth-child(3) { margin-left: clamp(0px, 1vw, 10px); }
.sign__en { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sign__ar { margin-left: auto; font-size: 17px; }
.sign__arrow { display: grid; place-items: center; width: 30px; height: 30px; flex: none; background: var(--green); color: var(--paper); border-radius: 50%; }
.sign__arrow svg { width: 16px; height: 16px; }
.kasbah__skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 11vw, 160px); background: url("../img/kasbah-skyline.svg") no-repeat center bottom / cover; opacity: .9; }
@media (max-width: 860px) { .kasbah__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   DOOR 3 (new): the riad's antique painted cedar doors, opened by click
   Both leaves show one editable photograph (home.door3.leaf), the right one
   mirrored; assets/img/door3-cedar-leaf.webp stands in until it is imported.
   ===================================================================== */
.section-door-3 { position: relative; padding-block: var(--sec-y) 0; background: var(--paper-2) var(--dots-green); background-size: 30px 30px; overflow: hidden; }
.door3__head { display: grid; justify-items: center; gap: 10px; margin-bottom: clamp(28px, 3.6vw, 44px); text-align: center; }
.door3__sub { font: italic 500 clamp(22px, 2.4vw, 30px)/1.2 var(--display); color: var(--green); }
.door3__doorway { --door-w: min(1000px, calc(100vw - 2 * var(--gutter)), max(360px, calc((100svh - 240px) * 1.1125))); width: calc(var(--door-w) + 36px); margin-inline: auto; }
/* zellige lintel above the frame */
.door3__lintel { height: 30px; margin-inline: -18px; background: url("../img/zellige-star-tile.svg") repeat-x center / 30px 30px; border-block: 3px solid #3a2416; }
/* cedar frame with brass studs down both jambs */
.door3__frame {
  position: relative; padding: 18px 18px 0;
  background: linear-gradient(90deg, #2e1c11, #5a3a22 12%, #3d2716 50%, #5a3a22 88%, #2e1c11);
  box-shadow: 0 30px 60px -30px rgba(36, 31, 26, .6);
}
.door3__frame::before, .door3__frame::after {
  content: ""; position: absolute; top: 10px; bottom: 0; width: 18px;
  background: radial-gradient(circle at 50% 50%, #F0D49A 0 1.5px, #C68A2E 2px 4px, transparent 4.5px) center top / 18px 34px repeat-y;
}
.door3__frame::before { left: 0; } .door3__frame::after { right: 0; }
.door3__opening { position: relative; width: var(--door-w); aspect-ratio: 1780 / 1600; overflow: hidden; background: var(--green-deep); perspective: 2200px; cursor: pointer; }
.door3__view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease); }
.door3__shade { position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, rgba(14, 51, 43, 0), rgba(14, 51, 43, .9)); }
.door3__caption {
  position: absolute; inset: auto 0 clamp(24px, 5%, 56px) 0; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 0 20px; text-align: center; color: var(--paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(14px); transition: opacity 1s ease .7s, transform 1s ease .7s;
}
.door3__caption .display { font-size: clamp(30px, 4.4vw, 60px); }
.door3__caption p:not(.eyebrow), .door3__caption .ofoq-richtext { max-width: 32em; color: rgba(244, 237, 223, .92); }
.door3__caption .btn { margin-top: 6px; text-shadow: none; }
.door3__leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transition: transform 1.8s var(--ease); box-shadow: inset 0 0 40px rgba(0, 0, 0, .35); }
.door3__leaf img { width: 100%; height: 100%; object-fit: cover; }
.door3__leaf::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(20, 10, 4, .45); pointer-events: none; }
.door3__leaf--l { left: 0; transform-origin: 0 50%; }
.door3__leaf--r { right: 0; transform-origin: 100% 50%; }
.door3__leaf--r img { transform: scaleX(-1); }
.door3__leaf--l::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; z-index: 1; background: rgba(0, 0, 0, .55); }
/* brass ring knockers on the meeting stiles */
.door3__knocker { position: absolute; top: 47%; z-index: 1; width: clamp(18px, 3vw, 34px); aspect-ratio: 1; border: 3px solid #D9A84E; border-radius: 50%; box-shadow: 0 3px 6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 236, 190, .5); }
.door3__leaf--l .door3__knocker { right: 7%; }
.door3__leaf--r .door3__knocker { left: 7%; }
.section-door-3.is-open .door3__leaf--l { transform: rotateY(-84deg); }
.section-door-3.is-open .door3__leaf--r { transform: rotateY(84deg); }
.section-door-3.is-open .door3__view { transform: scale(1); }
.section-door-3.is-open .door3__caption { opacity: 1; transform: none; }
.section-door-3.is-open .door3__opening { cursor: default; }
.section-door-3:not(.is-open) .door3__opening:hover .door3__leaf--l { transform: rotateY(-6deg); }
.section-door-3:not(.is-open) .door3__opening:hover .door3__leaf--r { transform: rotateY(6deg); }
.door3__btnrow { display: flex; justify-content: center; padding: 28px var(--gutter) var(--sec-y); }
@media (max-width: 600px) {
  .door3__doorway { width: calc(var(--door-w) + 20px); }
  .door3__frame { padding: 10px 10px 0; }
  .door3__frame::before, .door3__frame::after { width: 10px; background-size: 10px 24px; }
  .door3__lintel { margin-inline: -10px; }
  .door3__caption { gap: 6px; }
  /* Also hide the editable block itself: with only its inner paragraph hidden an
     empty wrapper would remain a flex item and keep the caption's 6px gap. */
  .door3__caption p:not(.eyebrow), .door3__caption .ofoq-richtext { display: none; }
  .door3__caption .btn { min-height: 40px; padding: 0 16px; font-size: 11px; }
}

/* =====================================================================
   ENQUIRE (V4 split copy + V3 arched doorplate form)
   ===================================================================== */
.section-enquire { padding-block: var(--sec-y) clamp(48px, 6vw, 72px); background: var(--paper); }
.enquire__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(32px, 6vw, 88px); align-items: start; }
.enquire__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-top: clamp(0px, 3vw, 32px); }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.ccard { display: grid; gap: 2px; padding: 18px 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; transition: border-color .25s, transform .25s; }
.ccard:hover { border-color: var(--gold); transform: translateY(-2px); }
.ccard__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); }
.ccard__value { font: 500 24px/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; }

.doorplate {
  position: relative; display: grid; gap: 16px; min-width: 0;
  padding: clamp(56px, 6vw, 72px) clamp(20px, 3.4vw, 44px) clamp(28px, 3vw, 40px);
  background: var(--green); color: var(--paper);
  border-radius: 50% 50% 4px 4px / 72px 72px 4px 4px; outline: 1px solid var(--gold); outline-offset: -9px;
  box-shadow: 0 30px 60px -30px rgba(14, 51, 43, .55);
}
.doorplate::before, .doorplate::after { content: ""; position: absolute; bottom: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.doorplate::before { left: 18px; } .doorplate::after { right: 18px; }
.doorplate__title { text-align: center; color: var(--gold-l); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.doorplate__big { margin-top: -6px; text-align: center; font: 500 clamp(26px, 2.6vw, 32px)/1.15 var(--display); }
.doorplate__note { margin: -8px 0 8px; text-align: center; font-size: 14px; color: var(--pale); }
.doorplate__row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doorplate label { display: grid; gap: 6px; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pale); }
.doorplate input, .doorplate select, .doorplate textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 12px;
  font: 400 16px var(--body); letter-spacing: 0; text-transform: none; color: var(--paper);
  background: var(--green-deep); border: 1px solid rgba(231, 188, 99, .5); border-radius: 2px;
  color-scheme: dark; accent-color: var(--gold); caret-color: var(--gold-l);
}
.doorplate textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
.doorplate input::placeholder, .doorplate textarea::placeholder { color: #9FB0A6; }
.doorplate input:focus, .doorplate select:focus, .doorplate textarea:focus { outline: 2px solid var(--gold-l); outline-offset: 1px; border-color: var(--gold-l); }
.doorplate select option { color: var(--ink); background: var(--paper); }
.doorplate__error { min-height: 1.2em; margin-bottom: -6px; color: #F7C2A8; font-size: 14px; }
.doorplate__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 8px; }
.doorplate__hint { flex: 1 1 200px; font-size: 13px; color: var(--pale); }
@media (max-width: 900px) { .enquire__grid { grid-template-columns: 1fr; } .enquire__text { padding-top: 0; } }
@media (max-width: 520px) { .doorplate__row { grid-template-columns: 1fr; } .doorplate { border-radius: 50% 50% 4px 4px / 48px 48px 4px 4px; } }

/* =====================================================================
   LOCATION (V3 framed map)
   ===================================================================== */
.section-location { padding-block: 0 var(--sec-y); background: var(--paper); }
.location-map { padding: 10px; background: var(--green); border: 1px solid var(--gold); border-radius: 4px; }
.location-map__header { display: grid; justify-items: center; gap: 6px; padding: 24px 20px; text-align: center; }
.location-map__label { color: var(--gold-l); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.location-map__header h3, .location-map__title { margin: 0; color: var(--paper); font: 500 clamp(28px, 4vw, 40px)/1.1 var(--display); }
.location-map__frame { padding: 6px; background: var(--sand); border: 1px solid rgba(231, 188, 99, .5); }
.location-map__frame iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; }

/* =====================================================================
   FOOTER (V4 columns, chalk logo, zellige strip)
   ===================================================================== */
.section-footer { background: var(--green-deep); color: var(--paper); }
.footer__strip { height: 14px; background: url("../img/zellige-border-strip.svg") repeat-x left center / 40px 14px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 64px); padding-block: clamp(56px, 7vw, 88px) 44px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { width: 210px; }
.footer__q { max-width: 22em; font: italic 500 19px/1.4 var(--display); color: var(--pale); }
.footer__col h2 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li a { display: inline-flex; align-items: center; min-height: 38px; color: var(--paper); }
.footer__col li a:hover { color: var(--gold-l); }
.footer__col address { font-style: normal; line-height: 1.7; color: var(--pale); }
.footer__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--line-light); font-size: 12px; color: #BFC9BF; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* =====================================================================
   MOBILE DOCK (V4)
   ===================================================================== */
.section-dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .section-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 51, 43, .97); border-top: 1px solid rgba(231, 188, 99, .3);
  }
  .section-dock .btn { min-height: 46px; padding: 0 12px; font-size: 12px; }
}

/* =====================================================================
   REVEAL (V3)
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :where(.ofoq-site, .ofoq-site *, .ofoq-site *::before, .ofoq-site *::after) { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

