/* =====================================================
   LE DA VILLAS — styles.css
   Full premium redesign
===================================================== */

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  /* Palette */
  --ink:          #090806;
  --charcoal:     #161310;
  --espresso:     #251d14;
  --walnut:       #3a2e22;
  --stone:        #ede6d8;
  --parchment:    #f6f0e6;
  --cream:        #fdfaf3;
  --champagne:    #c8a46a;
  --gold:         #d4b07c;
  --copper:       #a07040;
  --muted:        #9c9080;

  /* Alphas */
  --line-d:  rgba(255, 250, 236, 0.10);
  --line-d2: rgba(255, 250, 236, 0.18);
  --line-w:  rgba(20, 15, 8, 0.11);
  --line-w2: rgba(20, 15, 8, 0.18);

  /* Shadows */
  --sh-xl: 0 48px 120px rgba(0,0,0,0.44);
  --sh-lg: 0 24px 64px  rgba(0,0,0,0.30);
  --sh-md: 0 10px 32px  rgba(0,0,0,0.18);
  --sh-sm: 0  4px 16px  rgba(0,0,0,0.10);

  /* Layout */
  --max:   1120px;
  --gutter: clamp(20px, 5vw, 72px);

  /* Typography */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "DM Sans", Arial, sans-serif;

  /* Motion */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:   0.75s;
}

/* =====================================================
   BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

/* Elegant slow scroll via JS — overrides html scroll-behavior */

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--champagne); color: var(--ink); }

/* =====================================================
   LOADER
===================================================== */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
  pointer-events: all;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 4.8rem);
  font-weight: 400;
  color: var(--champagne);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(24px);
  animation: loaderIn 1.1s var(--ease) 0.15s forwards;
}

@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 82px;
  padding: 0 var(--gutter);
  transition:
    background 0.45s var(--ease2),
    border-color 0.45s var(--ease2),
    height 0.45s var(--ease2),
    backdrop-filter 0.45s var(--ease2);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(9, 8, 6, 0.9);
  border-color: var(--line-d);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--champagne);
  white-space: nowrap;
}

.brand img {
  width: 34px; height: 34px;
  object-fit: contain;
  border: 1px solid rgba(200,164,106,0.3);
  border-radius: 4px;
  padding: 4px;
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(200,164,106,0.28);
  line-height: 1;
}

/* Primary nav */
.nav {
  justify-self: center;
  display: flex; align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(253,250,243,0.72);
}

.nav a, .footer-nav a, .contact-links a {
  position: relative;
  transition: color 0.28s ease;
}

.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover { color: var(--champagne); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Header CTA */
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px;
  border: 1px solid rgba(200,164,106,0.45);
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--champagne);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.header-cta:hover {
  background: var(--champagne); color: var(--ink);
  border-color: var(--champagne); transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-d) !important;
  border-radius: 50%;
  background: rgba(255,255,255,0.04) !important;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block; width: 17px; height: 1px;
  background: var(--cream);
  transition: transform 0.24s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* =====================================================
   TYPOGRAPHY GLOBALS
===================================================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.9rem, 5.6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.8rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.52rem); }

p { line-height: 1.72; }

.eyebrow {
  display: block;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--champagne);
  margin-bottom: 18px;
}

.eyebrow-light { color: var(--gold); }
.eyebrow-warm  { color: var(--copper); }

/* =====================================================
   SECTION WRAPPERS
===================================================== */
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-warm { background: var(--parchment); color: var(--espresso); }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 52px; padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition:
    background 0.3s var(--ease2),
    border-color 0.3s var(--ease2),
    color 0.3s var(--ease2),
    transform 0.35s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--champagne); color: var(--ink);
  border-color: var(--champagne);
}
.btn-primary:hover { background: var(--cream); border-color: var(--cream); }

.btn-ghost {
  background: rgba(253,250,243,0.07);
  color: var(--cream);
  border-color: rgba(253,250,243,0.26);
}
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne); }

.btn-outline {
  background: transparent; color: var(--cream);
  border-color: rgba(253,250,243,0.35);
}
.btn-outline:hover { border-color: var(--champagne); color: var(--champagne); }

