/* =========================================================
   Casa Mel — Editorial Mediterranean
   Palette: cream, terracotta, sun, sea-teal, ink
   ========================================================= */

:root {
  --cream: #FBF6EE;
  --cream-2: #F4ECDD;
  --sand: #E8DBC2;
  --ink: #1E1A16;
  --ink-soft: #5A4E44;
  --muted: #8B7E70;
  --terracotta: #C8553D;
  --terracotta-dark: #A8412B;
  --sun: #E8A33D;
  --sea: #1F6F7A;
  --sea-deep: #144952;
  --white: #ffffff;
  --border: #E5DCC9;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(30, 26, 22, 0.06);
  --shadow: 0 14px 40px rgba(30, 26, 22, 0.10);
  --shadow-lg: 0 30px 80px rgba(30, 26, 22, 0.18);

  --ff-display: "Playfair Display", "Times New Roman", serif;
  --ff-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.05rem; font-family: var(--ff-sans); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.italic { font-style: italic; font-family: var(--ff-display); color: var(--terracotta); }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 1rem;
}
.eyebrow.light { color: var(--sun); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 30px rgba(200, 85, 61, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(200, 85, 61, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30, 26, 22, 0.18);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.scrolled {
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(30, 26, 22, .06);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--ff-display);
  letter-spacing: 0.02em;
}
.nav.scrolled .logo { color: var(--ink); }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255,255,255,0.85);
  padding: 2px;
  transition: background .35s ease;
}
.nav.scrolled .logo-mark { background: transparent; padding: 0; }
.footer .logo { gap: 14px; align-items: center; }
.footer .logo-mark {
  width: 68px; height: 68px;
  background: #fff;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.footer .logo-text { font-size: 22px; }
.logo-text { font-size: 19px; font-weight: 500; }
.logo-dark { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { transition: color .25s ease; position: relative; }
.nav-links a:hover { color: var(--sun); }
.nav.scrolled .nav-links { color: var(--ink); }
.nav.scrolled .nav-links a:hover { color: var(--terracotta); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 38px; height: 38px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: #fff;
  margin: 5px 0;
  transition: background .25s;
}
.nav.scrolled .nav-burger span { background: var(--ink); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-pan 18s ease-in-out infinite alternate;
}
@keyframes hero-pan {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,73,82,.35) 0%, rgba(20,73,82,0) 35%, rgba(30,26,22,.7) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(232,163,61,.35) 0%, transparent 60%);
}

.hero-content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 10vh, 120px);
  position: relative;
  z-index: 2;
}
.hero-content .eyebrow {
  color: var(--sun);
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: .4em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 .italic { color: var(--sun); }
.hero-sub {
  color: rgba(255,255,255,.92);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3rem;
}
.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.hero-actions .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 40px);
  max-width: 640px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-meta div {
  display: flex;
  flex-direction: column;
}
.hero-meta span {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta small {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.scroll-cue {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 8px;
  z-index: 2;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: #fff; border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%,100% { transform: translateY(0); opacity: .4; }
  50%     { transform: translateY(10px); opacity: 1; }
}

/* ===== Sections base ===== */
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: 0 var(--pad);
}
.section-head h2 { margin-bottom: .3em; }
.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
}
.section-head.light .eyebrow,
.section-head.light h2 { color: var(--ink); }

/* ===== INTRO ===== */
.intro {
  background: var(--cream);
}
.intro-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text p { font-size: 17px; max-width: 52ch; }
.signature {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--terracotta);
  margin-top: 2rem;
  font-size: 1.05rem;
}
.intro-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.intro-badge small {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.intro-badge strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.2;
}

