/* ==========================================================================
   SLNT Mahal — design system
   Palette drawn from the property itself: facade sandstone, terrace maroon,
   marigold gold, Poigai teal, dusk plum.
   ========================================================================== */

:root {
  --ivory:       #F9F3E8;
  --ivory-deep:  #F2E8D6;
  --maroon:      #5C1A22;
  --maroon-deep: #45131A;
  --gold:        #C98D2B;
  --gold-bright: #E0A83A;
  --teal:        #2E7F7A;
  --ink:         #2B1B16;
  --ink-soft:    #5C4A42;
  --dusk:        #1F1216;
  --line:        #E4D5BC;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-tamil: 'Hind Madurai', 'Manrope', sans-serif;

  --header-h: 72px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container { width: min(1160px, 92vw); margin-inline: auto; }
.container-wide { width: min(1400px, 96vw); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-bottom: .75rem; }

h1 em, h2 em { font-style: italic; color: var(--gold); }

p { max-width: 62ch; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow-gold { color: var(--gold-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-bright);
  color: var(--dusk);
}
.btn-gold:hover { background: #EDB84E; box-shadow: 0 10px 28px rgba(224, 168, 58, .35); }

.btn-ghost {
  border-color: rgba(249, 243, 232, .55);
  color: var(--ivory);
  background: rgba(31, 18, 22, .18);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(31, 18, 22, .35); }

.btn-maroon { background: var(--maroon); color: var(--ivory); }
.btn-maroon:hover { background: var(--maroon-deep); box-shadow: 0 10px 28px rgba(92, 26, 34, .3); }

.btn-maroon-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-maroon-outline:hover { background: var(--maroon); color: var(--ivory); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(249, 243, 232, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

/* legibility over the hero sky before the header gains its background */
.site-header:not(.scrolled):not(.nav-open) .brand-text,
.site-header:not(.scrolled):not(.nav-open) .main-nav a:not(.nav-cta) {
  text-shadow: 0 1px 3px rgba(31, 18, 22, .55), 0 2px 14px rgba(31, 18, 22, .4);
}
.site-header:not(.scrolled):not(.nav-open) .nav-toggle span {
  filter: drop-shadow(0 1px 3px rgba(31, 18, 22, .6));
}

.header-inner {
  width: min(1300px, 94vw);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: 3px;
  flex: none;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  transition: color .35s;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: .2rem;
}
.site-header.scrolled .brand-text { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.main-nav a {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ivory);
  transition: color .35s, opacity .2s;
  opacity: .92;
}
.main-nav a:hover { opacity: 1; }
.site-header.scrolled .main-nav a { color: var(--ink); }

.main-nav .nav-cta {
  background: var(--gold-bright);
  color: var(--dusk) !important;
  padding: .6rem 1.25rem;
  border-radius: 3px;
  opacity: 1;
}
.main-nav .nav-cta:hover { background: #EDB84E; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 70;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--ivory);
  transition: transform .3s var(--ease-out), opacity .3s, background-color .35s;
}
.site-header.scrolled .nav-toggle span,
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.site-header.nav-open .brand { position: relative; z-index: 70; }
.site-header.nav-open .brand-text { color: var(--ink); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -12% 0 0 0;         /* headroom for parallax drift */
  z-index: -1;
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31,18,22,.42) 0%, rgba(31,18,22,.12) 34%, rgba(31,18,22,.16) 55%, rgba(31,18,22,.82) 100%);
}

.hero-content {
  padding-block: 0 clamp(4.5rem, 10vh, 7rem);
  color: var(--ivory);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(31, 18, 22, .45);
  border: 1px solid rgba(224, 168, 58, .5);
  border-radius: 999px;
  padding: .45rem 1rem;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 168, 58, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(224, 168, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 168, 58, 0); }
}

.hero-eyebrow {
  font-family: var(--font-tamil);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--gold-bright);
  margin-bottom: .8rem;
}

.hero h1 { color: var(--ivory); max-width: 14ch; }

.hero-sub {
  margin-top: 1.3rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 52ch;
  color: rgba(249, 243, 232, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(249, 243, 232, .6);
  border-radius: 14px;
  display: block;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-bright);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { max-width: 22ch; }

.kolam-divider {
  display: flex;
  justify-content: center;
  color: var(--gold);
  opacity: .8;
}

/* ---------- Splits ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3.5rem, 8vw, 6rem); }
.split-flip .split-media { order: 2; }
.split-flip .split-body { order: 1; }

.split-media { position: relative; }
.split-media img { width: 100%; }

.arch {
  overflow: hidden;
  border-radius: 200px 200px 4px 4px;   /* mandapam arch silhouette */
  box-shadow: 0 24px 60px -24px rgba(43, 27, 22, .4);
}
.arch img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.arch:hover img { transform: scale(1.04); }

.split-body p + p { margin-top: 1rem; }
.split-body p { color: var(--ink-soft); }

/* ---------- Facilities ---------- */

.facilities {
  background:
    radial-gradient(90rem 40rem at 110% -20%, rgba(224, 168, 58, .12), transparent 60%),
    var(--maroon);
  color: var(--ivory);
}
.facilities .section-head h2 { color: var(--ivory); }
.facilities .eyebrow { color: var(--gold-bright); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  text-align: left;
}
.stat {
  border-top: 1px solid rgba(224, 168, 58, .4);
  padding-top: 1.4rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat-label {
  display: block;
  margin-top: .6rem;
  font-size: .92rem;
  color: rgba(249, 243, 232, .82);
  max-width: 18ch;
}

.feature-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.feature-chips li {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(249, 243, 232, .28);
  border-radius: 999px;
  color: rgba(249, 243, 232, .92);
}

/* ---------- Spaces ---------- */

.spaces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 3.5vw, 2.8rem);
}

