/* ═══════════════════════════════════════
   VISIT WEST VIRGINIA — wv.css
   Palette: Purple & White
   Layout: Disney World-inspired
═══════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --purple:        #5b21b6;
  --purple-hover:  #3b0f8c;
  --purple-mid:    #7c3aed;
  --purple-light:  #ede9fe;
  --purple-bg:     #c4b5fd;
  --purple-dark:   #2e1065;

  --text-dark:    #1a1a2e;
  --text-mid:     #4b4b6a;
  --text-light:   #7c7c9a;
  --bg-page:      #f9f8ff;
  --bg-surface:   #ffffff;
  --bg-surface-2: #f3f0fb;
  --border:       #ddd6fe;
  --border-subtle:#ede9fe;

  --nav-height: 64px;
  --radius-card: 16px;
  --shadow-sm: 0 2px 12px rgba(91,33,182,0.07);
  --shadow-md: 0 8px 28px rgba(91,33,182,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.7;
}

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

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: 'Bree Serif', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'Lora', serif;
  font-size: .8rem;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.nav-links a:hover {
  background: var(--purple-light);
  color: var(--purple);
}
.nav-links .nav-cta {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}
.nav-links .nav-cta:hover { background: var(--purple-hover); }

/* Hamburger button */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 510;
}
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .22s;
}
.nav-ham.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer (EcoLinces style) ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s ease;
}
.drawer-overlay.visible { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 86vw);
  z-index: 500;
  background: var(--bg-surface);
  border-radius: 0 52px 52px 0;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 48px rgba(91,33,182,.13), 2px 0 8px rgba(91,33,182,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 44px 48px;
  transform: translateX(-110%);
  transition: transform .42s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  overflow: hidden;
}
.drawer.open {
  transform: translateX(0);
  pointer-events: all;
}

.drawer-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .25s .1s, background .18s, transform .18s;
}
.drawer.open .drawer-close { opacity: 1; }
.drawer-close:hover { background: var(--purple-light); transform: rotate(90deg); }

.drawer-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 28px;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 36px;
}
.drawer-nav li { overflow: hidden; }
.drawer-nav a {
  font-family: 'Bree Serif', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  padding: 8px 0;
  line-height: 1.15;
  position: relative;
  opacity: 0;
  transform: translateX(-28px);
  transition: color .2s, opacity .38s, transform .38s cubic-bezier(.22,1,.36,1);
}
.drawer-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 2px;
  background: var(--purple);
  transition: width .28s cubic-bezier(.22,1,.36,1);
}
.drawer-nav a:hover { color: var(--purple); }
.drawer-nav a:hover::after { width: 100%; }

.drawer.open .drawer-nav li:nth-child(1) a { opacity:1; transform:translateX(0); transition-delay:.08s; }
.drawer.open .drawer-nav li:nth-child(2) a { opacity:1; transform:translateX(0); transition-delay:.14s; }
.drawer.open .drawer-nav li:nth-child(3) a { opacity:1; transform:translateX(0); transition-delay:.20s; }
.drawer.open .drawer-nav li:nth-child(4) a { opacity:1; transform:translateX(0); transition-delay:.26s; }
.drawer.open .drawer-nav li:nth-child(5) a { opacity:1; transform:translateX(0); transition-delay:.32s; }
.drawer.open .drawer-nav li:nth-child(6) a { opacity:1; transform:translateX(0); transition-delay:.38s; }

.drawer-divider {
  width: 40px; height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 24px;
}

.drawer-meta {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.6;
}
.drawer-meta strong { color: var(--purple); }

/* ══════════════════════════════════════
   HERO  (Disney: imagen grande + texto flotante)
══════════════════════════════════════ */
.hero {
  margin-top: var(--nav-height);
  position: relative;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,5,70,.88) 0%,
    rgba(60,10,120,.22) 52%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 0 6vw 64px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(196,181,253,.18);
  border: 1px solid rgba(196,181,253,.4);
  color: var(--purple-bg);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: 'Bree Serif', serif;
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  color: #fff;
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin-bottom: 16px;
}
.hero-sub {
  font-style: italic;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 32px;
}
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .78rem;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: default;
  transition: background .2s;
}
.pill:hover { background: rgba(255,255,255,.22); }

/* ══════════════════════════════════════
   DISNEY-STYLE: Feature Row
   (texto izquierda / imagen derecha, alternando)
══════════════════════════════════════ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  min-height: 420px;
  align-items: stretch;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface);
}
.feature.alt .feature-text { background: var(--bg-surface-2); }

.feature-img {
  overflow: hidden;
}
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.feature:hover .feature-img img { transform: scale(1.03); }

/* ══════════════════════════════════════
   SHARED SECTION PARTS
══════════════════════════════════════ */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 5vw;
}