.btn-dark {
  background: var(--walnut); color: var(--cream);
  border-color: var(--walnut);
}
.btn-dark:hover { background: var(--espresso); border-color: var(--espresso); }

.btn-block { width: 100%; }

/* =====================================================
   REVEAL ANIMATION — with no-JS fallback
===================================================== */

/* Default: visible. JS adds .js-ready to <html> which enables the hidden state */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(36px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   ① HERO
===================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh; /* iOS fallback */
  display: grid;
  align-content: end;
  padding: 100px var(--gutter) clamp(56px, 9vw, 112px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: -9%; left: 0; right: 0;
  height: 118%;
  overflow: hidden;
  will-change: transform;
}

/* On mobile, disable parallax overflow — just fill the frame */
@media (max-width: 720px) {
  .hero-media { height: 100%; top: 0; }
  .location-bg { height: 100%; top: 0; }
}

.hero-media img,
.hero-video {
  filter: saturate(0.85) contrast(1.06) brightness(0.96);
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(108deg,
      rgba(9,8,6,0.85) 0%,
      rgba(9,8,6,0.38) 52%,
      rgba(9,8,6,0.55) 100%),
    linear-gradient(0deg,
      rgba(9,8,6,0.96) 0%,
      rgba(9,8,6,0.08) 48%);
}

.hero-body {
  position: relative; z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--champagne);
  margin-bottom: 22px;
}

.hero-title {
  color: var(--cream);
  margin-bottom: 26px;
  max-width: 640px;
}

.hero-copy {
  max-width: 530px;
  color: rgba(253,250,243,0.76);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  margin-bottom: 42px;
  line-height: 1.72;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* Pill strip */
.hero-pills {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap;
  margin-top: 56px;
  border: 1px solid rgba(253,250,243,0.13);
  background: rgba(9,8,6,0.38);
  backdrop-filter: blur(18px);
  width: fit-content;
  max-width: 100%;
}

.hero-pills span {
  padding: 15px 22px;
  font-size: 0.67rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(253,250,243,0.68);
  border-right: 1px solid rgba(253,250,243,0.11);
  white-space: nowrap;
}

.hero-pills span:last-child { border-right: none; }

/* Scroll indicator */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%;
  width: 1px; height: 64px;
  background: rgba(253,250,243,0.16);
  z-index: 2;
}

.scroll-cue span {
  display: block; width: 1px; height: 22px;
  background: var(--champagne);
  animation: scrollDrop 2.1s var(--ease) infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  {                               opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}

/* =====================================================
   ② SIGNATURE FEATURES
===================================================== */
.features {
  padding: clamp(88px, 11vw, 152px) var(--gutter);
}

.features-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 80px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(60px, 9vw, 108px);
}

.features-header h2 { color: var(--espresso); }

.features-header-right {
  color: rgba(37,29,20,0.58);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  padding-bottom: 6px;
  align-self: end;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-w);
  border: 1px solid var(--line-w);
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card {
  background: var(--parchment);
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 30px);
  display: flex; flex-direction: column;
  gap: 28px;
  transition: background 0.38s var(--ease2), box-shadow 0.38s var(--ease2), transform 0.38s var(--ease);
  cursor: default;
}

.feature-card:hover {
  background: var(--cream);
  box-shadow: 0 -6px 0 0 var(--champagne) inset;
  transform: translateY(-5px);
  z-index: 1;
}

.feature-num {
  font-family: var(--serif);
  font-size: 2.6rem; font-weight: 400;
  color: rgba(200,164,106,0.55);
  line-height: 1;
  letter-spacing: -0.02em;
}

.feature-body h3 {
  color: var(--espresso);
  margin-bottom: 12px;
}

.feature-body p {
  color: rgba(37,29,20,0.58);
  font-size: 0.92rem;
  line-height: 1.68;
}

/* =====================================================
   ③ GALLERY
===================================================== */
.gallery {
  padding: clamp(88px, 11vw, 148px) var(--gutter);
  background: var(--charcoal);
}

