/* ============================
   Design Tokens / Theme
   ============================ */
:root {
  /* ======================================
    Brand Palette – Orange Accent
    (tints → strong → deep)
    ====================================== */
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #fdba74;
  --brand-400: #fb923c;
  --brand-500: #f97316;   /* Primary accent */
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  --brand-800: #9a3412;
  --brand-900: #7c2d12;

  /* ======================================
    Light Mode Surface / Typography
    ====================================== */
  --bg: #ffffff;          /* page background */
  --card: #f6f8fc;        /* card surfaces */
  --text: #0f172a;        /* primary text */
  --muted: #475569;       /* secondary text */
  --ring: var(--brand-500);

  /* Layout tokens */
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-sm: 0 3px 12px rgba(0,0,0,.08);
  --gap: clamp(16px, 2.5vw, 28px);
}

/* ============================
   Base / Layout
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -100px, rgba(235, 93, 37, 0.25), transparent 60%),
    radial-gradient(1200px 800px at -20% -200px, rgba(241, 179, 99, 0.18), transparent 55%),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.stack { display: grid; gap: var(--gap); }
.section { padding: 20px 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3 { line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1.5vw, 2rem); }
p { margin: 0; color: var(--muted); }

/* Skip link for accessibility */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto;
  background: #fff; color: #000; padding: .5rem .75rem;
  border-radius: 8px; z-index: 9999;
}

/* ============================
   Header / Navbar
   ============================ */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(12px); }
.nav {
  background: color-mix(in oklab, var(--card) 85%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--muted) 30%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; }

/* Brand logo sizing to match original pill avatar */
.brand img {
  height: 34px;
  width: auto;
  vertical-align: middle;
}

.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff; font-weight: 800; box-shadow: var(--shadow-sm);
}

.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { padding: .5rem .75rem; border-radius: 10px; color: var(--text); opacity: .9; }
.nav-links a:hover { background: color-mix(in oklab, var(--brand-600) 15%, transparent); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem .95rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  border-color: color-mix(in oklab, var(--brand-400) 65%, transparent);
  color: var(--text);
}
.btn-outline:hover { background: color-mix(in oklab, var(--brand-400) 20%, transparent); }

/* Button-like variants for nav items driven by data-variant */
.nav-links a[data-variant="primary"] {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  padding: .6rem .95rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.nav-links a[data-variant="primary"]:hover { filter: brightness(1.05); }

.nav-links a[data-variant="outline"] {
  padding: .6rem .95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand-400) 65%, transparent);
  font-weight: 600;
}
.nav-links a[data-variant="outline"]:hover {
  background: color-mix(in oklab, var(--brand-400) 20%, transparent);
}

/* Mobile menu */
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid color-mix(in oklab, var(--muted) 30%, transparent);
    background: var(--card);
    color: var(--text);
  }

  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid color-mix(in oklab, var(--muted) 30%, transparent);
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav-panel.open { display: block; }

  .nav-panel .menu {
    display: grid;
    gap: .25rem;
    padding: .75rem;
  }

  .nav-panel a {
    padding: .9rem 1rem;
    border-radius: 10px;
  }

  .nav-panel a:hover {
    background: color-mix(in oklab, var(--brand-600) 15%, transparent);
  }
}

/* Mirror the variants in the mobile panel (left aligned per note) */
.nav-panel a[data-variant="primary"],
.nav-panel a[data-variant="outline"] {
  display: block;
  text-align: left;
  margin-top: .25rem;
}

/* ============================
   Desktop dropdown
   ============================ */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }

.nav-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  opacity: .9;
  font: inherit;
  cursor: pointer;
}
.nav-dropbtn:hover {
  background: color-mix(in oklab, var(--brand-600) 15%, transparent);
  opacity: 1;
}
.nav-dropbtn .chev { opacity: .85; }

.nav-dropmenu {
  position: absolute;
  top: calc(100%);
  left: 0;
  min-width: 240px;
  padding: .5rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid color-mix(in oklab, var(--muted) 22%, transparent);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.nav-dropmenu a {
  display: block;
  padding: .7rem .8rem;
  border-radius: 10px;
  color: var(--text);
}
.nav-dropmenu a:hover {
  background: color-mix(in oklab, var(--brand-600) 15%, transparent);
}

/* Show dropdown on hover/focus for desktop */
@media (min-width: 881px) {
  .nav-dropdown:hover .nav-dropmenu,
  .nav-dropdown:focus-within .nav-dropmenu { display: block; }
}

/* ============================
   Mobile submenu
   ============================ */
.nav-mobile-details {
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--muted) 22%, transparent);
  background: color-mix(in oklab, var(--card) 55%, transparent);
  padding: .25rem .5rem;
}
.nav-mobile-details summary {
  list-style: none;
  cursor: pointer;
  padding: .7rem .5rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}
.nav-mobile-details summary::-webkit-details-marker { display: none; }

.nav-mobile-submenu {
  display: grid;
  gap: .25rem;
  padding: .25rem .25rem .5rem;
}
.nav-mobile-submenu a {
  padding: .8rem .75rem;
  border-radius: 10px;
}
.nav-mobile-submenu a:hover {
  background: color-mix(in oklab, var(--brand-600) 15%, transparent);
}

