/* =============================================================
   17 & 17 Real Estate Holdings
   Editorial rental site. Playfair Display + DM Sans.
   ============================================================= */

:root {
  /* palette */
  --ivory: #f6f1e7;
  --ivory-2: #ece4d3;
  --paper: #ffffff;
  --ink: #101018;
  --ink-2: #2c2e37;
  --muted: #6a6b73;
  --line: #d9d1bd;
  --navy: #0e1a3a;
  --navy-2: #14275a;
  --gold: #c39749;
  --gold-2: #dcb26a;
  --gold-3: #8b6420;
  --terra: #b57d54;
  --terra-2: #a06a44;
  --success: #2f6b4f;
  --error: #a43a2f;

  /* radii — sharp defaults, rounding reserved for images, tags, and polished bars */
  --radius: 0;
  --radius-img: 6px;
  --radius-tag: 999px;
  --radius-bar: 14px;

  /* type */
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --container: 1320px;
  --pad-x: clamp(18px, 4vw, 56px);
  --sect-y: clamp(64px, 9vw, 128px);
  --header-h: 92px;

  /* stacking — header sits above the full-screen menu so the close button stays reachable */
  --z-menu-overlay: 55;
  --z-header: 60;
  --z-dropdown: 80;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 430px) {
  :root { --header-h: 78px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Use `clip` (not `hidden`) so `position: sticky` on the header keeps working.
   `overflow: hidden` creates a scroll container that breaks sticky positioning.
   IMPORTANT: only apply this to `html` — setting overflow on `body` makes body a
   scroll container in Chromium (even with `clip`), which also kills sticky. */
html { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Custom scrollbar ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-3) var(--ivory-2);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  background: var(--ivory-2);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-3) 100%);
  border: 3px solid var(--ivory-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
}
::-webkit-scrollbar-corner { background: var(--ivory-2); }

/* Dark scrollbar for the menu overlay */
.menu-overlay {
  scrollbar-color: var(--gold-2) rgba(240,230,208,0.08);
}
.menu-overlay::-webkit-scrollbar-track {
  background: rgba(240,230,208,0.06);
}
.menu-overlay::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  border-color: var(--navy);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

/* Decorative elements: not selectable or draggable */
img,
.brand-logo,
.footer-logo img,
.editorial-media img,
.hero-frame img,
.prop-hero-frame img,
.prop-row-media img,
.feat-card,
.feat-card img,
.suite-card img,
.masonry-item img,
.split-media,
.icon,
.eyebrow,
.tag,
.badge,
.masonry-tag,
.chip,
.promo-text,
.feat-body .num,
.amenity::before,
.hero-meta dt,
.hero-meta dd,
.editorial-facts dt,
.prop-facts dt,
.prop-row-facts dt,
.menu-links a small {
  user-select: none;
  -webkit-user-select: none;
}

img,
.brand-logo,
.footer-logo img,
.editorial-media img,
.hero-frame img,
.prop-hero-frame img,
.prop-row-media img,
.feat-card,
.feat-card img,
.suite-card img,
.masonry-item img,
.split-media,
.icon {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Keep useful content selectable */
input, textarea, select, button, a, label, p, li, h1, h2, h3, h4, .lede, .section-sub, .prose {
  user-select: text;
  -webkit-user-select: text;
}

.feat-card,
.feat-card * {
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 650; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 600; }
h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 0.6em; }
p { margin: 0 0 1em; color: var(--ink-2); }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: 980px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 300;
}
.skip-link:focus { left: 8px; }

