/* =========================================================================
   Little Egypt Rising — Southern Illinois Tourism
   Shared stylesheet for all pages
   ========================================================================= */

:root {
  /* Earthy, atmospheric palette */
  --color-dark-blue:      #16222e;
  --color-dark-blue-2:    #0e1620;
  --color-deep-green:     #2a3a2e;
  --color-deep-green-2:   #1e2b24;
  --color-warm-brown:     #5b3f29;
  --color-warm-brown-2:   #3d2a1c;
  --color-sandstone:      #c4a06e;
  --color-sandstone-light:#e7d3ad;
  --color-muted-gold:     #c49b4a;
  --color-cream:          #f4ecdd;
  --color-cream-dim:      #e3d7c0;
  --color-ink:            #1b1712;

  --color-bg:             #12100d;
  --color-surface:        #1b1814;
  --color-surface-alt:    #221e18;
  --color-border:         rgba(228, 211, 173, 0.14);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 18px 42px rgba(0, 0, 0, 0.45);

  --max-width: 1240px;
}

/* ---------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-cream-dim);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------- Header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 15, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(228, 211, 173, 0.35);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  white-space: nowrap;
}

.brand-name .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-cream-dim);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(196, 155, 74, 0.14);
  color: var(--color-muted-gold);
}

.main-nav a.active {
  background: rgba(196, 155, 74, 0.18);
  color: var(--color-muted-gold);
}

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

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-cream);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 12, 0.55) 0%,
    rgba(10, 14, 12, 0.35) 40%,
    rgba(10, 12, 10, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sandstone-light);
  margin-bottom: 22px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-sandstone);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--color-cream);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 0.35em;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-cream-dim);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero.hero-page {
  min-height: 46vh;
}

.hero.hero-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* Small hero logo badge shown on homepage hero only */
.hero-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 2px solid rgba(228, 211, 173, 0.45);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--color-muted-gold);
  color: #1b1712;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 155, 74, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(244, 236, 221, 0.4);
}

.btn-ghost:hover {
  border-color: var(--color-muted-gold);
  color: var(--color-muted-gold);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-muted-gold);
  padding-top: 4px;
}

.card-link .arrow { transition: transform 0.18s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------- Section base -- */
section { padding: 88px 0; }

.section-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-intro .eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: 14px;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--color-cream);
}

.section-intro p {
  color: var(--color-cream-dim);
  font-size: 1.08rem;
}

.page-intro {
  padding: 72px 0 20px;
  text-align: center;
}

.page-intro .eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: 16px;
}

.page-intro h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  color: var(--color-cream);
}

.page-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-cream-dim);
  font-size: 1.1rem;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ------------------------------------------------------------ Gateway grid (home) -- */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gateway-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gateway-card:hover,
.gateway-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.gateway-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gateway-card:hover img { transform: scale(1.06); }

.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 10, 0.05) 0%,
    rgba(10, 12, 10, 0.55) 55%,
    rgba(8, 9, 8, 0.92) 100%
  );
}

.gateway-card-body {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  width: 100%;
}

.gateway-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sandstone-light);
  background: rgba(196, 160, 110, 0.16);
  border: 1px solid rgba(196, 160, 110, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.gateway-card h3 {
  font-size: 1.7rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.gateway-card p {
  color: var(--color-cream-dim);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- Cards grid (subpages) -- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(196, 155, 74, 0.4);
}

.content-card .card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.content-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-card:hover .card-image img { transform: scale(1.05); }

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

.content-card h3 {
  font-size: 1.25rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.content-card p {
  color: var(--color-cream-dim);
  font-size: 0.96rem;
  margin-bottom: 16px;
  flex: 1;
}

/* --------------------------------------------------------- Theme accents -- */
.theme-history .section-intro .eyebrow,
.theme-history .page-intro .eyebrow { color: var(--color-sandstone); }
.theme-folklore .section-intro .eyebrow,
.theme-folklore .page-intro .eyebrow { color: #8fa3b0; }
.theme-spirit .section-intro .eyebrow,
.theme-spirit .page-intro .eyebrow { color: var(--color-muted-gold); }

/* ------------------------------------------------------------- Highlights (home) -- */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight-item {
  padding: 30px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.highlight-item .glyph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(196, 155, 74, 0.14);
  border: 1px solid rgba(196, 155, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.highlight-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-cream);
}

.highlight-item p {
  color: var(--color-cream-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------- CTA band -- */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--color-deep-green-2), var(--color-dark-blue-2));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band h2 {
  color: var(--color-cream);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--color-cream-dim);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* --------------------------------------------------------------- Footer -- */
.site-footer {
  background: var(--color-dark-blue-2);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  width: 52px;
  height: 52px;
}

.footer-brand h3 {
  font-size: 1.15rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--color-cream-dim);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a,
.footer-col address {
  color: var(--color-cream-dim);
  font-size: 0.92rem;
  font-style: normal;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--color-muted-gold); }

.footer-col p.placeholder-note {
  color: rgba(227, 215, 192, 0.55);
  font-size: 0.82rem;
  margin-top: 6px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-cream-dim);
}

.social-row a:hover {
  border-color: var(--color-muted-gold);
  color: var(--color-muted-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(227, 215, 192, 0.6);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------- Utilities -- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ---------------------------------------------------------- Responsive -- */
@media (max-width: 980px) {
  .card-grid,
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .gateway-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(14, 18, 15, 0.98);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }

  .site-header.nav-open .main-nav a { width: 100%; }

  section { padding: 64px 0; }

  .card-grid,
  .highlights { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.05rem; }
  .hero { min-height: 82vh; }
}
