/* =========================================================================
   Cass House AR — shared stylesheet
   Editorial-outdoors design system: warm paper, forest green, clay accent.
   ========================================================================= */

:root {
  /* ---- Color: River & Pine palette ---- */
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-raised: #fbf6ec;
  --border: #e4dac6;
  --border-strong: #d3c6ab;

  --text: #20281d;
  --text-secondary: #54604d;
  --text-muted: #8a917f;

  --forest: #1e2a1c;          /* deep pine — dark sections */
  --forest-soft: #2c3b29;
  --moss: #4a6741;            /* mid green accents */

  --accent: #c2683a;          /* clay / sandstone */
  --accent-hover: #a9542c;
  --accent-subtle: rgba(194, 104, 58, 0.10);

  --river: #3c6e87;           /* muted river blue */
  --river-subtle: rgba(60, 110, 135, 0.10);

  --gold: #d9a441;            /* rating star */

  /* ---- Typography scale (1.25 ratio) ---- */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.55rem;
  --text-2xl: clamp(1.7rem, 3.2vw, 2.3rem);
  --text-3xl: clamp(2.1rem, 4.6vw, 3.2rem);
  --text-4xl: clamp(2.6rem, 7vw, 5rem);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Commissioner', 'Segoe UI', system-ui, sans-serif;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ---- */
  --max: 1180px;
  --max-narrow: 760px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(32, 40, 29, 0.06), 0 2px 8px rgba(32, 40, 29, 0.05);
  --shadow-md: 0 4px 14px rgba(32, 40, 29, 0.10), 0 12px 32px rgba(32, 40, 29, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 160ms var(--ease);
  --t-base: 300ms var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--space-6); }