/* ---------- Icon utility (CSS mask, colored by currentColor) ---------- */
.icon {
  display: inline-block;
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
          mask: var(--icon-url) center / contain no-repeat;
  flex: none;
  vertical-align: middle;
}
.icon-sm { --icon-size: 16px; }
.icon-md { --icon-size: 20px; }
.icon-lg { --icon-size: 24px; }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--terra);
  color: #fff;
  padding: 10px var(--pad-x);
  border-radius: 0 0 var(--radius-bar) var(--radius-bar);
}
.promo-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  max-width: var(--container);
  margin: 0 auto;
}
.promo-text { font-weight: 700; }
.promo-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: var(--ink); color: #fff;
  font-weight: 700; letter-spacing: 0.12em;
  border-radius: var(--radius-tag);
  transition: background 220ms var(--ease);
  flex: none;
}
.promo-cta:hover { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .promo-bar { padding: 8px 16px; border-radius: 0 0 12px 12px; }
  .promo-inner { padding: 12px 0; font-size: 0.66rem; letter-spacing: 0.12em; gap: 12px; }
  .promo-text { max-width: 58%; line-height: 1.35; letter-spacing: 0.1em; }
  .promo-cta { padding: 9px 14px; font-size: 0.64rem; letter-spacing: 0.1em; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  /* Never hide on scroll. No transform-based hide behavior anywhere. */
  transition: background 400ms var(--ease), color 400ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
/* When menu overlay is open, header sits flush with the dark overlay.
   We also promote the header from `sticky` to `fixed` while open, because the
   overlay changes body scroll behavior and sticky can drift out of the viewport. */
body.menu-open .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
}
body.menu-open .site-header,
body.menu-open .site-header.is-scrolled {
  background: var(--navy);
  border-bottom-color: rgba(240,230,208,0.12);
  box-shadow: none;
}
body.menu-open .site-header .brand-text strong { color: #f5ecd6; }
body.menu-open .site-header .brand-text em { color: rgba(240,230,208,0.75); }
/* Hide the noisy header bits so they don't overlap the menu items */
body.menu-open .site-header .desktop-nav,
body.menu-open .site-header .header-phone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}
body.menu-open .site-header .menu-btn {
  border-color: rgba(240,230,208,0.6);
  color: #f5ecd6;
  background: transparent;
}
body.menu-open .site-header .menu-btn:hover {
  background: rgba(240,230,208,0.1);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(20, 20, 30, 0.04);
}
.header-inner {
  display: flex; align-items: center;
  gap: 20px; min-height: var(--header-h);
  padding: 0 var(--pad-x); max-width: var(--container); margin: 0 auto;
}

.desktop-nav { margin: 0 auto; }
.header-actions { margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-logo {
  height: 58px; width: auto; display: block;
  object-fit: contain;
}
.brand-text { display: none; }
@media (min-width: 480px) { .brand-text { display: inline-flex; flex-direction: column; line-height: 1; } }
.brand-text strong { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.desktop-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.desktop-nav a {
  position: relative; font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
  padding: 6px 0;
}
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.desktop-nav a:hover { color: var(--gold-3); }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.desktop-nav a.is-active { color: var(--navy); }

.header-actions { display: inline-flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone {
  display: none; align-items: center; gap: 8px;
  font-size: 0.86rem; color: var(--ink-2); font-weight: 600; white-space: nowrap;
}
.header-phone .icon { color: var(--gold-3); }
@media (min-width: 768px) { .header-phone { display: inline-flex; } }

/* Hamburger */
.menu-btn {
  --sz: 52px;
  width: var(--sz); height: var(--sz);
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 260ms var(--ease-out), color 260ms var(--ease-out);
}
.menu-btn:hover { background: var(--ink); color: var(--ivory); }
.menu-btn-lines { position: relative; width: 22px; height: 14px; }
.menu-btn-lines span {
  position: absolute; left: 0; right: 0; height: 1.8px; background: currentColor;
  transition: transform 380ms var(--ease-out), opacity 220ms var(--ease-out), top 380ms var(--ease-out), width 380ms var(--ease-out);
}
.menu-btn-lines span:nth-child(1) { top: 2px; }
.menu-btn-lines span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 14px; }
.menu-btn-lines span:nth-child(3) { bottom: 2px; }
.menu-btn:hover .menu-btn-lines span:nth-child(2) { width: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--ivory); }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(1) { top: 50%; transform: translate(0, -50%) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(2) { opacity: 0; width: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(3) { top: 50%; bottom: auto; transform: translate(0, -50%) rotate(-45deg); width: 22px; }

@media (max-width: 430px) {
  .menu-btn { --sz: 46px; }
  .menu-btn-lines { width: 20px; height: 12px; }
  .brand-logo { height: 48px; }
}

/* ---------- Full screen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: var(--z-menu-overlay);
  background: var(--navy); color: #f0e6d0;
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: var(--header-h);
  transition: opacity 320ms var(--ease-out), transform 380ms var(--ease-out), visibility 0s linear 380ms;
}
.menu-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 0s;
}
.menu-overlay-grid {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: clamp(32px, 5vw, 56px) var(--pad-x) clamp(40px, 6vw, 72px);
  gap: clamp(28px, 5vw, 48px);
}

.menu-links { list-style: none; padding: 0; margin: 0; }
.menu-links li { border-top: 1px solid rgba(240, 230, 208, 0.12); }
.menu-links li:last-child { border-bottom: 1px solid rgba(240, 230, 208, 0.12); }
.menu-links a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px;
  padding: 22px 6px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.01em; line-height: 1.15;
  color: #f5ecd6;
  position: relative;
  transform: translateY(20px); opacity: 0;
  transition: transform 620ms var(--ease-out), opacity 620ms var(--ease-out), color 220ms var(--ease);
}
.menu-links a .menu-link-label { display: block; }
.menu-links a small {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(240,230,208,0.55); font-weight: 600;
  text-align: right;
}
.menu-overlay.is-open .menu-links a { transform: translateY(0); opacity: 1; }
.menu-overlay.is-open .menu-links li:nth-child(1) a { transition-delay: 140ms; }
.menu-overlay.is-open .menu-links li:nth-child(2) a { transition-delay: 200ms; }
.menu-overlay.is-open .menu-links li:nth-child(3) a { transition-delay: 260ms; }
.menu-overlay.is-open .menu-links li:nth-child(4) a { transition-delay: 320ms; }
.menu-overlay.is-open .menu-links li:nth-child(5) a { transition-delay: 380ms; }
.menu-overlay.is-open .menu-links li:nth-child(6) a { transition-delay: 440ms; }
.menu-links a::before {
  content: attr(data-num);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--gold);
  align-self: center;
  min-width: 1.6em;
}
.menu-links a:hover { color: var(--gold-2); }

@media (max-width: 900px) {
  .menu-overlay-grid {
    grid-template-columns: 1fr;
    padding: 40px var(--pad-x) 40px;
    gap: 28px;
  }
  .menu-links a {
    grid-template-columns: auto 1fr;
    gap: 4px 18px;
    padding: 20px 4px;
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    line-height: 1.12;
  }
  .menu-links a small {
    text-align: left;
    grid-column: 2;
  }
  .menu-aside {
    border-left: 0;
    padding: 28px 0 0;
    border-top: 1px solid rgba(240,230,208,0.12);
  }
}

@media (max-width: 560px) {
  .menu-overlay-grid { padding: 24px 20px 40px; gap: 24px; }
  .menu-links a { padding: 18px 2px; font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .menu-links a::before { font-size: 0.6rem; min-width: 1.4em; }
  .menu-links a small { font-size: 0.6rem; letter-spacing: 0.2em; }
}

@media (max-width: 380px) {
  .menu-overlay-grid { padding: 20px 16px 36px; gap: 20px; }
  .menu-links a { padding: 16px 2px; gap: 2px 12px; }
  .menu-aside { padding-top: 24px; }
}

.menu-aside {
  align-self: end;
  border-left: 1px solid rgba(240, 230, 208, 0.12);
  padding: 8px 0 8px 44px;
  color: rgba(240,230,208,0.75);
}
.menu-aside h4 { color: rgba(240,230,208,0.55); margin-bottom: 12px; }
.menu-aside p { color: rgba(240,230,208,0.85); margin-bottom: 20px; }
.menu-aside a { color: var(--gold-2); font-weight: 600; }
.menu-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 16px 28px;
  background: #f5ecd6;
  color: var(--navy);
  font-weight: 700; letter-spacing: 0.06em;
  border-radius: 0;
  border: 1.5px solid #f5ecd6;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.menu-cta:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
  transform: translateY(-1px);
}
.menu-cta .icon { transition: transform 220ms var(--ease); }
.menu-cta:hover .icon { transform: translateX(3px); }

/* Lock background scroll while the full-screen menu is open.
   NOTE: We intentionally do NOT set `overflow: hidden` on body/html here —
   that would collapse the scroll container and kill `position: sticky` on
   `.site-header`, hiding the close (X) button behind the overlay.
   The overlay is `position: fixed; inset: 0` so it visually covers the page,
   and `overscroll-behavior: contain` on the overlay prevents scroll chaining. */
body.menu-open { touch-action: none; }

@media (max-width: 430px) {
  .menu-cta { width: 100%; justify-content: center; padding: 15px 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px;
  font-family: var(--sans); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn .icon { transition: transform 220ms var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

@media (max-width: 430px) {
  .btn { padding: 15px 24px; font-size: 0.76rem; letter-spacing: 0.07em; }
}

/* ---------- Sections ---------- */
.section { padding: var(--sect-y) 0; }
.section-tight { padding: calc(var(--sect-y) * 0.65) 0; }
.section-ivory { background: var(--ivory); }
.section-cream { background: var(--ivory-2); }
.section-dark { background: var(--navy); color: #d9dae0; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  color: var(--gold-3); margin: 0 0 18px; font-weight: 700;
  font-family: var(--sans);
}
.section-dark .eyebrow { color: var(--gold-2); }

.section-title { margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 62ch; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 48px; flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1.5px solid var(--ink);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.link-arrow:hover { color: var(--gold-3); border-color: var(--gold-3); }
.section-dark .link-arrow { color: #fff; border-color: rgba(255,255,255,0.6); }
.section-dark .link-arrow:hover { color: var(--gold-2); border-color: var(--gold-2); }

.lede {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.4;
  color: var(--ink-2); max-width: 62ch;
}
.prose { max-width: 62ch; }

.two-col {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 0 clamp(56px, 8vw, 96px); }
.hero-frame {
  position: relative; overflow: hidden;
  min-height: clamp(520px, 80vh, 820px);
  background: #111;
  max-width: var(--container); margin: 0 auto;
}
.hero-frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-frame::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,17,32,0) 30%, rgba(11,17,32,0.6) 100%),
    linear-gradient(90deg, rgba(11,17,32,0.4) 0%, rgba(11,17,32,0) 45%);
}
.hero-inner {
  position: relative; z-index: 2; color: #fff;
  padding: clamp(64px, 10vw, 112px) clamp(24px, 5vw, 64px) clamp(40px, 6vw, 72px);
  max-width: 1180px;
}
.hero-inner h1 { color: #fff; max-width: 16ch; font-weight: 700; }
.hero-inner .lede { color: rgba(255,255,255,0.88); max-width: 50ch; }
.hero-inner .eyebrow { color: var(--gold-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-meta {
  position: absolute; z-index: 2; right: clamp(24px, 4vw, 56px); bottom: clamp(28px, 4vw, 48px);
  display: none; grid-template-columns: auto auto auto; gap: 44px;
  color: rgba(255,255,255,0.9);
}
@media (min-width: 900px) { .hero-meta { display: grid; } }
.hero-meta dt { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.hero-meta dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }

/* ---------- Page header ---------- */
.page-header { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background: var(--ivory); }
.page-header h1 { margin-bottom: 16px; }

.page-header-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: clamp(360px, 60vh, 540px);
}
@media (max-width: 900px) { .page-header-split { grid-template-columns: 1fr; min-height: auto; } }
.split-copy {
  padding: clamp(56px, 8vw, 120px) clamp(24px, 5vw, 64px);
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center;
}
.split-media {
  background-size: cover; background-position: center;
  min-height: 260px; position: relative;
}
.split-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,58,0) 40%, rgba(14,26,58,0.4) 100%);
}

/* ---------- Featured (home) ---------- */
.featured-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.feat-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; background: #111;
  color: #fff;
  border-radius: var(--radius-img);
  user-select: none;
  -webkit-user-select: none;
}
.feat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
}
.feat-body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.feat-body .num { font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.14em; color: var(--gold-2); font-weight: 600; }
.feat-body h3 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 6px 0 6px; }
.feat-body p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9rem; }
.feat-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.feat-meta .go {
  width: 40px; height: 40px; border-radius: var(--radius-tag);
  border: 1px solid rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.06);
  transition: transform 380ms var(--ease-out), background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.feat-meta .go .icon {
  transition: transform 380ms var(--ease-out);
}
.feat-card:hover .feat-meta .go,
.feat-card:focus-visible .feat-meta .go {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: rotate(45deg) scale(1.05);
}
.feat-card:hover .feat-meta .go .icon,
.feat-card:focus-visible .feat-meta .go .icon {
  transform: rotate(-45deg);
}

/* Entry animation for feature cards (triggered by IntersectionObserver -> .is-in) */
.feat-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.feat-card.is-in {
  opacity: 1;
  transform: translateY(0);
}
.feat-card.is-in .go {
  animation: goPulse 1600ms var(--ease-out) 400ms 1;
}
@keyframes goPulse {
  0% { box-shadow: 0 0 0 0 rgba(220,178,106,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(220,178,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,178,106,0); }
}
@media (prefers-reduced-motion: reduce) {
  .feat-card { opacity: 1; transform: none; }
}

.feat-card:nth-child(1) { grid-column: span 5; }
.feat-card:nth-child(2) { grid-column: span 4; margin-top: 60px; }
.feat-card:nth-child(3) { grid-column: span 3; margin-top: 120px; }
@media (max-width: 1024px) {
  .feat-card:nth-child(1) { grid-column: span 12; }
  .feat-card:nth-child(2), .feat-card:nth-child(3) { grid-column: span 6; margin-top: 0; }
}
@media (max-width: 640px) {
  .feat-card:nth-child(2), .feat-card:nth-child(3) { grid-column: span 12; }
}

/* ---------- Editorial pair ---------- */
.editorial {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; gap: 24px; } }
.editorial-media {
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  border-radius: var(--radius-img);
}
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-media .tag {
  position: absolute; left: 16px; top: 16px;
  background: var(--ivory); color: var(--navy);
  padding: 8px 14px; border-radius: var(--radius-tag);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.editorial-copy h2 { max-width: 14ch; }
.editorial-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.editorial-facts dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.editorial-facts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--navy); font-weight: 600; }

