/* =============================================================
   701 Rolling Green Drive — Shared Styles
   Mobile-first. Progressive enhancement up to desktop.
   ============================================================= */

:root {
  --ink: #1a2332;
  --ink-soft: #2a3548;
  --slate: #475569;
  --slate-light: #94a3b8;
  --rule: #e5dfd1;
  --gold: #b08938;
  --gold-soft: #d4b66a;
  --cream: #faf7f0;
  --cream-deep: #f4efe4;
  --river: #2d5f7c;
  --river-deep: #1d4a66;
  --river-light: #4a8aab;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 30, 50, 0.06);
  --shadow: 0 8px 30px rgba(20, 30, 50, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 30, 50, 0.18);

  --font-serif: "Cormorant Garamond", Georgia, "Iowan Old Style", "Hoefler Text", serif;
  --font-sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 64px;
}

@font-face { font-display: swap; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--river); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--river); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; }

/* =============================================================
   NAVIGATION — Sticky top, mobile drawer
   ============================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255, 255, 255, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
}

.nav-brand .num {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand .sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle span:nth-child(1) { width: 22px; margin-left: auto; }
.nav-toggle span:nth-child(2) { width: 18px; margin-left: auto; }
.nav-toggle span:nth-child(3) { width: 22px; margin-left: auto; }

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 101;
  padding: var(--nav-height) 20px 20px;
}

.nav-menu.open { transform: translateX(0); }

.nav-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color var(--transition);
}

.nav-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu.open a:nth-child(1) { transition-delay: 0.15s; }
.nav-menu.open a:nth-child(2) { transition-delay: 0.20s; }
.nav-menu.open a:nth-child(3) { transition-delay: 0.25s; }
.nav-menu.open a:nth-child(4) { transition-delay: 0.30s; }
.nav-menu.open a:nth-child(5) { transition-delay: 0.35s; }
.nav-menu.open a:nth-child(6) { transition-delay: 0.40s; }
.nav-menu.open a:nth-child(7) { transition-delay: 0.45s; }

.nav-menu a:hover { color: var(--gold-soft); }
.nav-menu a.active { color: var(--gold-soft); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  width: 32px; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

.nav-cta {
  display: none;
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    flex-direction: row;
    background: transparent;
    transform: none;
    padding: 0;
    gap: 32px;
    justify-content: flex-end;
    flex: 1;
  }
  .nav-menu a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    opacity: 1;
    transform: none;
    letter-spacing: 0.02em;
  }
  .nav-menu a:hover { color: var(--gold); }
  .nav-menu a.active { color: var(--river); }
  .nav-menu a.active::after {
    background: var(--gold);
    bottom: -6px;
    width: 24px;
  }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--white) !important;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
  }
}

/* =============================================================
   LAYOUT
   ============================================================= */

main { padding-top: var(--nav-height); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section-tight { padding: 40px 0; }

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h3 { color: var(--gold-soft); }
.section-dark p { color: rgba(255,255,255,0.78); }

.section-cream { background: var(--cream-deep); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--slate);
  font-style: italic;
  margin: 0 0 32px;
  font-weight: 400;
}

.section-dark .lede { color: rgba(255,255,255,0.85); }

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #1a2332 0%, #2d5f7c 100%);
  background-image: var(--hero-bg-image, none), linear-gradient(135deg, #1a2332 0%, #2d5f7c 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(26,35,50,0.45) 0%, rgba(26,35,50,0.25) 40%, rgba(26,35,50,0.85) 100%);
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 1s 0.2s ease-out forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 18px;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1s 0.4s ease-out forwards;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 300;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: rgba(255,255,255,0.88);
  font-style: italic;
  max-width: 640px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 1s 0.6s ease-out forwards;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1s 0.8s ease-out forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease-out forwards;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: var(--gold-soft);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

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

@keyframes fadeIn {
  to { opacity: 1; }
  from { opacity: 0; }
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #c89f4f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 137, 56, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--river);
  color: var(--white);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* =============================================================
   STATS
   ============================================================= */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.section-dark .stat {
  background: rgba(255,255,255,0.05);
  border-top-color: var(--gold);
  backdrop-filter: blur(8px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--river);
  display: block;
  line-height: 1;
}

.section-dark .stat-num { color: var(--gold-soft); }

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
  display: block;
  font-weight: 600;
}

.section-dark .stat-label { color: rgba(255,255,255,0.7); }

/* =============================================================
   CARDS / GRID
   ============================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--river), var(--ink));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.card-img-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(26,35,50,0.85);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
  font-weight: 600;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.card-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card-meta .dot {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 8px;
}

.card-body p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-link {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--river);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: "→";
  transition: transform var(--transition);
}

.card:hover .card-link::after { transform: translateX(4px); }

/* Compact card (for venues, schools) */
.card-compact {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-compact:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.card-compact h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}

.card-compact .meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0 0 12px;
}

.card-compact p {
  font-size: 0.93rem;
  color: var(--slate);
  margin: 0;
}

/* =============================================================
   FEATURE BLOCKS (alternating image/text)
   ============================================================= */

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 80px;
}

@media (min-width: 850px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature.reverse .feature-img { order: 2; }
}

.feature-img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--river), var(--ink));
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.feature-img.landscape { aspect-ratio: 4 / 3; }

.feature-body h2 { margin-bottom: 12px; }
.feature-body .eyebrow { margin-bottom: 12px; }
.feature-body ul { padding-left: 20px; margin: 16px 0; }
.feature-body li { margin-bottom: 8px; color: var(--slate); }

/* =============================================================
   PULLQUOTE
   ============================================================= */

.pullquote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.4;
  color: var(--river);
  font-style: italic;
  font-weight: 400;
}

.section-dark .pullquote { color: var(--gold-soft); }

/* =============================================================
   TABLES
   ============================================================= */

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

th {
  background: var(--cream-deep);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(176, 137, 56, 0.04); }

td.right { text-align: right; }
td strong { color: var(--ink); }

/* =============================================================
   IMAGE GRID
   ============================================================= */

.img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 32px 0;
}

@media (min-width: 600px) {
  .img-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .img-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.img-tile {
  aspect-ratio: 4 / 3;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}

.img-tile:hover { transform: scale(1.02); }

.img-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.img-tile:hover::after { opacity: 1; }

.img-tile-caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.img-tile:hover .img-tile-caption {
  opacity: 1;
  transform: translateY(0);
}

.caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--slate);
  font-style: italic;
  text-align: center;
  margin: 8px 0 24px;
}

/* =============================================================
   STICKY CTA (mobile only)
   ============================================================= */

.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(20px);
}

.sticky-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta .btn {
  box-shadow: 0 10px 30px rgba(26, 35, 50, 0.3);
  width: 100%;
  justify-content: center;
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--gold-soft); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* =============================================================
   ANIMATIONS (intersection observer)
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* =============================================================
   UTILITIES
   ============================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 24px 0;
}

.divider-center {
  margin: 24px auto;
}

.section-dark .divider { background: var(--gold-soft); }

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--river);
  border-bottom-color: var(--gold);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel.active { display: block; }

/* =============================================================
   LIGHTBOX
   ============================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.95);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lb-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lb-stage figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
  padding: 0;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* Reduce motion preference */
@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;
  }
}