/* ===== FEATURES ===== */
.features {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.feature-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.feature-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.feature-card-tall .feature-img { aspect-ratio: 4/4.5; }
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.feature-card:hover .feature-img img { transform: scale(1.06); }
.feature-card h3 {
  padding: 28px 28px 6px;
}
.feature-card p {
  padding: 0 28px 28px;
  margin: 0;
}

/* ===== GALLERY / Masonry ===== */
.gallery { background: var(--cream); }
.masonry {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.m-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  grid-row: span 2;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.m-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.m-item:hover img { transform: scale(1.05); }
.m-tall { grid-row: span 3; }
.m-wide { grid-column: span 2; }

/* ===== SURROUNDINGS ===== */
.surroundings {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}
.surroundings-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.surroundings-text h2 { margin-bottom: 1.2rem; }
.loc-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.loc-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.loc-list strong {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.15rem;
  font-weight: 500;
  min-width: 60px;
}
.loc-list span { color: var(--ink-soft); font-size: 15px; }

.surroundings-collage {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
}
.surroundings-collage img {
  border-radius: var(--radius);
  width: 100%; height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.surroundings-collage .c1 { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.surroundings-collage .c2 { grid-column: 5 / span 2; grid-row: 1 / span 3; }
.surroundings-collage .c3 { grid-column: 1 / span 2; grid-row: 4 / span 3; }
.surroundings-collage .c4 { grid-column: 3 / span 4; grid-row: 4 / span 3; }

/* ===== GOLF ===== */
.golf {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(90px, 12vw, 160px) 0;
}
.golf-media {
  position: absolute; inset: 0;
  z-index: -1;
}
.golf-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.golf-media-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 50, 45, 0.92) 0%, rgba(20, 50, 45, 0.78) 45%, rgba(20, 50, 45, 0.35) 100%),
    radial-gradient(60% 80% at 20% 50%, rgba(232, 163, 61, 0.18) 0%, transparent 70%);
}
.golf-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.golf-text h2 { color: #fff; margin-bottom: 1.2rem; }
.golf-text h2 .italic { color: var(--sun); }
.golf-text p {
  color: rgba(255,255,255,0.88);
  max-width: 52ch;
}
.golf-text strong { color: #fff; font-weight: 600; }
.golf-text em { color: var(--sun); font-style: italic; font-family: var(--ff-display); }

.golf-stats {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
}
.golf-stats strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 500;
}
.golf-stats span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

.golf-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 140px;
  gap: 18px;
}
.golf-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.golf-card img { width: 100%; height: 100%; object-fit: cover; }
.golf-card figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.golf-card figcaption strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2px;
  color: #fff;
}
.golf-card figcaption span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.golf-card-1 { grid-column: 1 / span 2; grid-row: 1; }
.golf-card-2 { grid-column: 1; grid-row: 2; }

.golf-badge {
  grid-column: 2; grid-row: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  line-height: 1.4;
}
.golf-badge svg {
  width: 28px; height: 28px;
  color: var(--sun);
}

@media (max-width: 900px) {
  .golf-grid { grid-template-columns: 1fr; }
  .golf-cards { grid-template-rows: 220px 180px; }
}
@media (max-width: 560px) {
  .golf-stats { grid-template-columns: 1fr 1fr; }
  .golf-cards {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 160px auto;
  }
  .golf-card-1 { grid-column: 1; grid-row: 1; }
  .golf-card-2 { grid-column: 1; grid-row: 2; }
  .golf-badge { grid-column: 1; grid-row: 3; }
}

/* ===== PRACTICAL ===== */
.practical {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--ink);
}
.practical-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 2px 10px rgba(30, 26, 22, 0.03);
}
.p-card:hover {
  border-color: rgba(200, 85, 61, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.p-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(200, 85, 61, 0.08);
  color: var(--terracotta);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: background .3s ease, color .3s ease;
}
.p-card:hover .p-icon {
  background: var(--terracotta);
  color: #fff;
}
.p-icon svg { width: 26px; height: 26px; }
.p-card h4 { color: var(--ink); margin-bottom: 14px; }
.p-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 14.5px;
}
.p-card li:last-child { border-bottom: 0; }
.p-card p { color: var(--ink-soft); margin: 0; font-size: 14.5px; }
.p-card-accent {
  background: linear-gradient(160deg, rgba(232,163,61,.18), rgba(200,85,61,.14));
  border-color: rgba(232,163,61,.4);
}
.p-card-accent .p-icon {
  background: rgba(255, 255, 255, 0.7);
  color: var(--terracotta);
}

/* ===== QUOTE ===== */
.quote {
  background: var(--cream);
  text-align: center;
}
.quote figure {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
}
.quote blockquote em { color: var(--terracotta); }
.quote figcaption {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
}
.cta-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .5s ease;
}
.cta-photo:hover { transform: translateY(-6px); }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo-left  { transform: translateY(-16px); }
.cta-photo-right { transform: translateY(16px); }
.cta-photo-left:hover  { transform: translateY(-22px); }
.cta-photo-right:hover { transform: translateY(10px); }

