/*
 * home.css — Godwin Eats
 * Styles specific to index.html (the homepage).
 * Requires global.css loaded first.
 *
 * Usage: <link rel="stylesheet" href="global.css">
 *        <link rel="stylesheet" href="home.css">
 *
 * Key differences from other pages:
 *  - Nav is FIXED (not sticky) and transitions on scroll via JS .scrolled class
 *  - Hero section with animated background, grid texture, glow
 *  - --max is overridden to 720px for the content sections below the hero
 *  - Accent bar is 2px (vs 3px on other pages) and includes --gold in gradient
 */

/* ─── MAX-WIDTH OVERRIDE ─── */
/* Homepage content columns sit at 720px, but nav inner stays at 1200px */
.site { max-width: var(--max); margin: 0 auto; padding: 0 0 60px; }

/* ─── ACCENT BAR (home variant — 2px, includes gold) ─── */
/* Overrides global.css 3px bar */
.accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--terra-dk), var(--terra), var(--terra-lt), var(--gold), var(--terra-lt), var(--terra-dk));
  background-size: 300% 100%;
  animation: bar-slide 8s linear infinite;
}

/* ─── NAV (fixed + scroll-aware, overrides global sticky nav) ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(245, 237, 224, 0);
  backdrop-filter: blur(0px);
  border-bottom: 0.5px solid rgba(201, 82, 26, 0);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: rgba(245, 237, 224, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 0.5px solid var(--border);
}

/* Logo starts cream (over hero), turns dark on scroll */
.nav-logo {
  color: rgba(245, 237, 224, 0.96);
  transition: color 0.4s;
}
nav.scrolled .nav-logo { color: var(--char); }
.nav-logo em { color: rgba(230, 110, 50, 0.95); transition: color 0.4s; }
nav.scrolled .nav-logo em { color: var(--terra); }

/* Nav links start cream (over hero), turn dark on scroll */
.nav-links a {
  color: rgba(245, 237, 224, 0.78);
  font-weight: 400;
}
nav.scrolled .nav-links a { color: var(--text2); }
.nav-links a:hover { color: var(--terra-lt); }
nav.scrolled .nav-links a:hover { color: var(--terra); }

/* Pip colour adapts too */
.nav-pip { background: var(--terra-lt); }
nav.scrolled .nav-pip { background: var(--terra); }

/* Hide dark-toggle inside .nav-links on mobile (it moves to .mob-controls) */
@media (max-width: 900px) {
  .nav-links .dark-toggle { display: none !important; }
}
@media (max-width: 680px) {
  .nav-links { display: none !important; }
  .hamburger-btn { display: flex !important; }
}

/* Dark mode nav on homepage */
body.dark nav.scrolled { background: rgba(20, 18, 16, 0.94) !important; }

/* ─── HERO ─── */
.hero {
  position: relative; width: 100%; height: 95vh; min-height: 620px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 65% 40%, #3d1a08 0%, transparent 70%),
    radial-gradient(ellipse 90% 90% at 20% 60%, #1c1814 0%, #2a1a10 100%);
  animation: heroshift 18s ease-in-out infinite alternate;
}
@keyframes heroshift { 0% { transform: scale(1); } 100% { transform: scale(1.03) translate(-1%, 0.5%); } }

/* Decorative grid texture overlay */
.hero-texture {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(245,237,224,0.5) 40px, rgba(245,237,224,0.5) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(245,237,224,0.5) 40px, rgba(245,237,224,0.5) 41px);
}