.narrow { max-width: var(--max-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center-rule { justify-content: center; }

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.muted { color: var(--text-muted); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(4px); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: #fff; }

.btn svg { width: 1.1em; height: 1.1em; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(246, 241, 231, 0.94); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .brand-mark { color: var(--accent); }
.brand small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.4em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-cta { margin-left: var(--space-2); }
.nav-cta .btn { padding: 0.6em 1.15em; font-size: var(--text-sm); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) var(--space-6) var(--space-6);
    transform: translateY(-130%);
    transition: transform var(--t-base);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); font-size: var(--text-lg); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .nav-cta { margin: var(--space-4) 0 0; }
  .nav-cta .btn { width: 100%; padding: 0.9em; font-size: var(--text-base); }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  color: #f3efe4;
  isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  /* Gradient fallback layered ABOVE the photo so it looks designed even
     before images/hero.jpg exists. Swap/keep the url as you like. */
  background:
    linear-gradient(180deg, rgba(20,28,18,0.30) 0%, rgba(20,28,18,0.55) 55%, rgba(18,24,16,0.86) 100%),
    radial-gradient(120% 80% at 70% 10%, #3a5236 0%, #243024 45%, #182116 100%),
    var(--forest);
  background-size: cover;
  background-position: center;
}
.hero.has-photo {
  background:
    linear-gradient(180deg, rgba(20,28,18,0.25) 0%, rgba(20,28,18,0.5) 55%, rgba(18,24,16,0.86) 100%),
    var(--forest) url('images/hero.jpg');
  background-size: cover, cover;
  background-position: center, center;
}
.hero-topo {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
}
.hero-inner { padding-block: var(--space-24) var(--space-16); }
.hero .eyebrow { color: #ecc9a3; }
.hero .eyebrow::before { background: #ecc9a3; }
.hero h1 {
  font-size: var(--text-4xl);
  color: #fff;
  font-weight: 600;
  margin-top: var(--space-4);
  letter-spacing: -0.025em;
}
.hero .hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #e8e2d3;
  max-width: 36ch;
  margin-top: var(--space-4);
  font-weight: 300;
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: #d8d2c2;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #b9b09a; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.35em 0.85em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
}
.rating-chip .star { color: var(--gold); }

/* =========================================================================
   Generic page banner (sub pages)
   ========================================================================= */
.page-banner {
  position: relative;
  color: #f3efe4;
  isolation: isolate;
  padding-block: clamp(4rem, 11vw, 7.5rem) clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, rgba(20,28,18,0.55), rgba(18,24,16,0.9)),
    radial-gradient(110% 90% at 75% 0%, #3a5236, #1e2a1c 60%);
}
.page-banner .topo { position: absolute; inset: 0; z-index: -1; opacity: 0.16; }
.page-banner h1 { color: #fff; font-size: var(--text-3xl); margin-top: var(--space-3); }
.page-banner p { color: #e0dac9; max-width: 56ch; margin-top: var(--space-4); font-size: var(--text-lg); }
.page-banner .eyebrow { color: #ecc9a3; }
.page-banner .eyebrow::before { background: #ecc9a3; }

.breadcrumb { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-bottom: var(--space-4); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* =========================================================================
   Section heading block
   ========================================================================= */
.section-head { max-width: 60ch; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: var(--text-3xl); margin-top: var(--space-3); }
.section-head p { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--text-secondary); }

/* =========================================================================
   Cards / grids
   ========================================================================= */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card p { color: var(--text-secondary); }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.icon-badge.river { background: var(--river-subtle); color: var(--river); }
.icon-badge.moss { background: rgba(74,103,65,0.12); color: var(--moss); }
.icon-badge svg { width: 24px; height: 24px; }

/* Amenities — compact list */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}
.amenities li svg { width: 22px; height: 22px; color: var(--moss); flex-shrink: 0; }
.amenities li small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--text-xs); }

/* Feature cards that link to other pages */
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  border: 1px solid var(--border);
}
.explore-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  transition: transform var(--t-base);
}
.explore-card:hover { color: #fff; }
.explore-card:hover::after { transform: scale(1.06); }
.explore-card .veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,28,18,0.1) 0%, rgba(18,24,16,0.82) 100%);
}
.explore-card.river-card::after { background: radial-gradient(120% 100% at 30% 20%, #4a7e96, #274f61 60%, #1b3a48); }
.explore-card.trails-card::after { background: radial-gradient(120% 100% at 30% 20%, #8a5a36, #5e3b22 60%, #3c2615); }
.explore-card.area-card::after { background: radial-gradient(120% 100% at 30% 20%, #5a7b4f, #3a5733 60%, #243a1f); }
.explore-card .ec-label { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); font-weight: 600; }
.explore-card h3 { color: #fff; font-size: var(--text-2xl); margin: var(--space-2) 0 var(--space-3); }
.explore-card p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); }
.explore-card .ec-go { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: #fff; }
.explore-card .ec-go svg { width: 1em; height: 1em; transition: transform var(--t-fast); }
.explore-card:hover .ec-go svg { transform: translateX(4px); }

/* =========================================================================
   Split / feature rows
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.narrow-text { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 820px) { .split, .split.narrow-text { grid-template-columns: 1fr; } }

.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.12)),
    radial-gradient(120% 120% at 20% 10%, #5a7b4f, #2f4a2a 70%);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.media.river-tone { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.12)), radial-gradient(120% 120% at 20% 10%, #4a7e96, #234a5b 70%); }
.media.clay-tone { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.12)), radial-gradient(120% 120% at 20% 10%, #b07043, #6e4124 70%); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .media-note {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.media .media-note svg { width: 28px; height: 28px; opacity: 0.85; }

/* =========================================================================
   Dark band (CTA / quote)
   ========================================================================= */
.band {
  background: var(--forest);
  color: #f1ede2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.band .topo { position: absolute; inset: 0; z-index: -1; opacity: 0.14; }
.band h2 { color: #fff; }
.band p { color: #d7d1c2; }
.band .eyebrow { color: #ecc9a3; }
.band .eyebrow::before { background: #ecc9a3; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  font-style: italic;
  text-wrap: balance;
}
.quote-cite { margin-top: var(--space-6); font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.06em; color: #c7c0af; font-style: normal; }
.quote-stars { color: var(--gold); font-size: var(--text-lg); letter-spacing: 0.1em; margin-bottom: var(--space-6); }

/* =========================================================================
   Content prose (sub pages)
   ========================================================================= */
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-12); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); }
.prose p { color: var(--text-secondary); }
.prose ul { padding-left: 1.25em; color: var(--text-secondary); }
.prose ul li { margin-top: var(--space-2); }
.prose strong { color: var(--text); font-weight: 600; }

/* Fact list / spec rows */
.specs { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.specs li .k { color: var(--text-secondary); }
.specs li .v { font-weight: 600; text-align: right; }

/* Info callout */
.callout {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.callout.river-note { border-left-color: var(--river); }
.callout h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-2); }
.callout p { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }

/* Difficulty / season pills */
.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3em 0.7em;
  border-radius: 100px;
  background: var(--accent-subtle);
  color: var(--accent);
}
.pill.green { background: rgba(74,103,65,0.12); color: var(--moss); }
.pill.blue { background: var(--river-subtle); color: var(--river); }

/* Distance/stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.stat-strip li {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-strip .num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--accent); display: block; }
.stat-strip .lbl { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-1); }

/* =========================================================================
   Booking cards
   ========================================================================= */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.book-card .platform { font-family: var(--font-display); font-size: var(--text-2xl); }
.book-card .rating { display: flex; align-items: center; gap: 0.4em; margin: var(--space-2) 0 var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); }
.book-card .rating .star { color: var(--gold); }
.book-card p { color: var(--text-secondary); margin-bottom: var(--space-6); }
.book-card .btn { margin-top: auto; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--forest);
  color: #cfc9ba;
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.site-footer .brand { color: #fff; font-size: 1.6rem; }
.site-footer .brand small { color: #9a9482; }
.site-footer p { color: #aaa492; font-size: var(--text-sm); margin-top: var(--space-3); max-width: 36ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f897a;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: #d3cdbe; font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: #837d6f;
}

/* =========================================================================
   Photo gallery + lightbox
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.gallery button {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-raised);
  aspect-ratio: 3 / 2;
  display: block;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 20, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lightbox .lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: var(--space-6); right: var(--space-6); }
.lightbox .lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: var(--space-6); left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: var(--text-sm); }
@media (max-width: 600px) {
  .lightbox .lb-prev { left: var(--space-2); }
  .lightbox .lb-next { right: var(--space-2); }
}

/* =========================================================================
   Contact form
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field .req { color: var(--accent); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.8em 0.9em;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; } /* honeypot */

.form-status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.success { background: var(--color-success-bg, rgba(61,139,94,0.1)); color: #3d8b5e; border: 1px solid rgba(61,139,94,0.3); }
.form-status.info { background: var(--accent-subtle); color: var(--accent-hover); border: 1px solid rgba(194,104,58,0.3); }

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-aside h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-of-type { border-bottom: none; }
.contact-method .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; }
.contact-method .cm-label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-method .cm-value { font-weight: 600; word-break: break-word; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