.sec-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'Bree Serif', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--purple);
  line-height: 1.18;
  margin-bottom: 16px;
}
.sec-body {
  color: var(--text-mid);
  font-size: .9rem;
  max-width: 520px;
}
.sec-divider {
  width: 36px; height: 3px;
  background: var(--purple-mid);
  border-radius: 2px;
  margin: 18px 0 22px;
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--purple-dark);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.06); }
.stat-num {
  font-family: 'Bree Serif', serif;
  font-size: 2rem;
  color: var(--purple-bg);
  display: block;
}
.stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   CARD GRID  (Cuisine, Culture)
══════════════════════════════════════ */
.section-block {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-block:last-of-type { border-bottom: none; }

.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-img {
  height: 160px;
  overflow: hidden;
}
.card-img img { height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h4 {
  font-family: 'Bree Serif', serif;
  font-size: .98rem;
  color: var(--purple);
  margin-bottom: 6px;
}
.card-body p { font-size: .8rem; color: var(--text-light); }

/* ── Culture cards (no image) ── */
.culture-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.culture-card h3 {
  font-family: 'Bree Serif', serif;
  font-size: 1.1rem;
  color: var(--purple);
  margin-bottom: 10px;
}
.culture-card p { font-size: .85rem; color: var(--text-mid); }
.culture-card .culture-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-mid);
  border-top: 2px solid var(--purple-light);
  padding-top: 8px;
}

/* ── Legend cards (folklore) ── */
.legend-card {
  border-left: 3px solid var(--purple-mid);
  padding: 24px 28px;
  background: var(--bg-surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: var(--shadow-sm);
}
.legend-card h3 {
  font-family: 'Bree Serif', serif;
  font-size: 1rem;
  color: var(--purple);
  margin-bottom: 8px;
}
.legend-card p { font-size: .84rem; color: var(--text-mid); }

/* ── Author cards ── */
.author-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.author-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  padding: 30px 26px 22px;
  color: #fff;
}
/* ── Map float inside feature-img ── */
.feature-img--map {
  position: relative;
}
.feature-img--map .feature-img__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.map-float {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 54%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  border: 3px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.map-float:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.map-float img { display: block; width: 100%; }

@media (max-width: 860px) {
  .feature-img--map { height: 360px; }
  .map-float { width: 62%; bottom: 16px; left: 16px; }
}

/* ── Map float hint ── */
.map-float__hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: 'Lora', serif;
  font-size: .65rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.35);
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img-wrap {
  max-width: min(960px, 96vw);
  max-height: 92vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform .32s cubic-bezier(.34,1.4,.64,1);
}
.lightbox.open .lightbox__img-wrap {
  transform: scale(1);
}
.lightbox__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .18s;
  backdrop-filter: blur(6px);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

/* ── Author img ── */
.author-img {
  height: 220px;
  overflow: hidden;
}
.author-img img { height: 100%; object-fit: cover; object-position: top; }

.author-header h3 {
  font-family: 'Bree Serif', serif;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.author-header span { font-size: .75rem; opacity: .75; font-style: italic; }
.author-body { padding: 22px 26px; }
.author-body p { font-size: .83rem; color: var(--text-mid); margin-bottom: 10px; }
.work-tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 3px 3px 3px 0;
}

/* ── Totem banner ── */
.totem-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  color: #fff;
}
.totem-banner .sec-title { color: var(--purple-bg); }
.totem-banner .sec-body { color: rgba(255,255,255,.78); max-width: 100%; }
.totem-banner p { color: rgba(255,255,255,.78); font-size: .87rem; margin-bottom: 12px; }
.totem-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,.5);
  padding: 40px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer strong { color: #fff; }
.footer-logo {
  font-family: 'Bree Serif', serif;
  font-size: 1.05rem;
  color: var(--purple-bg);
  font-weight: 700;
}
.footer-team { font-size: .78rem; }

/* ══════════════════════════════════════
   HERO SLIDESHOW
══════════════════════════════════════ */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp .65s cubic-bezier(.34,1.4,.64,1) .05s both; }
.hero h1      { animation: fadeUp .65s cubic-bezier(.34,1.4,.64,1) .18s both; }
.hero-sub     { animation: fadeUp .65s cubic-bezier(.34,1.4,.64,1) .30s both; }
.hero-pills   { animation: fadeUp .65s cubic-bezier(.34,1.4,.64,1) .42s both; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-ham   { display: flex; }

  .feature, .feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }
  .feature-img { height: 260px; }
  .feature-text { padding: 40px 28px; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .totem-banner { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
}

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