.space-card h3 { margin-top: 1.4rem; }
.space-card > p { color: var(--ink-soft); margin-top: .35rem; }
.space-card .arch img { aspect-ratio: 4 / 3.4; }

.space-card-motif {
  background:
    linear-gradient(rgba(92, 26, 34, .96), rgba(69, 19, 26, .98)),
    var(--maroon);
  border-radius: 200px 200px 4px 4px;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.space-card-motif::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(224, 168, 58, .35);
  border-radius: 186px 186px 4px 4px;
  pointer-events: none;
}
.motif-inner { max-width: 34ch; }
.space-kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.space-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
  margin-block: 1rem .9rem;
  font-variant-numeric: tabular-nums;
}
.space-note { color: rgba(249, 243, 232, .8); font-size: .95rem; margin-inline: auto; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.g-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform .9s var(--ease-out), filter .4s;
}
.g-item:hover img { transform: scale(1.05); filter: brightness(1.06); }
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 2.05 / 1; }

/* ---------- Location ---------- */

.location { background: var(--ivory-deep); }

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(43, 27, 22, .35);
  border: 1px solid var(--line);
  background: var(--ivory);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.distance-list {
  list-style: none;
  margin-block: .5rem 1.5rem;
}
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
}
.distance-list strong { font-weight: 700; }
.distance-list span { color: var(--ink-soft); white-space: nowrap; }