.cta-content {
  text-align: center;
  padding: 0 8px;
}
.cta-content .eyebrow { color: var(--terracotta); }
.cta-content h2 { color: var(--ink); margin-bottom: 1rem; }
.cta-content h2 .italic { color: var(--terracotta); }
.cta-sub {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 44ch;
  margin: 0 auto 2.4rem;
}
.cta-foot {
  margin-top: 1.6rem;
  font-size: 14px;
  color: var(--muted);
}
.cta-foot a {
  color: var(--terracotta);
  border-bottom: 1px solid rgba(200, 85, 61, 0.35);
  padding-bottom: 1px;
  white-space: nowrap;
}
.cta-foot-sep {
  margin: 0 8px;
  color: rgba(30, 26, 22, 0.25);
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "content content"
      "left right";
    gap: 28px;
  }
  .cta-content { grid-area: content; }
  .cta-photo-left  { grid-area: left;  transform: none; }
  .cta-photo-right { grid-area: right; transform: none; }
  .cta-photo { aspect-ratio: 4/5; }
}
@media (max-width: 560px) {
  .cta-grid { grid-template-columns: 1fr; grid-template-areas: "content" "left" "right"; }
  .cta-photo { aspect-ratio: 16/10; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(251, 246, 238, 0.7);
  padding: 56px 0 36px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer .logo { color: var(--cream); }
.footer-tag {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(251,246,238,.6);
}
.footer-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14.5px;
}
.footer-nav a { color: rgba(251,246,238,.8); transition: color .25s; }
.footer-nav a:hover { color: var(--sun); }
.footer-meta { text-align: right; font-size: 13px; color: rgba(251,246,238,.5); }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 14, 0.6);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modal-in .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modal-in {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0;
  font-size: 30px; cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-close:hover { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.menu-open {
    background: rgba(251, 246, 238, 0.97);
    backdrop-filter: blur(14px);
  }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 24px var(--pad);
    color: var(--ink);
    border-top: 1px solid var(--border);
    gap: 18px;
  }
  .intro-grid,
  .surroundings-grid {
    grid-template-columns: 1fr;
  }
  .intro-media { aspect-ratio: 4/3; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-tall .feature-img { aspect-ratio: 4/3; }
  .masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .m-wide { grid-column: span 2; }
  .practical-grid { grid-template-columns: 1fr 1fr; }
  .loc-list { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-meta { text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .practical-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .m-item { grid-row: auto; aspect-ratio: 4/3; }
  .m-item.m-tall { grid-row: auto; aspect-ratio: 3/4; }
  .m-item.m-wide { grid-column: auto; }
  .modal-panel { padding: 36px 26px; }
}

/* ===== Amenities row ===== */
.amenities {
  list-style: none;
  max-width: var(--container);
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.amenities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 4px;
  transition: transform .25s ease;
}
.amenities li:hover { transform: translateY(-3px); }
.am-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(200, 85, 61, 0.08);
  color: var(--terracotta);
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.amenities li:hover .am-icon {
  background: var(--terracotta);
  color: #fff;
}
.am-icon svg { width: 26px; height: 26px; }
.am-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.am-text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
}

@media (max-width: 1024px) {
  .amenities { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .amenities { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== Lightbox ===== */
.m-item { cursor: zoom-in; }
.m-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.m-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(15, 12, 10, 0.94);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: clamp(20px, 4vw, 60px);
  animation: lb-in .3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  grid-column: 2;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  animation: lb-img-in .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes lb-img-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
.lb-stage figcaption {
  color: rgba(251,246,238,.85);
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
  font-family: var(--ff-sans);
}

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, transform .25s;
  display: grid; place-items: center;
}
.lb-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }

.lb-nav {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}
.lb-nav:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lb-nav svg { width: 24px; height: 24px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }

.lb-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251,246,238,.6);
  font-family: var(--ff-sans);
}

@media (max-width: 640px) {
  .lightbox { padding: 16px; gap: 8px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 24px; }
  .lb-stage img { max-height: calc(100vh - 140px); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.hero.reveal { opacity: 1; transform: none; } /* hero always visible */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
