/* ============================================================
   wankerfest.css — shared styles for all pages
   wankerfest.com
   ============================================================ */

/* ── TOKENS ── */
:root {
  --brand:        #D85A30;
  --brand-light:  #FAECE7;
  --brand-dark:   #993C1D;
  --accent:       #1D9E75;
  --accent-light: #E1F5EE;
  --border:       #e0e0e0;
  --muted:        #666;
  --surface:      #ffffff;
  --bg:           #fafaf8;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: #111;
  margin: 0;
}
.ff-serif { font-family: 'Fraunces', serif; }
.text-brand      { color: var(--brand) !important; }
.text-brand-dark { color: var(--brand-dark) !important; }
.bg-brand-light  { background: var(--brand-light) !important; }
.bg-accent-light { background: var(--accent-light) !important; }

/* ── NAV ── */
.site-nav {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
.nav-logo span { color: var(--brand); }
@media (max-width: 540px) {
  .nav-links { display: none; }
}

/* ── BADGES ── */
.hero-badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  display: inline-block;
}
.age-badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  white-space: nowrap;
}

/* ── BUTTONS ── */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-brand {
  background: transparent;
  color: #111;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-brand:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: #111;
}
.btn-sm.btn-outline-brand {
  padding: 5px 14px;
  font-size: 13px;
}

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--brand);
  text-transform: uppercase;
}

/* ── EDU CARDS ── */
.edu-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  height: 100%;
  cursor: pointer;
  position: relative;
}
.edu-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(216,90,48,.12);
  transform: translateY(-2px);
}
.edu-card .icon { font-size: 1.6rem; margin-bottom: .75rem; }
.edu-card-hint {
  font-size: .72rem;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: .8;
}

/* ── PRODUCT CARDS ── */
.prod-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
  cursor: pointer;
  height: 100%;
}
.prod-card:hover { border-color: var(--accent); }
.prod-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-bottom: 0.5px solid var(--border);
}
.prod-thumb.a { background: #EEEDFE; }
.prod-thumb.b { background: var(--accent-light); }
.prod-thumb.c { background: var(--brand-light); }
.prod-thumb.d { background: #FAEEDA; }
.price {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--brand);
  font-weight: 700;
}
.badge-new {
  font-size: 10px;
  background: var(--accent-light);
  color: #0F6E56;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  vertical-align: middle;
  margin-left: 6px;
}

/* ── GUIDE LINKS ── */
.guide-links { text-align: center; padding: 1.5rem 1rem 1rem; }
.guide-links h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: #111;
  margin-bottom: .5rem;
}
.guide-links p {
  font-size: .92rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto .9rem;
}
.guide-links .btn-outline-brand { margin: .25rem .2rem; }

/* ── FOOTER ── */
.footer-bar {
  background: #f7f7f5;
  border-top: 0.5px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
}

/* ── WORD TICKER (index only) ── */
.wf-track-wrap {
  overflow: hidden;
  position: relative;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-word {
  position: absolute;
  font-size: clamp(1.2rem,4vw,2.4rem);
  font-weight: 500;
  opacity: 0;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: opacity .45s ease, transform .45s ease;
}
.wf-word.active  { opacity: 1; transform: translate(0,0) !important; }
.wf-word.exit    { opacity: 0; }
.wf-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: .85rem;
  flex-wrap: wrap;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.wf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
  transition: background .3s, transform .3s;
}
.wf-dot.active { transform: scale(1.5); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: var(--brand-light);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #f0d5cc;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem,5vw,3rem);
  color: var(--brand-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── INTRO BLOCK (sub-pages) ── */
.intro-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}
.intro-block h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin-bottom: .75rem;
}
.intro-block p {
  font-size: .97rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: .6rem;
}
.intro-block p:last-child { margin-bottom: 0; }

/* ── STATEMENT BOX (sub-pages) ── */
.statement-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #085041;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── BENEFIT LIST (sub-pages) ── */
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
  font-size: 1rem;
  color: #333;
  line-height: 1.65;
  padding: .6rem 0 .6rem 1.6rem;
  position: relative;
  border-bottom: .5px solid #e8e8e8;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 10px;
  border: 2px solid var(--accent);
  border-top: none;
  border-left: none;
}

/* ── RELATED PAGES (sub-pages) ── */
.related-pages {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.related-pages h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: #111;
  margin-bottom: .75rem;
}
.related-pages a {
  display: inline-block;
  margin: .25rem .25rem .25rem 0;
  padding: .3rem .9rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .82rem;
  text-decoration: none;
  transition: background .15s;
}
.related-pages a:hover { background: var(--brand); color: #fff; }

/* ── CONTENT WRAP (sub-pages) ── */
.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── MISSION CALLOUT ── */
.mission-callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .75rem 1.25rem;
  font-size: .92rem;
  color: #085041;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

/* ── MODAL STYLES ── */
.edu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  transition: background .25s;
}
.edu-overlay.active {
  background: rgba(20,12,8,.55);
  pointer-events: all;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.edu-modal {
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow: visible;
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--brand), var(--accent)) border-box;
  border: 8px solid transparent;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .25s;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.edu-overlay.active .edu-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-scroll-inner {
  max-height: calc(85vh - 30px);
  overflow-y: auto;
  border-radius: 8px;
}
.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.25rem 1.5rem 0;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}
.modal-header-row img {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.modal-header-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin: 1rem 1.5rem 0;
}
.modal-body-inner { padding: 1.25rem 1.75rem 2rem; }
.modal-statement {
  font-size: 1.4rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.modal-facts { list-style: none; padding: 0; margin: 0; }
.modal-facts li {
  font-size: 1.4rem;
  color: #444;
  line-height: 1.6;
  padding: .35rem 0 .35rem 1.4rem;
  position: relative;
  border-bottom: .5px solid #f0f0f0;
}
.modal-facts li:last-child { border-bottom: none; }
.modal-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: 2px solid var(--accent);
  border-top: none;
  border-left: none;
}
.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: var(--brand-light);
  border: 2px solid var(--brand);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-dark);
  transition: background .15s, color .15s;
  z-index: 10;
}
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 2px;
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after  { transform: rotate(-45deg); }
.modal-close:hover { background: var(--brand); }
.modal-close:hover::before,
.modal-close:hover::after { background: #fff; }