.location-note { color: var(--ink-soft); font-size: .92rem; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.faq-list details[open] summary { color: var(--maroon); }
.faq-list details[open] summary::after {
  content: "−";
  background: var(--gold);
  color: var(--ivory);
  transform: rotate(180deg);
}
.faq-list summary:hover { color: var(--maroon); }
.faq-list details p {
  padding: 0 0 1.3rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Enquire ---------- */

.enquire { padding-bottom: clamp(5rem, 10vw, 8rem); }

.enquire-panel {
  background:
    radial-gradient(60rem 30rem at -10% 120%, rgba(224, 168, 58, .14), transparent 55%),
    var(--dusk);
  color: var(--ivory);
  border-radius: 6px;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.enquire-panel h2 { color: var(--ivory); margin-bottom: 1rem; }
.enquire-intro > p { color: rgba(249, 243, 232, .82); }

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.enquire-panel .btn-maroon-outline {
  border-color: rgba(249, 243, 232, .45);
  color: var(--ivory);
}
.enquire-panel .btn-maroon-outline:hover { background: var(--ivory); color: var(--dusk); border-color: var(--ivory); }

.enquire-soon {
  margin-top: 1.6rem;
  padding: .8rem 1.1rem;
  border-left: 2px solid var(--gold);
  font-size: .88rem;
  color: rgba(249, 243, 232, .65);
}

.enquire-form { color-scheme: dark; }
.enquire-form .form-row { margin-bottom: 1.1rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.enquire-form label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(249, 243, 232, .75);
  margin-bottom: .45rem;
}
.enquire-form input,
.enquire-form select,
.enquire-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ivory);
  background: rgba(249, 243, 232, .07);
  border: 1px solid rgba(249, 243, 232, .22);
  border-radius: 3px;
  padding: .85rem 1rem;
  transition: border-color .25s, background-color .25s;
}
.enquire-form input::placeholder,
.enquire-form textarea::placeholder { color: rgba(249, 243, 232, .4); }
.enquire-form input:focus,
.enquire-form select:focus,
.enquire-form textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(249, 243, 232, .1);
}
.enquire-form select,
.enquire-form input[type="date"],
.enquire-form input[type="month"] { cursor: pointer; }
.enquire-form select option { background: var(--dusk); color: var(--ivory); }
.enquire-form .btn:disabled { opacity: .7; cursor: default; transform: none; }
.enquire-form input:user-invalid { border-color: #E0653A; }
.enquire-form ::-webkit-calendar-picker-indicator { filter: invert(.9); }

.form-note {
  margin-top: .9rem;
  font-size: .82rem;
  color: rgba(249, 243, 232, .55);
  text-align: center;
  margin-inline: auto;
}
.form-note-ok { color: #8FD4A8; }
.form-note-err { color: #F0A08A; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dusk);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(224, 168, 58, .25);
}
.footer-tamil {
  font-family: var(--font-tamil);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  color: var(--gold-bright);
  margin-inline: auto;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1rem auto .3rem;
}
.footer-name span { opacity: .6; }
.footer-addr { font-size: .9rem; opacity: .7; margin-inline: auto; }
.footer-meta {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
  margin: 1.8rem auto 0;
}

/* ---------- Mobile action bar ---------- */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 55;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  background: rgba(249, 243, 232, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
  padding: .8rem .4rem;
  border-radius: 3px;
  border: 1px solid var(--maroon);
  color: var(--maroon);
}
.action-bar a:nth-child(2) { border-color: var(--teal); color: var(--teal); }
.action-bar .action-enquire {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--ivory);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(31, 18, 22, .95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(1200px, 94vw);
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 80svh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox figcaption {
  color: rgba(249, 243, 232, .8);
  font-size: .9rem;
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(249, 243, 232, .1);
  color: var(--ivory);
  border: 1px solid rgba(249, 243, 232, .25);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(249, 243, 232, .22); }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .split, .spaces-grid, .enquire-panel { grid-template-columns: 1fr; }
  .split-flip .split-media { order: 1; }
  .split-flip .split-body { order: 2; }
  .arch img { aspect-ratio: 4 / 3.6; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .map-frame iframe { height: 320px; }
  .space-card-motif { min-height: 340px; }
}

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 65;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--ivory);
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
  }
  .site-header.nav-open .main-nav { transform: translateX(0); }
  .main-nav a { color: var(--ink) !important; font-size: 1.25rem; }
  .nav-toggle { display: flex; }

  .action-bar { display: grid; }
  body { padding-bottom: 76px; }         /* room for the action bar */

  .hero-actions .btn { flex: 1 1 100%; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-row-2 > div { margin-bottom: 1.1rem; }
  .form-row-2 > div:last-child { margin-bottom: 0; }
  .lb-prev, .lb-next { display: none; }  /* swipe instead */
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .scroll-cue span { animation: none; }
  .arch img, .g-item img { transition: none; }
  .hero-media { inset: 0; }
}
