@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #f5f5f5;
  color: #1f1f1f;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #f5f5f5;
  color: #1f1f1f;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scroll margin for fixed bottom nav ── */
div[id] {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 80px;
}

/* ── Elevation shadows ── */
:root {
  --elev-sm:  0 2px 6px rgba(31,31,31,.08), 0 1px 2px rgba(31,31,31,.06);
  --elev-md:  0 6px 18px rgba(31,31,31,.10), 0 2px 6px rgba(31,31,31,.08);
  --elev-lg:  0 12px 36px rgba(31,31,31,.13), 0 4px 12px rgba(31,31,31,.09);
  --elev-xl:  0 24px 64px rgba(31,31,31,.18), 0 8px 24px rgba(31,31,31,.12);
  --neu-out:  6px 6px 14px #d9d9d9, -6px -6px 14px #ffffff;
  --neu-in:   inset 4px 4px 10px #d9d9d9, inset -4px -4px 10px #ffffff;
  --radius:   18px;
  --bnav-h:   64px;
  --accent:   #c0392b;
  --accent2:  #8e44ad;
}

/* ── Site layer ── */
.site-layer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(var(--bnav-h) + 16px);
}

/* ── Header ── */
.site-header {
  position: relative;
  z-index: 3;
  background: #ffffff;
  box-shadow: var(--elev-sm);
  padding: 14px 24px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-brand {
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -.02em;
}
.site-logo { height: 40px; width: auto; }
.header-tagline {
  font-size: .82rem;
  color: #555;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main wrap ── */
main { position: relative; z-index: 1; }
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
}
.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-bg-text {
  position: absolute;
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 700;
  color: rgba(31,31,31,.05);
  letter-spacing: -.05em;
  user-select: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.hero-visual-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--neu-out);
  width: 100%;
  max-width: 340px;
  transform: translateZ(0);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-visual-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: var(--elev-xl);
}
.hero-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: #1f1f1f;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: var(--elev-sm);
}
.hero-stat::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  flex-shrink: 0;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1f1f1f;
  letter-spacing: -.03em;
}
.hero-lead {
  font-size: 1rem;
  color: #555;
  max-width: 360px;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: var(--elev-md);
  transition: transform .2s, box-shadow .2s;
  min-height: 48px;
  line-height: 1.2;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-lg);
}

/* ── Content div ── */
.content-section {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.content-article {
  position: relative;
  z-index: 1;
}
.content-body {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--neu-out);
  position: relative;
  z-index: 1;
}

/* ── Content body typography ── */
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 .6em;
  color: #1f1f1f;
  letter-spacing: -.02em;
  padding-bottom: .4em;
  border-bottom: 3px solid #f5f5f5;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6em 0 .5em;
  color: #1f1f1f;
}
.content-body p { margin-bottom: 1em; }
.content-body ul, .content-body ol {
  margin: .8em 0 1em 1.4em;
}
.content-body li { margin-bottom: .4em; }
.content-body a {
  color: #c0392b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-body a:hover { color: #8e44ad; }
.content-body div {
  position: relative;
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: 1px solid #ebebeb;
}
.content-body div:last-child { border-bottom: none; margin-bottom: 0; }
.content-body strong { font-weight: 700; }

/* small eyebrow before h2 — build auto-inserts, style here */
small + h2, small + h3 {
  margin-top: .3em;
}
.content-body small {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #c0392b;
  text-transform: uppercase;
  margin-bottom: .2em;
}

/* ── Aside ── */
.content-aside {
  position: sticky;
  top: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--neu-out);
  border-bottom: 4px solid #c0392b;
  position: relative;
  z-index: 2;
  transition: transform .25s, box-shadow .25s;
}
.aside-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-lg);
}
.aside-card.aside-tip { border-bottom-color: #8e44ad; }
.aside-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #c0392b;
  text-transform: uppercase;
  margin-bottom: .3em;
}
.aside-tip .aside-eyebrow { color: #8e44ad; }
.aside-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f1f1f;
}
.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aside-links li a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #1f1f1f;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.aside-links li a:hover {
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  color: #fff;
}
.aside-card p { font-size: .88rem; color: #555; line-height: 1.6; }

/* ── Footer ── */
.site-footer {
  background: #1f1f1f;
  color: #aaa;
  text-align: center;
  padding: 40px 24px 20px;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: .9rem;
  margin-bottom: 8px;
  color: #ddd;
}
.site-footer small {
  font-size: .76rem;
  color: #777;
  line-height: 1.6;
}

/* ── Bottom fixed nav ── */
.bottom-nav-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--bnav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 -2px 24px rgba(31,31,31,.12);
  border-top: 1px solid rgba(31,31,31,.08);
}
.bottom-nav {
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.bnav-dl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 0;
  padding: 0 12px;
}
.bnav-left, .bnav-right {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bnav-right { justify-content: flex-end; }
.bnav-dl dt, .bnav-dl dd {
  display: contents;
}
.bnav-dl dt a, .bnav-dl dd a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.bnav-dl dt a:hover, .bnav-dl dd a:hover {
  background: #f0f0f0;
  color: #c0392b;
}
.bnav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.bnav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: 8px 14px;
  border-radius: 99px;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  box-shadow: var(--elev-sm);
  transition: transform .2s, box-shadow .2s;
}
.bnav-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-md);
}

/* ── Scroll reveal animation ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .stagger .reveal:nth-child(1) { transition-delay: .05s; }
  .stagger .reveal:nth-child(2) { transition-delay: .12s; }
  .stagger .reveal:nth-child(3) { transition-delay: .19s; }
  .stagger .reveal:nth-child(4) { transition-delay: .26s; }
  .stagger .reveal:nth-child(5) { transition-delay: .33s; }
  .stagger .reveal:nth-child(6) { transition-delay: .40s; }
  .stagger .reveal:nth-child(7) { transition-delay: .47s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-card { flex: 1 1 240px; }
}

@media (max-width: 700px) {
  .hero-article {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-media { min-height: 280px; }
  .hero-visual-card { max-width: 100%; }
  .hero-section { padding: 20px 0 40px; min-height: auto; }
  .hero-copy { align-items: flex-start; text-align: left; }

  .bnav-dl dt a, .bnav-dl dd a {
    font-size: .65rem;
    padding: 6px 6px;
  }
  .bnav-logo { font-size: .7rem; padding: 6px 10px; }

  .content-body { padding: 24px 18px; }
  .header-tagline { display: none; }
}

@media (max-width: 480px) {
  .bnav-dl {
    padding: 0 4px;
    gap: 0;
  }
  .bnav-dl dt a, .bnav-dl dd a {
    font-size: .6rem;
    padding: 5px 4px;
    letter-spacing: -.01em;
  }
}