/* ============================
   Services dropdown button variants
   ============================ */
.nav-dropbtn.nav-variant-outline {
  padding: .6rem .95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand-400) 65%, transparent);
  color: var(--text);
  font-weight: 600;
}
.nav-dropbtn.nav-variant-outline:hover,
.nav-dropdown:focus-within .nav-dropbtn.nav-variant-outline {
  background: color-mix(in oklab, var(--brand-400) 20%, transparent);
}

/* Chevron polish */
.nav-dropbtn .chev {
  opacity: .8;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-dropdown:hover .chev,
.nav-dropbtn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* ============================
   Hero
   ============================ */
.hero { padding: 20px 0 20px; }
.hero-wrap { align-items: center; }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--brand-600) 20%, transparent);
  padding: .35rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
  color: var(--brand-700);
}

.hero h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }
.hero p { font-size: clamp(1rem, .9rem + .5vw, 1.2rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-card { padding: 1rem; text-align: center; }

@media (max-width: 960px) { .hero-wrap { grid-template-columns: 1fr; } }

/* Mascot hero (converted from inline styles) */
.mascot-hero {
  width: calc(100% - 40px);
  margin: 0 0 40px 0;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mascot-hero__content { max-width: 480px; }
.mascot-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--text);
}
.mascot-hero__subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--muted);
}

/* Nerd background helper */
.hero--nerd {
  background-image: url("../images/nerd.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 40%;
}

@media (max-width: 768px) {
  .hero--nerd {
    background-position: right bottom;
    background-size: 40%;
  }
}

/* Trust badges */
.trust {
  display: grid;
  grid-auto-flow: column;
  gap: 1.25rem;
  justify-content: start;
  align-items: center;
  opacity: .9;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.trust .badge {
  padding: .5rem .75rem;
  border: 1px dashed color-mix(in oklab, var(--muted) 35%, transparent);
  border-radius: 10px;
  white-space: nowrap;
  color: var(--muted);
  font-size: .95rem;
}

/* ============================
   Cards / Grids (LEFT aligned)
   ============================ */
.grid {
  display: grid;
  gap: var(--gap);
  justify-content: start;
  justify-items: stretch;
}

/* Make cards naturally left-aligned */
.card, .service { text-align: left; }

/* If you want icons/titles to stay left */
.icon { justify-self: start; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 {
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
}
.grid-5 {
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
}

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 28px;
}

.service { padding: 1.25rem; }
.service h3 { font-size: 1.1rem; margin-top: .25rem; }

/* Pricing (kept even if not used on this page yet) */
.pricing { align-items: start; }
.price-card { padding: 1.25rem; border: 1px solid color-mix(in oklab, var(--muted) 20%, transparent); }
.price { font-size: 2rem; font-weight: 800; margin: .25rem 0 .5rem; }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.features { display: grid; gap: .5rem; margin: .75rem 0 1rem; }
.features li { list-style: none; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: .5rem; }

/* Testimonials */
.quote { padding: 0.25rem; border: 1px solid color-mix(in oklab, var(--muted) 20%, transparent); }
.quote p { color: var(--text); }

/* Contact (kept even if not used on this page yet) */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); align-items: start; }
.form { padding: 1.25rem; }
.field { display: grid; gap: .4rem; margin: .75rem 0; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--muted) 30%, transparent);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent);
}

/* Footer */
footer { padding: 40px 0; border-top: 1px solid color-mix(in oklab, var(--muted) 30%, transparent); }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: 2fr 1fr 1fr 1.2fr; }

@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h3 { font-size: 1rem; }
.footer a { color: var(--muted); }

/* Utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.caps { letter-spacing: .06em; text-transform: uppercase; font-weight: 700; font-size: .8rem; color: var(--brand-200); }
.divider { height: 1px; background: color-mix(in oklab, var(--muted) 25%, transparent); margin: 1rem 0; }

.section-subtitle { font-size: 24px; }

/* Hide empty headings and paragraphs in section headers */
.stack.center > h2:empty,
.stack.center > p:empty { display: none; }

/* Prevent overflows in grid children when dynamic HTML is injected */
.grid > * { min-width: 0; }

/* When a section intentionally has no header, tighten spacing slightly */
.section .stack.center:empty { display: none; }
/* Collapse header when both title and description are empty */
.stack.center:has(> h2:empty):has(> p:empty) { display: none; }

/* Add a currency symbol only when we have a numeric amount */
.price[data-amount]::before { content: attr(data-currency); margin-right: .05em; }

/* ============================
   Former inline styles → classes
   ============================ */

/* Support link "display:none" */
.is-hidden { display: none !important; }

/* Mobile services chevron opacity (was inline) */
.nav-mobile-caret { opacity: .8; }

/* Proof section center row spacing (was inline margin-top) */
.mt-05 { margin-top: .5rem; }

/* CTA card (was inline padding + center) */
.cta-card { padding: 1.5rem; text-align: center; }
.cta-card h2 { margin-bottom: .25rem; }
.cta-card p { margin-bottom: 1rem; }

/* Footer meta row (was inline flex layout) */
.footer-meta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Footer tagline (was inline margin-top) */
.footer-tagline { margin-top: .5rem; }