/* Warm glow spot in the hero */
.hero-glow {
  position: absolute; right: 10%; top: 25%; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,82,26,0.28) 0%, transparent 68%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes glow-pulse { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 1; transform: scale(1.08); } }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(28,24,20,0.88) 0%, rgba(28,24,20,0.4) 55%, rgba(28,24,20,0) 90%),
    linear-gradient(to top, rgba(28,24,20,0.72) 0%, rgba(28,24,20,0.1) 45%, rgba(28,24,20,0) 70%);
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(to bottom, rgba(245,237,224,0) 0%, var(--bg) 100%);
  pointer-events: none; z-index: 3;
}
body.dark .hero-fade {
  background: linear-gradient(to bottom, rgba(20,18,16,0) 0%, #141210 100%) !important;
}

.hero-content {
  position: relative; z-index: 5; width: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 28px 68px;
}
.hero-content-inner { max-width: 540px; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(201, 82, 26, 0.88); margin-bottom: 18px; font-weight: 500;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 9vw, 92px); font-weight: 400; line-height: 1;
  color: var(--cream); margin-bottom: 20px;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.35);
}
.hero-title em { font-style: italic; color: var(--terra-lt); }
.hero-sub {
  font-size: 15px; color: rgba(245, 237, 224, 0.62); max-width: 360px;
  line-height: 1.9; margin-bottom: 36px; font-weight: 300;
}
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 9px 22px; border-radius: 100px; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0.5px solid rgba(201, 82, 26, 0.42);
  background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px);
  color: rgba(245, 237, 224, 0.84); cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.pill:hover, .pill.active {
  background: rgba(201, 82, 26, 0.28);
  border-color: rgba(201, 82, 26, 0.72);
  color: var(--cream);
}

/* ─── CONTENT SECTIONS ─── */
.section { padding: 52px 32px; }
.section + .section { border-top: 0.5px solid var(--border); }
.sec-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 28px; font-weight: 500;
}

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.about-text { font-size: 15px; color: var(--text2); line-height: 1.92; font-weight: 300; }
.about-text strong { font-weight: 500; color: var(--text); }
.about-stat-block { display: flex; flex-direction: column; gap: 14px; }
.about-stat {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 18px 20px; border-left: 2px solid var(--terra);
}
.stat-num {
  font-family: 'DM Serif Display', serif; font-size: 36px; font-weight: 400;
  color: var(--char); line-height: 1; margin-bottom: 4px;
}
body.dark .stat-num { color: var(--cream); }
.stat-label { font-size: 12px; color: var(--text3); letter-spacing: 0.08em; }

/* ─── TOP SPOTS ─── */
.spots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spot-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 20px 18px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
}
.spot-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--terra); opacity: 0; transition: opacity 0.2s;
}
.spot-card:hover { border-color: var(--terra); background: var(--bg2); transform: translateY(-2px); }
.spot-card:hover::before { opacity: 1; }
.spot-cuisine {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 6px; font-weight: 500;
  background: rgba(201, 82, 26, 0.08); border: 0.5px solid var(--border2);
  border-radius: 100px; display: inline-block; padding: 2px 10px;
}
.spot-name {
  font-family: 'DM Serif Display', serif; font-size: 19px; font-weight: 400;
  color: var(--char); margin-bottom: 4px; line-height: 1.2;
}
body.dark .spot-name { color: var(--cream); }
.spot-name em { font-style: italic; }
.spot-neighbourhood { font-size: 12px; color: var(--text3); margin-bottom: 12px; }
.spot-score {
  font-family: 'DM Serif Display', serif; font-size: 26px; font-weight: 400;
  color: var(--terra); line-height: 1;
}

/* ─── JOURNAL PREVIEW ─── */
.blog-grid { display: grid; gap: 14px; }
.blog-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 22px 24px; text-decoration: none; display: block;
  transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden;
}
.blog-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--terra); border-radius: 2px 0 0 2px;
}
.blog-card:hover { border-color: var(--border2); background: var(--bg2); }
.blog-tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 8px; display: block; font-weight: 500;
}
.blog-title {
  font-family: 'DM Serif Display', serif; font-size: 21px; font-weight: 400;
  color: var(--text); line-height: 1.3; margin-bottom: 8px;
}
.blog-excerpt { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300; margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--text3); display: flex; gap: 16px; align-items: center; }
.blog-arrow { margin-left: auto; font-size: 16px; color: var(--border2); transition: transform 0.2s, color 0.2s; }
.blog-card:hover .blog-arrow { transform: translateX(4px); color: var(--terra); }

.view-all {
  display: inline-block; margin-top: 20px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terra); text-decoration: none;
  border-bottom: 0.5px solid var(--border2); padding-bottom: 2px; transition: border-color 0.2s;
}
.view-all:hover { border-color: var(--terra); }

/* ─── FOOTER (homepage variant — has margin-top) ─── */
footer {
  margin-top: 40px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .about-grid, .spots-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 20px; }
  footer { padding: 20px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-center { display: none; }
  .hero-title { font-size: clamp(46px, 13vw, 72px); }
}