.gallery-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 80px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(52px, 7vw, 88px);
}

.gallery-header-left h2 { color: var(--cream); }

.gallery-header-right {
  color: rgba(253,250,243,0.58);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  align-self: end;
  padding-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: clamp(8px, 1.2vw, 14px);
  max-width: var(--max);
  margin: 0 auto;
}

.gitem {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
  border: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  /* Force the button to fill its grid cell completely */
  width: 100%;
  height: 100%;
}

.gitem.wide { grid-column: span 2; }
.gitem.tall { grid-row: span 2; }

/* Image fills the button absolutely — grid row height controls everything */
.gitem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.gitem:hover img {
  transform: scale(1.045);
  filter: brightness(0.65);
}

.gitem-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 36px 18px 16px;
  background: linear-gradient(to top, rgba(9,8,6,0.78) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cream);
}

.gitem:hover .gitem-caption { opacity: 1; }

.gallery-cta {
  display: flex;
  justify-content: center;
  margin: clamp(36px, 5vw, 60px) auto 0;
  max-width: var(--max);
}
/* =====================================================
   ④ LOCATION
===================================================== */
.location {
  position: relative;
  min-height: 96svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(88px, 11vw, 148px) var(--gutter) clamp(64px, 8vw, 100px);
  overflow: hidden;
}

.location-bg {
  position: absolute; inset: 0;
  height: 118%; top: -9%;
  will-change: transform;
}

.location-bg img {
  filter: saturate(0.76) brightness(0.68) contrast(1.04);
}

.location-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg,
      rgba(9,8,6,0.97) 0%,
      rgba(9,8,6,0.52) 44%,
      rgba(9,8,6,0.68) 100%);
}

.location-body {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.location-copy {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.location-copy h2 {
  color: var(--cream);
  margin-bottom: 22px;
}

.location-copy p {
  color: rgba(253,250,243,0.65);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  max-width: 560px;
}

/* Distance grid */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(253,250,243,0.09);
  border: 1px solid rgba(253,250,243,0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dist-item {
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 7px;
  transition: background 0.28s ease;
}

.dist-item:hover { background: rgba(253,250,243,0.06); }

.dist-item strong {
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 400;
  color: var(--champagne);
  line-height: 1;
  letter-spacing: -0.01em;
}

.dist-item span {
  font-size: 0.78rem;
  color: rgba(253,250,243,0.55);
  line-height: 1.42;
}

/* =====================================================
   ⑤ RENTAL / OWNERSHIP
===================================================== */
.rental {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
  overflow: hidden;
}

.rental-media { overflow: hidden; position: relative; }

.rental-media img {
  transition: transform 14s var(--ease);
}

.rental-media:hover img { transform: scale(1.05); }

/* Subtle left-edge shadow to blend */
.rental-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(246,240,230,0.06) 100%);
  pointer-events: none;
}

.rental-copy {
  background: var(--parchment);
  padding: clamp(64px, 9vw, 118px) clamp(40px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}

.rental-copy h2 {
  color: var(--espresso);
  max-width: 440px;
}

.rental-copy p {
  color: rgba(37,29,20,0.62);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  max-width: 500px;
}

.rental-copy .btn { align-self: flex-start; margin-top: 14px; }

/* =====================================================
   ⑥ SUSTAINABILITY
===================================================== */
.sustain {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.58fr);
  overflow: hidden;
  background: var(--espresso);
}

.sustain-inner {
  padding: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
}

.sustain-inner h2 {
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 480px;
}

.sustain-inner p {
  color: rgba(253,250,243,0.62);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  max-width: 520px;
  line-height: 1.75;
}

.sustain-image { overflow: hidden; min-height: 440px; }

.sustain-image img {
  transition: transform 12s var(--ease);
  filter: saturate(0.9) brightness(0.95);
}

.sustain-image:hover img { transform: scale(1.04); }

/* =====================================================
   ⑦ ABOUT
===================================================== */
.about {
  padding: clamp(88px, 11vw, 152px) var(--gutter);
  background: var(--parchment);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.6fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.about-copy h2 {
  color: var(--espresso);
  margin-bottom: 30px;
}

.about-copy p {
  color: rgba(37,29,20,0.62);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  margin-bottom: 18px;
}

.about-copy p:last-child { margin-bottom: 0; }

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-w);
  border: 1px solid var(--line-w);
  align-self: start;
}

