/* =========================================================
   Mad Zeeks — design tokens
   ========================================================= */
:root {
  --bg: #FBF9F5;
  --bg-alt: #F1ECE3;
  --card: #FFFFFF;
  --charcoal: #262320;
  --charcoal-soft: #57524B;
  --accent: #A8461E;
  --accent-dark: #833718;
  --accent-tint: #F4DFCC;
  --line: #E7E1D6;
  --line-strong: #D8CFC0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(38,35,32,0.04), 0 8px 20px -12px rgba(38,35,32,0.15);
  --shadow-card-hover: 0 4px 10px rgba(38,35,32,0.06), 0 16px 32px -14px rgba(38,35,32,0.22);

  --wrap: 1160px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.12; }
p { margin: 0 0 1em; color: var(--charcoal-soft); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(131,55,24,0.15);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--bg); }

.btn-small { padding: 9px 16px; font-size: 0.88rem; }
.btn-full { width: 100%; justify-content: center; margin-top: auto; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--charcoal);
}
.wordmark-logo {
  width: 40px;
  height: 40px;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:not(.btn):hover { color: var(--charcoal); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 40px;
  position: relative;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 76px 0 88px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  opacity: 0.85;
}

.hero-art {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-halo {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-tint) 0%, rgba(244,223,204,0) 72%);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(72%, 380px);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(38,35,32,0.16));
  transform: rotate(-3deg);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: badge-float 7s ease-in-out infinite; }
}
@keyframes badge-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-8px); }
}

/* =========================================================
   Section basics
   ========================================================= */
.section { padding: 84px 0; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--charcoal);
  max-width: 26ch;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede {
  max-width: 56ch;
  font-size: 1.05rem;
  margin-bottom: 2.6em;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.why { background: var(--bg-alt); }

/* =========================================================
   Tag cards (value props) — signature element
   ========================================================= */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tag-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tag-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line-strong);
}
.tag-hole {
  position: absolute;
  top: 11px; left: 11px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--line-strong);
}
.tag-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-radius: 50%;
  margin-bottom: 18px;
}
.tag-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.tag-card p { margin: 0; font-size: 0.98rem; }

/* =========================================================
   Store cards
   ========================================================= */
.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.store-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  color: var(--accent-dark);
  border-radius: 50%;
  margin-bottom: 20px;
}
.store-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
}
.store-card h3 {
  font-size: 2rem;
  margin: 0 0 14px;
}
.store-copy { flex-grow: 1; margin-bottom: 26px; }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-alt); }
.about-inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-mark { margin-bottom: 8px; }
.about .eyebrow { text-align: center; }
.about .section-title { margin-left: auto; margin-right: auto; }
.about-copy { font-size: 1.12rem; max-width: 58ch; }

/* =========================================================
   Contact
   ========================================================= */
.contact-inner { max-width: 680px; margin: 0 auto; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: #E9E4DC;
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(233,228,220,0.14);
}
.wordmark-footer { color: #FBF9F5; }
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FBF9F5;
  padding: 3px;
  flex-shrink: 0;
}
.footer-logo-chip img { width: 100%; height: 100%; display: block; }
.footer-tagline {
  margin: 10px 0 0;
  color: #B8B1A6;
  font-style: italic;
  font-family: var(--font-display);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-links a {
  font-weight: 600;
  color: #F1ECE3;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent-tint); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px 28px;
  font-size: 0.82rem;
  color: #A79F92;
}
.footer-bottom p { margin: 0; color: inherit; }
.disclaimer { max-width: 46ch; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .store-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.open { max-height: 320px; }
  .primary-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .primary-nav .btn { margin-top: 12px; justify-content: center; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 56px; }
  .section { padding: 60px 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .store-card { padding: 30px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}
