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

:root {
  --bg:           #fdfcfa;
  --bg-alt:       #f4f0ea;
  --text:         #1c1a18;
  --text-muted:   #7a7570;
  --accent:       #b5894c;
  --accent-light: rgba(181, 137, 76, 0.09);
  --border:       #e8e4de;
  --dark:         #18160f;
  --nav-h:        68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  z-index: 100;
  transition: background .4s, box-shadow .4s;
}

/* Dark-hero variant: nav starts transparent */
body.dark-hero .site-nav:not(.scrolled) .nav-logo,
body.dark-hero .site-nav:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,.82);
}
body.dark-hero .site-nav:not(.scrolled) .nav-links a:hover {
  color: #fff;
}

/* Scrolled state: solid nav */
.site-nav.scrolled {
  background: rgba(253,252,250,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
/* When scrolled, revert text to dark */
.site-nav.scrolled .nav-logo,
.site-nav.scrolled .nav-links a { color: var(--text-muted); }
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active { color: var(--text); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .25s;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
/* Default: img-based — shows full image at natural aspect ratio, no cropping */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  width: 100%;
  display: block;
  /* no height constraint = natural aspect ratio = zero cropping */
}
/* Variant for pages that still use CSS background-image (gallery, contact) */
.page-hero.bg-fixed {
  height: 70vh;
  min-height: 460px;
  background-size: cover;
  background-position: center;
}
.page-hero.bg-fixed .page-hero-bg { display: none; }

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.48) 0%,
    rgba(0,0,0,.06) 35%,
    rgba(0,0,0,.06) 55%,
    rgba(0,0,0,.72) 100%
  );
}
.page-hero-content {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0; right: 0;
  padding: 0 52px 52px;
  color: #fff;
}
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp .7s ease .15s forwards;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1.06;
  opacity: 0;
  animation: fadeUp .75s ease .3s forwards;
}
.page-hero-sub {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp .7s ease .45s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── INNER PAGE TITLE (no image) ───────────────────────── */
.page-title {
  padding: calc(var(--nav-h) + 68px) 52px 60px;
  border-bottom: 1px solid var(--border);
}
.page-title-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  opacity: 0; animation: fadeUp .6s ease .1s forwards;
}
.page-title-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7vw, 84px); font-weight: 300; line-height: 1.04;
  opacity: 0; animation: fadeUp .7s ease .25s forwards;
}
.page-title-sub {
  margin-top: 18px;
  font-size: 16px; font-weight: 300; color: var(--text-muted);
  max-width: 520px; line-height: 1.75;
  opacity: 0; animation: fadeUp .6s ease .4s forwards;
}

@media (max-width: 820px) {
  .page-title { padding: calc(var(--nav-h) + 48px) 24px 44px; }
}

/* ─── SHARED SECTION CHROME ──────────────────────────────── */
section { padding: 100px 52px; }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 28px;
}
.rule {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 36px;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  letter-spacing: .02em;
}
.foot-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.foot-links a {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color .2s;
}
.foot-links a:hover { color: rgba(255,255,255,.65); }
.foot-copy {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
}

/* ─── SHARED SCRIPT FOR NAV + REVEAL ────────────────────── */
/* (invoked via inline script in each page) */

/* ─── HAMBURGER BUTTON ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

body.dark-hero .site-nav:not(.scrolled) .nav-hamburger { color: rgba(255,255,255,.82); }
.site-nav.scrolled .nav-hamburger { color: var(--text-muted); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-close {
  position: absolute;
  top: 22px; right: 24px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: rgba(255,255,255,.45);
  line-height: 1; padding: 6px;
  transition: color .2s;
}
.mobile-close:hover { color: #fff; }
.mobile-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-links li a {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 300;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 10px 24px;
  letter-spacing: .02em;
  transition: color .2s;
}
.mobile-links li a:hover,
.mobile-links li a.active { color: var(--accent); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 24px; }
  .page-hero-content { padding: 0 24px 36px; }
  .site-footer { padding: 24px; flex-direction: column; align-items: center; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
}
