/* ── Bellagra — Design System ─────────────────────────── */
/* Rustic luxury, minimal, clean. Warm darks, editorial type. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* palette */
  --bg:            #1a1817;
  --surface:       #242220;
  --surface-hi:    #2c2a28;
  --border:        #3a3632;
  --text:          #f0ebe3;
  --text-muted:    #b8b0a4;
  --text-faint:    #7a7268;
  --accent:        #7a9a5c;
  --accent-soft:   #5a7a44;
  --gold:          #c4a44a;
  --gold-light:    #d4ba6a;

  /* type */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* rhythm */
  --gap:     1.5rem;
  --section: 8rem;
  --radius:  2px;
  --max-w:   1200px;

  --hero-h: 100vh;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 500; }
.section-label {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
p { color: var(--text-muted); }
p + p { margin-top: 1rem; }

/* ── Layout ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: var(--section) 0; }
.section-full { padding: var(--section) 2rem; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .4s, padding .4s;
  mix-blend-mode: difference;
}
.nav.scrolled {
  background: rgba(26,24,23,.92);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  mix-blend-mode: normal;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  position: relative;
  z-index: 110;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 30px; height: 22px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav.open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%; height: var(--hero-h);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,24,23,.25) 0%, rgba(26,24,23,.55) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}
.hero-content h1 {
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-content .hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-faint);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-scroll::before {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
}

/* ── Stat Bar ─────────────────────────────────────────── */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.stat-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: .3rem;
}

/* ── Section Headers ──────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ── Feature Cards (value-add sections) ───────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.feature:nth-child(even) { direction: rtl; }
.feature:nth-child(even) .feature-text { direction: ltr; }
.feature + .feature { border-top: 1px solid var(--border); }

.feature-media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.feature-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,24,23,.35);
  transition: background .3s;
}
.feature-media:hover .feature-play { background: rgba(26,24,23,.15); }
.feature-play-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, border-color .3s;
}
.feature-media:hover .feature-play-icon {
  transform: scale(1.08);
  border-color: var(--gold);
}
.feature-play-icon::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--text);
  margin-left: 3px;
}

.feature-text h3 { margin-bottom: 1rem; }
.feature-text p { margin-bottom: 1.5rem; }
.feature-cta {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.feature-cta:hover { color: var(--gold); border-color: var(--gold); }

/* ── Gallery ──────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--surface);
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── Media Placeholder ────────────────────────────────── */
.media-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--text-faint);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 8rem 0;
  background: var(--surface);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 500px; margin: 0 auto 2rem; }
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: .8rem; color: var(--text-faint); }

/* ── Subpage Hero (shorter) ───────────────────────────── */
.sub-hero {
  padding: 12rem 0 6rem;
  text-align: center;
}
.sub-hero h1 { margin-bottom: 1rem; }
.sub-hero .sub-hero-line {
  width: 60px; height: 1px;
  background: var(--accent);
  margin: 2rem auto 0;
}

/* ── Subpage Content ──────────────────────────────────── */
.sub-content { padding-bottom: var(--section); }
.sub-content .container { max-width: 800px; }
.sub-content h2 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}
.sub-content h2:first-child { margin-top: 0; }
.sub-content ul {
  list-style: none;
  padding: 0;
  color: var(--text-muted);
}
.sub-content ul li {
  padding: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.sub-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.sub-content .spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin: 2rem 0;
}
.sub-content .spec-item {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.sub-content .spec-key {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sub-content .spec-val {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}

/* ── Back Link ────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
  transition: color .3s;
}
.back-link:hover { color: var(--text); }
.back-link::before { content: '←'; font-size: 1rem; }

/* ── Reveal Animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section: 5rem; --hero-h: 80vh; }
  .nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; }

  /* Full-screen slide-in overlay menu */
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  }
  .nav.open { mix-blend-mode: normal; }
  .nav.open .nav-links { transform: translateX(0); }
  .nav-links a {
    font-family: var(--serif);
    font-size: 1.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
  }
  body.nav-open { overflow: hidden; }
  .feature { grid-template-columns: 1fr; gap: 2rem; direction: ltr; padding: 3rem 0; }
  .feature:nth-child(even) .feature-text { direction: ltr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sub-content .spec-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}
