/* ============================================================
   VOLCOHOLICS — Global Stylesheet
   Single source of truth for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&display=swap');

/* ── TOKENS ── */
:root {
  --lava:        #C04828;
  --lava-bright: #E05A30;
  --lava-dim:    #7a2e18;
  --ash:         #1a1714;
  --ash-mid:     #242018;
  --ash-light:   #2e2a24;
  --stone:       #3d3830;
  --dust:        #8a8278;
  --smoke:       #b5afa6;
  --paper:       #e8e2d9;
  --white:       #f5f0ea;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --max-width:    1200px;
  --nav-height:   64px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }

/* ── HEADINGS — Playfair Display across all pages ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
/* Display/hero headings that use Barlow Condensed keep their own class overrides */

/* ── BASE ── */
body {
  background: var(--ash);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Lava atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 60%, rgba(192,72,40,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(192,72,40,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.site-shell { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,23,20,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192,72,40,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text { letter-spacing: 0; }
.nav-logo-volco { color: var(--white); }
.nav-logo-holics { color: var(--lava-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color .2s;
}
.nav-links a:hover  { color: var(--white); }
.nav-links a.active { color: var(--lava-bright); }

.nav-cta {
  background: var(--lava) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--lava-bright) !important; }

.nav-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lava-bright);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lava-bright);
  animation: blink 1.4s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lava);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--lava-bright); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(181,175,166,0.35);
  color: var(--smoke);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--smoke); color: var(--white); }

/* ── GLOBAL HERO (image heroes — homepage, mods, any future page) ── */
/* Use .site-hero on any full-bleed image hero. min-height ensures    */
/* content never clips; padding guarantees 50px clearance always.     */
.site-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 50px) 40px 56px;
  overflow: hidden;
  z-index: 1;
}
.site-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,23,20,0.1) 0%, rgba(26,23,20,0.65) 100%);
  z-index: 0;
}
.site-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
}
@media(max-width: 768px) {
  .site-hero { min-height: 360px; padding: calc(var(--nav-height) + 32px) 20px 40px; }
}

/* ── PAGE HERO (text-only inner pages — no background image) ── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 50px) 40px 50px;
  border-bottom: 1px solid var(--stone);
  background: var(--ash-mid);
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lava);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--lava-dim);
}

/* ── HEADINGS ── */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 16px;
}
.page-title span { color: var(--lava); }

.page-subtitle {
  font-size: 17px;
  color: var(--smoke);
  font-weight: 300;
  line-height: 1.7;
  max-width: 580px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.section-title span { color: var(--lava); }

/* ── MAIN CONTENT WRAPPER ── */
.main-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px;
}

/* ── FILTER BAR ── */
.filter-bar {
  position: relative;
  z-index: 1;
  background: var(--ash-mid);
  border-bottom: 1px solid var(--stone);
  padding: 0 40px;
}
.filter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--dust);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover  { border-color: var(--smoke); color: var(--smoke); }
.filter-btn.active { background: var(--lava); border-color: var(--lava); color: #fff; }

/* ── STATUS BADGES ── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-erupting { background: rgba(192,72,40,0.2);  color: #E05A30; border: 1px solid rgba(192,72,40,0.4); }
.status-ongoing  { background: rgba(192,72,40,0.12); color: #c86040; border: 1px solid rgba(192,72,40,0.25); }
.status-caution  { background: rgba(186,117,23,0.15);color: #EF9F27; border: 1px solid rgba(186,117,23,0.3); }
.status-dormant  { background: rgba(100,130,100,0.12);color:#6fa86a; border: 1px solid rgba(100,130,100,0.25); }
.status-unrest   { background: rgba(59,139,212,0.12); color: #378ADD; border: 1px solid rgba(59,139,212,0.25); }

/* ── FOOTER ── */
footer {
  background: #111009;
  border-top: 1px solid var(--stone);
  padding: 48px 40px 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo img { height: 36px; width: auto; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.footer-brand-name span { color: var(--lava); }
.footer-desc {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dust);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dust);
  transition: color .2s;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--stone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; font-family: var(--font-body); letter-spacing: normal; text-transform: none; color: var(--stone); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .page-hero { padding: calc(var(--nav-height) + 32px) 20px 40px; }
  .main-content { padding: 40px 20px; }
  .filter-bar { padding: 0 20px; }
  footer { padding: 40px 20px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ── FOOTER FONT LOCK — prevents blog post CSS bleeding into footer ── */
footer, footer * {
  font-family: var(--font-body) !important;
}
footer .footer-brand-name,
footer .footer-col-title {
  font-family: var(--font-display) !important;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lava);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--lava-bright); }
.back-to-top svg { width: 18px; height: 18px; }

@media(max-width: 768px) {
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}


/* ── HOMEPAGE HERO LAYOUT FIX ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 420px;
  gap: 48px;
  align-items: start;
}

.hero-left {
  max-width: 720px;
}

.hero-panel {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-top: 72px;
}

.hero-left h1 {
  margin-top: 0;
}

.hero-badge {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-panel {
    margin-top: 20px;
    margin-left: 0;
  }

  .hero-left {
    max-width: none;
  }
}
