/* MinuteMayhem marketing site — shared styles. Forest theme v4.0. No build step. */

:root {
  --forest-green: #165331;
  --forest-hover: #124428;
  --paper: #FAF9F6;
  --linen: #F2F0E9;
  --charcoal: #2D3436;
  --soft-coral: #E07A5F;
  --sage: #2D6A4F;
  --ochre: #B8860B;
  --error: #9B2226;
  /* Secondary text at 0.72 alpha ≈ 5.1:1 on paper/white — passes WCAG AA */
  --text-secondary: rgba(45, 52, 54, 0.72);
  --hairline: rgba(45, 52, 54, 0.10);
  --card-shadow: 0 2px 8px rgba(45, 52, 54, 0.05);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.serif { font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif; font-weight: 400; }

a { color: var(--forest-green); }
a:hover { color: var(--forest-hover); }

/* ---- Focus visibility: every interactive element gets a clear ring ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--forest-green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Skip link (visible only on focus) ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 200;
  background: var(--forest-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--forest-green); color: #fff; }
.btn.primary:hover { background: var(--forest-hover); color: #fff; }
.btn.secondary { background: #fff; color: var(--forest-green); border: 1.5px solid var(--forest-green); }
.btn.secondary:hover { background: var(--linen); color: var(--forest-hover); }
.btn.coral { background: var(--soft-coral); color: #fff; }
.btn.coral:hover { background: #cf6a4f; color: #fff; }
.btn.sm { padding: 9px 16px; min-height: 40px; font-size: 14px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
}
.brand {
  font-size: 26px;
  color: var(--forest-green);
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--soft-coral); }
.nav-spacer { flex: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  min-height: 40px;
}
.nav-link:hover { background: rgba(45, 52, 54, 0.05); color: var(--forest-hover); }
.nav-link[aria-current="page"] { color: var(--forest-green); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  min-height: 44px;
}

/* ---- Layout ---- */
main { display: block; }
.section { padding: 72px 24px; }
.section .wrap,
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.section.alt { background: var(--linen); }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--text-secondary); margin: 0 0 28px; }
.section-sub { font-size: 18px; color: var(--text-secondary); margin: 0 auto 44px; max-width: 640px; }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 10px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 90px 24px 80px;
  background: linear-gradient(180deg, var(--linen) 0%, var(--paper) 100%);
}
.hero .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 26px 24px;
}
.card h3 { color: var(--charcoal); }
.card p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--linen);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 22px;
}

/* Steps */
.step .num {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--forest-green); color: #fff;
  display: grid; place-items: center;
  font-family: 'DM Serif Display', Georgia, serif; font-size: 22px;
  margin-bottom: 14px;
}

/* Testimonials */
.quote { font-size: 16px; color: var(--charcoal); margin: 0 0 18px; }
.quote::before { content: "\201C"; }
.quote::after { content: "\201D"; }
.author { display: flex; align-items: center; gap: 12px; }
.author .ava {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--soft-coral); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.author .name { font-weight: 600; font-size: 15px; }

/* CTA band */
.cta-band {
  background: var(--forest-green);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 18px; margin: 0 auto 28px; max-width: 540px; }

/* ---- Legal / content pages ---- */
.doc { padding: 56px 24px 72px; }
.doc .narrow > h2 { margin-top: 40px; }
.doc h2 { font-size: 26px; }
.doc p, .doc li { color: var(--charcoal); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .meta { color: var(--text-secondary); font-size: 15px; margin: 0 0 8px; }
.callout {
  background: var(--linen);
  border-left: 4px solid var(--ochre);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 28px;
}
.callout p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.placeholder {
  background: rgba(184, 134, 11, 0.12);
  color: var(--ochre);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
}

/* Pricing breakdown */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.price-table th { background: var(--linen); font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .total td { font-weight: 700; background: rgba(22, 83, 49, 0.06); }

/* FAQ */
details.faq {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; color: var(--sage); font-size: 22px; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--text-secondary); margin: 0 0 14px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.86);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-inner .brand { color: #fff; }
.footer-inner .brand span { color: var(--soft-coral); }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 12px 0 0; max-width: 280px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-cta {
    display: none;
    width: 100%;
  }
  .site-header.open .nav-links,
  .site-header.open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 24px 16px;
  }
  .site-header.open .nav-inner { flex-wrap: wrap; }
  .nav-link, .nav-cta .btn { width: 100%; justify-content: flex-start; }
  .nav-cta .btn { justify-content: center; }
  .section { padding: 52px 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