/* ---------- Suite grid ---------- */
.suite-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 900px) { .suite-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .suite-grid { grid-template-columns: 1fr; } }

.suite-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: #111; color: #fff;
  border-radius: var(--radius-img);
}
.suite-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.suite-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
}
.suite-body { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.suite-body h3 { color: #fff; font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; font-size: 1.3rem; margin: 0 0 4px; }
.suite-body p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.suite-go {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: var(--radius-tag);
  background: rgba(255,255,255,0.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.35);
  transition: transform 380ms var(--ease-out), background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.suite-go .icon { transition: transform 380ms var(--ease-out); }
.suite-card:hover .suite-go,
.suite-card:focus-visible .suite-go {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: rotate(45deg) scale(1.05);
}
.suite-card:hover .suite-go .icon,
.suite-card:focus-visible .suite-go .icon {
  transform: rotate(-45deg);
}

/* Entry animation for suite cards (mirrors .feat-card) */
.suite-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.suite-card.is-in {
  opacity: 1;
  transform: translateY(0);
}
.suite-card.is-in .suite-go {
  animation: goPulse 1600ms var(--ease-out) 400ms 1;
}
@media (prefers-reduced-motion: reduce) {
  .suite-card { opacity: 1; transform: none; }
}

/* ---------- Amenity list ---------- */
.amenities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px clamp(24px, 3vw, 40px);
}
@media (max-width: 900px) { .amenities-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .amenities-grid { grid-template-columns: 1fr; } }
.amenity { padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.amenity::before {
  content: attr(data-num); position: absolute; top: 22px; right: 0;
  font-family: var(--sans); font-size: 0.7rem; color: var(--gold-3);
  letter-spacing: 0.14em; font-weight: 700;
}
.amenity h3 { margin: 0 0 6px; color: var(--navy); font-weight: 700; }
.amenity p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Interiors gallery ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
  padding: 4px 0;
}
.filter {
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-2);
  padding: 11px 20px; font: inherit; font-size: 0.82rem; font-weight: 600;
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.filter:hover { border-color: var(--ink); background: var(--ivory); }
.filter:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,26,58,0.18); }
.filter.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