.stat-item {
  background: var(--parchment);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.3s ease;
}

.stat-item:hover { background: var(--cream); }

.stat-item strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--copper);
}

/* =====================================================
   ⑧ CONTACT
===================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--charcoal);
}

.contact-copy {
  padding: clamp(80px, 10vw, 132px) clamp(40px, 6vw, 82px);
  display: flex; flex-direction: column; gap: 0;
  border-right: 1px solid var(--line-d);
}

.contact-copy h2 {
  color: var(--cream);
  max-width: 460px;
  margin-bottom: 22px;
}

.contact-copy > p {
  color: rgba(253,250,243,0.58);
  margin-bottom: 44px;
}

.contact-links {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: auto;
}

.contact-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--champagne);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.contact-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.34s var(--ease);
}

.contact-links a:hover::after {
  transform: scaleX(1); transform-origin: left;
}

/* Contact form */
.contact-form {
  padding: clamp(80px, 10vw, 132px) clamp(40px, 6vw, 82px);
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(255,255,255,0.025);
}

.form-field {
  display: flex; flex-direction: column; gap: 9px;
}

.form-field label {
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(253,250,243,0.42);
}

.form-field label span { color: var(--champagne); margin-left: 2px; }

.form-field input {
  height: 54px;
  background: rgba(253,250,243,0.055);
  border: 1px solid rgba(253,250,243,0.12);
  border-radius: 6px;
  padding: 0 20px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.26s ease, background 0.26s ease;
}

.form-field input::placeholder {
  color: rgba(253,250,243,0.28);
}

.form-field input:focus {
  border-color: var(--champagne);
  background: rgba(253,250,243,0.08);
}

fieldset {
  border: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

fieldset legend {
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(253,250,243,0.42);
  margin-bottom: 10px;
  grid-column: 1 / -1;
}

.radio-pill {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px;
  border: 1px solid rgba(253,250,243,0.12);
  border-radius: 6px;
  background: rgba(253,250,243,0.04);
  font-size: 0.84rem; font-weight: 400;
  cursor: pointer;
  transition: border-color 0.26s ease, background 0.26s ease;
}

.radio-pill:hover {
  border-color: var(--champagne);
  background: rgba(200,164,106,0.06);
}

.radio-pill input {
  width: 15px; height: 15px;
  accent-color: var(--champagne);
}

/* Form feedback messages */
.form-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.86rem; font-weight: 500;
  line-height: 1.4;
}

.form-msg[hidden] { display: none; }

.form-msg span {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-msg--success {
  background: rgba(120, 180, 120, 0.12);
  border: 1px solid rgba(120, 180, 120, 0.35);
  color: #8ecf8e;
}

.form-msg--error {
  background: rgba(200, 90, 90, 0.10);
  border: 1px solid rgba(200, 90, 90, 0.32);
  color: #e09090;
}

/* Submit button spinner state */
.btn-spinner { display: none; }
.btn.is-loading .btn-label  { display: none; }
.btn.is-loading .btn-spinner { display: inline; }
.btn.is-loading { opacity: 0.72; pointer-events: none; }

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-d);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(36px, 5vw, 90px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 104px) var(--gutter) clamp(48px, 6vw, 72px);
}

.footer-brand img {
  width: 40px; height: 40px;
  object-fit: contain; margin-bottom: 20px;
  border: 1px solid rgba(200,164,106,0.22);
  border-radius: 4px; padding: 4px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--champagne);
  margin-bottom: 5px;
}

.footer-tagline {
  font-size: 0.76rem;
  color: rgba(253,250,243,0.36);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(253,250,243,0.38);
  max-width: 280px;
  line-height: 1.65;
}

.footer-nav, .footer-contact {
  display: flex; flex-direction: column; gap: 13px;
  padding-top: 2px;
}

