/* ═══════════════════════════════════════════
   ROOTS DESIGN TOKENS
   Edit here to change the look of the entire site.
   ═══════════════════════════════════════════ */

:root {
  /* Colors */
  --bg:           #ffffff;
  --text:         #0f172a;
  --muted:        #475569;
  --muted-2:      #64748b;
  --line:         #e5e7eb;
  --card:         #ffffff;
  --brand:        #059669;
  --brand-2:      #16a34a;
  --brand-dark:   #065f46;

  --cta:          #2563eb;
  --cta-hover:    #1d4ed8;
  --cta-active:   #1e40af;

  /* Shadows */
  --shadow:       0 1px 2px rgba(15,23,42,.06), 0 16px 40px rgba(15,23,42,.10);
  --shadow-soft:  0 1px 2px rgba(15,23,42,.05), 0 10px 24px rgba(15,23,42,.08);
  --shadow-sm:    0 1px 2px rgba(15,23,42,.04);

  /* Shape */
  --radius:       18px;
  --radius-lg:    22px;
  --radius-sm:    10px;
  --radius-pill:  999px;

  /* Layout */
  --container:    1120px;

  /* Typography */
  --font-sans:    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --fw-black:     900;
  --fw-bold:      700;
  --fw-medium:    500;

  /* Motion */
  --transition-fast:  0.12s ease;
  --transition-base:  0.18s ease;

  /* Page-specific (overridden per page if needed) */
  --hero-video-size: min(520px, 44vw);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:target { scroll-margin-top: 92px; }

.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;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

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

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}

/* ═══════════════════════════════════════════
   HEADER & NAV
   ═══════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.01em;
  min-width: 180px;
}
.brand img { height: 28px; width: auto; }

nav {
  display: none;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}
nav a {
  opacity: .92;
  transition: opacity .12s ease, background .12s ease;
  padding: 8px 10px;
  border-radius: 10px;
}
nav a:hover { opacity: 1; background: rgba(15,23,42,.04); }
nav a.active { color: var(--brand); font-weight: var(--fw-bold); }

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 180px;
  align-items: center;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, filter .14s ease;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-ghost {
  border-color: rgba(229,231,235,1);
  background: rgba(15,23,42,.00);
}
.btn-ghost:hover {
  background: rgba(15,23,42,.04);
  border-color: rgba(226,232,240,1);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37,99,235,.18);
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37,99,235,.22);
}
.btn-cta:active {
  background: var(--cta-active);
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

/* ═══════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════ */

.menuBtn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(229,231,235,1);
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .14s ease, transform .14s ease;
}
.menuBtn:hover { background: rgba(15,23,42,.03); }
.menuBtn:active { transform: translateY(1px); }

.hamburger {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  opacity: .9;
  transition: transform .16s ease, top .16s ease, opacity .16s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 5px; }
.hamburger span:nth-child(3) { top: 10px; }

.menuBtn[aria-expanded="true"] .hamburger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menuBtn[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menuBtn[aria-expanded="true"] .hamburger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobileMenu {
  display: none;
  border-top: 1px solid rgba(229,231,235,1);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.mobileMenu.show { display: block; }

.mobileMenuInner {
  padding: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobileMenu a {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,1);
  background: rgba(255,255,255,.9);
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: background .14s ease, transform .14s ease, border-color .14s ease;
}
.mobileMenu a:hover { background: rgba(15,23,42,.03); }
.mobileMenu a:active { transform: translateY(1px); }

.mobileMenu .row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.mobileMenu .row a {
  flex: 1;
  text-align: center;
}

/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════ */

.section-head { max-width: 760px; margin-bottom: 24px; }
.kicker {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  margin: 0;
}
.section-sub {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */

details {
  border-radius: var(--radius);
  border: 1px solid rgba(229,231,235,1);
  background: var(--bg);
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
summary {
  cursor: pointer;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }

.summary-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15,23,42,.05);
  display: grid;
  place-items: center;
  transition: background .18s;
}
.summary-icon svg { transition: transform .22s ease; }
details[open] .summary-icon { background: rgba(5,150,105,.10); }
details[open] .summary-icon svg { transform: rotate(45deg); }

details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SHARED
   ═══════════════════════════════════════════ */

@media (min-width: 860px) {
  nav { display: flex; }
}

@media (max-width: 859px) {
  .menuBtn { display: inline-flex; }
  .actions { min-width: 0; }
  .brand { min-width: 0; }
  .actions .btn-ghost { display: none; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand span { display: none; }
}

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

/* ═══════════════════════════════════════════
   FOOTER LAYOUT
   ═══════════════════════════════════════════ */

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.01em;
}
.footer-brand img { height: 24px; width: auto; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted-2); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══════════════════════════════════════════
   DARK MODE (stub — extend when ready)
   ═══════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  /* Uncomment and fill in when dark mode is ready:
  :root {
    --bg:    #0f172a;
    --text:  #f1f5f9;
    --muted: #94a3b8;
    --line:  #1e293b;
    --card:  #1e293b;
  }
  header { background: rgba(15,23,42,.85); }
  .mobileMenu { background: rgba(15,23,42,.92); }
  */
}