@media (max-width: 430px) {
  .gallery-filters { gap: 8px; margin-bottom: 28px; }
  .filter { padding: 10px 16px; font-size: 0.78rem; }
}

.masonry { columns: 3; column-gap: 22px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 520px) { .masonry { columns: 1; } }
.masonry-item {
  break-inside: avoid; margin: 0 0 22px;
  position: relative; overflow: hidden; background: #111;
  border-radius: var(--radius-img);
}
.masonry-item img { width: 100%; height: auto; }
.masonry-item.is-hidden { display: none; }
.masonry-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px; color: #fff; font-size: 0.86rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.masonry-item:hover figcaption { opacity: 1; }
.masonry-tag {
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 4px 9px; background: rgba(255,255,255,0.18); border-radius: var(--radius-tag); color: #fff;
}

/* ---------- Property detail ---------- */
.prop-hero { padding: clamp(56px, 8vw, 96px) 0 0; }
.prop-hero-frame {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 60vh, 620px); background: #111;
  max-width: var(--container); margin: 0 auto;
}
.prop-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-hero-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,0) 40%, rgba(11,17,32,0.7) 100%);
}
.prop-hero-body {
  position: absolute; z-index: 2;
  left: clamp(24px, 5vw, 56px); right: clamp(24px, 5vw, 56px);
  bottom: clamp(28px, 4vw, 48px);
  color: #fff;
}
.prop-hero-body h1 { color: #fff; font-weight: 700; }
.prop-hero-body .eyebrow { color: var(--gold-2); }
.prop-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 780px;
}
@media (max-width: 700px) { .prop-facts { grid-template-columns: 1fr 1fr; } }
.prop-facts dt { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin: 0 0 4px; }
.prop-facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  background-color: var(--gold);
  -webkit-mask: url('/assets/icons/check.svg') center / 14px no-repeat;
          mask: url('/assets/icons/check.svg') center / 14px no-repeat;
}