.footer-nav a, .footer-contact a {
  font-size: 0.85rem;
  color: rgba(253,250,243,0.48);
  position: relative;
  transition: color 0.26s ease;
  width: fit-content;
}

.footer-nav a::after, .footer-contact a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.32s var(--ease);
}

.footer-nav a:hover, .footer-contact a:hover { color: var(--champagne); }
.footer-nav a:hover::after, .footer-contact a:hover::after {
  transform: scaleX(1); transform-origin: left;
}

.copyright {
  text-align: center;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line-d);
  font-size: 0.76rem;
  color: rgba(253,250,243,0.24);
  max-width: 100%;
}


/* =====================================================
   LIGHTBOX
===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
  overflow: hidden;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-box {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border: 1px solid var(--line-d);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--sh-xl);
  width: min(1080px, 100%);
  max-height: calc(100svh - 32px);
  display: flex;
  flex-direction: column;
}

.lightbox-box img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 90px);
  object-fit: contain;
  background: #060504;
  flex-shrink: 1;
}

.lightbox-box p {
  padding: 12px 20px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--champagne);
  text-align: center;
  flex-shrink: 0;
}

.lightbox-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  border: 1px solid rgba(253,250,243,0.3) !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.7) !important;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 18px; left: 10px;
  width: 16px; height: 1px;
  background: var(--cream);
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }

/* =====================================================
   ACCESSIBILITY
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   RESPONSIVE — 1100px
===================================================== */
@media (max-width: 1100px) {
  .features-grid        { grid-template-columns: repeat(3, 1fr); }
  .features-header      { grid-template-columns: 1fr; gap: 20px; }
  .gallery-header       { grid-template-columns: 1fr; gap: 20px; }
  .distance-grid        { grid-template-columns: repeat(3, 1fr); }
  .rental               { grid-template-columns: 1fr; }
  .rental-media         { min-height: 55vw; max-height: 520px; }
  .sustain              { grid-template-columns: 1fr; }
  .sustain-image        { min-height: 360px; max-height: 500px; }
  .about-grid           { grid-template-columns: 1fr; }
  .contact              { grid-template-columns: 1fr; }
  .contact-copy         { border-right: none; border-bottom: 1px solid var(--line-d); }
  .footer-inner         { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   RESPONSIVE — 900px (nav collapse)
===================================================== */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    height: 70px;
  }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 70px; left: 16px; right: 16px;
    display: grid; justify-items: start; gap: 0;
    padding: 16px 20px;
    border: 1px solid var(--line-d);
    border-radius: 8px;
    background: rgba(9,8,6,0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0; pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.28s var(--ease2), transform 0.28s var(--ease2);
  }

  .nav.is-open {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    width: 100%; padding: 13px 2px;
    border-bottom: 1px solid var(--line-d);
  }

  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
}

/* =====================================================
   RESPONSIVE — 720px
===================================================== */
@media (max-width: 720px) {
  .site-header { padding: 0 16px; height: 64px; }
  .brand span, .header-cta { display: none; }

  .hero {
    padding: clamp(100px, 25vw, 160px) 16px 44px;
    align-content: end;
  }

  .hero-pills span { flex: 1 1 40%; min-width: 120px; }

  .features { padding: 72px 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; }

  .gallery { padding: 72px 16px; }
  .gallery-header { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(240px, 70vw); }
  .gitem.wide, .gitem.tall { grid-column: auto; grid-row: auto; }

  .location { padding: 72px 16px 60px; }
  .distance-grid { grid-template-columns: 1fr 1fr; }

  .rental-copy { padding: 56px 16px; }

  .sustain-inner { padding: 64px 16px; }

  .about { padding: 72px 16px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .contact-copy { padding: 64px 16px 44px; }
  .contact-form { padding: 44px 16px 72px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 0; }

  .btn { height: 50px; padding: 0 24px; }
}

/* =====================================================
   RESPONSIVE — 480px
===================================================== */
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .distance-grid { grid-template-columns: 1fr; }
  fieldset       { grid-template-columns: 1fr; }

  h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
}