.plans-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.plans-table th, .plans-table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.plans-table th { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; }
.plans-table tr:last-child td { border-bottom: 0; }
.plans-table tbody tr { transition: background 220ms var(--ease); }
.plans-table tbody tr:hover { background: var(--ivory-2); }
@media (max-width: 640px) {
  .plans-table th:nth-child(3), .plans-table td:nth-child(3) { display: none; }
  .plans-table { font-size: 0.88rem; }
}

.amenity-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-tag);
  font-size: 0.82rem; color: var(--ink-2); background: var(--paper);
  font-weight: 500;
}

/* ---------- Properties list ---------- */
.prop-list { display: grid; gap: clamp(56px, 8vw, 96px); }
.prop-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.prop-row:nth-child(even) { direction: rtl; }
.prop-row:nth-child(even) > * { direction: ltr; }
@media (max-width: 900px) {
  .prop-row, .prop-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 20px; }
}
.prop-row-media {
  position: relative; overflow: hidden; aspect-ratio: 5/4;
  border-radius: var(--radius-img);
}
.prop-row-media img { width: 100%; height: 100%; object-fit: cover; }
.prop-row-media .badge {
  position: absolute; left: 18px; top: 18px;
  padding: 8px 14px; background: var(--ivory); color: var(--navy);
  border-radius: var(--radius-tag);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.prop-row-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 20px 40px;
  margin: 22px 0 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 480px) { .prop-row-facts { grid-template-columns: 1fr 1fr; gap: 16px; } }
.prop-row-facts dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prop-row-facts dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }

/* ---------- Forms ---------- */
.form-shell {
  background: var(--terra); color: #fff;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 56px);
  position: relative;
}
.form-shell h2 { color: #fff; text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.form-shell .form-intro { color: rgba(255,255,255,0.9); text-align: center; max-width: 52ch; margin: 0 auto 40px; }

.form { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row.two { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 22px 16px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid transparent;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }

.field label {
  position: absolute; left: 22px; top: 20px;
  color: #7d7d7d; font-size: 0.95rem; pointer-events: none;
  transition: transform 220ms var(--ease-out), font-size 220ms var(--ease-out), color 220ms var(--ease-out), top 220ms var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.field input:not(:placeholder-shown) + label,
.field input:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field.filled > label {
  top: 6px; font-size: 0.62rem; color: var(--navy); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.field-hint { color: rgba(255,255,255,0.75); font-size: 0.8rem; margin-top: 6px; }
.field-error {
  color: #fff8f2; background: rgba(0,0,0,0.22); padding: 8px 14px;
  font-size: 0.8rem; margin: 8px 0 0;
}

/* Custom dropdown */
.dd { position: relative; }
.dd-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px; padding: 22px 20px 14px;
  background: #fff; color: var(--ink);
  border: 1.5px solid rgba(20, 25, 45, 0.14); text-align: left; cursor: pointer;
  font: inherit; line-height: 1.3;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dd-toggle:hover { border-color: rgba(20, 25, 45, 0.35); }
.dd-toggle:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.dd[data-open="true"] .dd-toggle { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.dd-toggle .dd-value { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.dd-toggle .dd-value.is-placeholder { color: #7d7d7d; }
.dd-toggle .icon { color: var(--navy); flex: none; transition: transform 320ms var(--ease-out); }
.dd[data-open="true"] .dd-toggle .icon { transform: rotate(180deg); }
.dd > .dd-label {
  position: absolute; left: 20px; top: 8px;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); font-weight: 700;
  pointer-events: none;
}
.dd-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: var(--z-dropdown);
  background: #fff; color: var(--ink);
  list-style: none; margin: 0; padding: 6px 0;
  min-width: 100%;
  max-height: min(320px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid rgba(20, 25, 45, 0.12);
  box-shadow: 0 16px 40px rgba(20, 25, 45, 0.22);
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.dd[data-open="true"] .dd-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible;
  transition: opacity 180ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 0s;
}
.dd-option {
  display: block; width: 100%; text-align: left;
  padding: 13px 20px; background: transparent; border: 0;
  font: inherit; font-size: 0.94rem; line-height: 1.4; color: var(--ink);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.dd-option:hover, .dd-option.is-active, .dd-option[aria-selected="true"] { background: var(--ivory); color: var(--navy); }
.dd-option[data-placeholder] { color: #9c9c9c; }

/* Custom month picker */
.dp { position: relative; }
.dp-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px; padding: 22px 20px 14px;
  background: #fff; color: var(--ink);
  border: 1.5px solid rgba(20, 25, 45, 0.14); text-align: left; cursor: pointer;
  font: inherit; line-height: 1.3;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dp-toggle:hover { border-color: rgba(20, 25, 45, 0.35); }
.dp-toggle:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.dp[data-open="true"] .dp-toggle { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.dp-toggle .dp-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.dp-toggle .dp-value.is-placeholder { color: #7d7d7d; }
.dp-toggle .icon { color: var(--navy); flex: none; }
.dp > .dp-label {
  position: absolute; left: 20px; top: 8px;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); font-weight: 700;
  pointer-events: none;
}
.dp-panel {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: var(--z-dropdown);
  width: min(340px, calc(100vw - 32px));
  background: #fff; color: var(--ink);
  padding: 18px;
  border: 1px solid rgba(20, 25, 45, 0.12);
  box-shadow: 0 16px 40px rgba(20, 25, 45, 0.22);
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.dp[data-open="true"] .dp-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible;
  transition: opacity 180ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 0s;
}
.dp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.dp-head .dp-year { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); font-weight: 700; }
.dp-nav {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); color: var(--ink); background: #fff;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.dp-nav:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.dp-nav .icon { color: currentColor; }
.dp-nav.prev .icon { transform: rotate(90deg); }
.dp-nav.next .icon { transform: rotate(-90deg); }
.dp-months {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.dp-month {
  padding: 12px 6px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.86rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.dp-month:hover { background: var(--ivory); color: var(--navy); }
.dp-month.is-selected { background: var(--navy); color: #fff; }

@media (max-width: 480px) {
  .dp-panel {
    /* Full trigger-width on small screens so the panel never overflows the viewport */
    width: auto; left: 0; right: 0;
    padding: 16px;
  }
  .dp-months { gap: 5px; }
  .dp-month { padding: 11px 4px; font-size: 0.82rem; }
  .dd-menu { max-height: min(280px, 55vh); }
  .dd-option { padding: 12px 18px; font-size: 0.9rem; }
}

/* Checkbox */
.field-check {
  display: flex; align-items: flex-start; gap: 14px;
  color: rgba(255,255,255,0.92); font-size: 0.88rem; margin: 20px 0 8px;
}
.field-check input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(255,255,255,0.7); background: transparent;
  cursor: pointer; margin-top: 2px; position: relative;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.field-check input:checked { background: #fff; border-color: #fff; }
.field-check input:checked::after {
  content: ''; position: absolute; inset: 2px;
  background-color: var(--terra);
  -webkit-mask: url('/assets/icons/check.svg') center / 14px no-repeat;
          mask: url('/assets/icons/check.svg') center / 14px no-repeat;
}

.form-actions { text-align: center; margin-top: 28px; }
.form-actions .btn { padding: 19px 48px; }
.form-fine { color: rgba(255,255,255,0.75); font-size: 0.78rem; margin-top: 14px; }

.alert { padding: 22px 26px; margin: 0 auto 28px; max-width: 780px; }
.alert-success { background: rgba(255,255,255,0.96); color: var(--success); }
.alert-success h2 { color: var(--success); margin-bottom: 8px; text-align: left; font-size: 1.5rem; }
.alert-error { background: rgba(0,0,0,0.2); color: #fff; }
.alert p { margin: 0; color: inherit; }

/* Contact info column */
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-info .info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact-info .info-row:last-child { border-bottom: 0; }
.contact-info .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-tag);
  background: var(--ivory-2); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.contact-info a { color: var(--navy); font-weight: 600; }
.contact-info a:hover { color: var(--gold-3); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin: 0; font-weight: 700; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 8px 0 0; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(1200px 260px at 20% 0%, rgba(195,151,73,0.18), transparent 60%),
    radial-gradient(900px 320px at 90% 100%, rgba(20,39,90,0.55), transparent 60%),
    linear-gradient(180deg, #0b1330 0%, #060a1c 100%);
  color: #d9dae0;
  padding: 48px var(--pad-x);
  margin: 40px var(--pad-x) 0;
  border-radius: var(--radius-bar) var(--radius-bar) 0 0;
  box-shadow: 0 -18px 40px -20px rgba(0,0,0,0.35);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 56px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { width: 132px; height: auto; margin-bottom: 16px; border-radius: var(--radius-img); }
.footer-tag { color: #8b90a0; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 14px; }
.site-footer a { color: #d9dae0; }
.site-footer a:hover { color: var(--gold-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-hours { color: #8b90a0; font-size: 0.86rem; margin-top: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 0.8rem; color: #8b90a0;
}
.footer-bottom p { margin: 0; color: inherit; }
.footer-note { font-style: italic; }

@media (max-width: 768px) {
  .site-footer { padding: 32px var(--pad-x); border-radius: 16px 16px 0 0; }
  .footer-inner { padding: 44px 28px 28px; }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
  .footer-logo img { width: 110px; }
}

@media (max-width: 430px) {
  .site-footer { padding: 24px 16px 20px; margin: 24px 16px 0; border-radius: 12px 12px 0 0; }
  .footer-inner { padding: 34px 22px 24px; }
  .footer-grid { gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Utility ---------- */
.message-page { padding: 160px 0 120px; }

/* ---------- Mobile global tweaks ---------- */
@media (max-width: 430px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
  .page-header { padding: 44px 0 36px; }
}
