/* Gadget Pal: site styles. Tokens come from the Gadget Pal design system. Mobile first. */

/* ---- Fonts (self-hosted, SIL OFL; see assets/fonts/LICENSE-*.txt) ------------------- */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* ---- Tokens ----------------------------------------------------------------------- */
:root {
  --surface: #FFF8EC;
  --white: #FFFFFF;
  --navy: #1B2A4A;
  --ink-muted: #4A5468;
  --honey: #F5A623;
  --honey-soft: #FCE7C3;
  --honey-deep: #9A4A00;
  --line: #8A7C66;
  --success: #1E7046;
  --error: #B42318;

  --font-display: "Nunito", system-ui, sans-serif;
  --font-sans: "Atkinson Hyperlegible", system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-12: 48px;

  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --measure: 70ch;
  --page: 1120px;
}

/* ---- Base ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 var(--space-4); }
h1 { font-size: 36px; line-height: 44px; font-weight: 800; }
h2 { font-size: 28px; line-height: 36px; font-weight: 700; }
h3 { font-size: 22px; line-height: 30px; font-weight: 700; }
p, ul, ol { margin: 0 0 var(--space-4); max-width: var(--measure); }
li + li { margin-top: var(--space-2); }
strong { font-weight: 700; }
a { color: var(--honey-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  background: var(--navy); color: var(--white); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-2); color: var(--white); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--space-4); }
.lead { font-size: 20px; line-height: 32px; }
.muted { color: var(--ink-muted); }

/* ---- Buttons (48px minimum) --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); border: 2px solid var(--navy);
  font-family: var(--font-sans); font-size: 18px; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #2A3A5E; color: var(--white); }
.btn-call { background: var(--honey); color: var(--navy); border-color: var(--honey); }
.btn-call:hover { background: #F7B84D; color: var(--navy); }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--honey-soft); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-6) 0 0; }

/* ---- Header ------------------------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 2px solid var(--honey-soft); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--navy); min-height: 48px; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.3px; }
.brand-name span { color: var(--honey-deep); }
.header-call { white-space: nowrap; }

/* Navigation is always visible (no hidden menu): easier for older visitors. */
.nav { width: 100%; }
.nav ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); max-width: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.nav li + li { margin-top: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-2); color: var(--navy); text-decoration: none; font-weight: 700; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--honey); }

/* ---- Sections ----------------------------------------------------------------------- */
main { display: block; }
.section { padding: var(--space-12) 0; }
.section-tint { background: var(--honey-soft); }
.hero { padding: var(--space-12) 0; background: var(--honey-soft); }
.hero h1 { max-width: 20ch; }
.hero .badges { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.hero .badges li { margin: 0; background: var(--white); border-radius: var(--radius-pill); padding: 4px var(--space-4); font-weight: 700; font-size: 16px; }

.cards { display: grid; gap: var(--space-6); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; max-width: none; }
.cards > li { margin: 0; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid #E9DFCC; height: 100%; }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: none; display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding: var(--space-6) var(--space-6) var(--space-6) 88px; background: var(--white); border-radius: var(--radius-lg); }
.steps > li::before {
  content: counter(step); position: absolute; left: var(--space-6); top: var(--space-6);
  width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--honey); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; display: grid; place-items: center;
}

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 18px; height: 10px;
  border-left: 4px solid var(--success); border-bottom: 4px solid var(--success); transform: rotate(-45deg);
}

.callout { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); }
.callout h2, .callout p { color: var(--white); }
.callout a:not(.btn) { color: var(--honey); }
.callout a:not(.btn):hover { color: var(--white); }

/* ---- Tables (prices) ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-6); border-radius: var(--radius-lg); border: 1px solid #E9DFCC; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding: var(--space-4) var(--space-6) 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
th, td { text-align: left; padding: var(--space-4) var(--space-6); vertical-align: top; border-bottom: 1px solid #E9DFCC; }
thead th { background: var(--honey-soft); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.price { font-weight: 700; white-space: nowrap; }

/* ---- FAQ ---------------------------------------------------------------------------- */
.faq { max-width: var(--measure); }
.faq details { background: var(--white); border-radius: var(--radius-sm); border: 1px solid #E9DFCC; margin-bottom: var(--space-4); }
.faq summary { cursor: pointer; min-height: 48px; padding: var(--space-4) var(--space-6); font-weight: 700; font-size: 20px; }
.faq details > div { padding: 0 var(--space-6) var(--space-4); }

/* ---- Contact ------------------------------------------------------------------------ */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: var(--space-4); }
.big-phone { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 40px; color: var(--navy); }

/* ---- Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--white); padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-12); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name span { color: var(--honey); }
.footer-small { border-top: 1px solid #3A4A6A; margin-top: var(--space-6); padding-top: var(--space-4); font-size: 16px; line-height: 24px; color: #D8DEE9; }

/* ---- Larger screens ------------------------------------------------------------------ */
@media (min-width: 720px) {
  h1 { font-size: 48px; line-height: 56px; }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .callout { padding: var(--space-12); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header .nav, .skip-link, .site-footer { display: none; }
  body { background: #fff; }
}

/* ---- Small utilities ---------------------------------------------------------------- */
.h3 { font-size: 22px; line-height: 30px; }
.h-footer { font-size: 20px; line-height: 28px; color: var(--white); margin-bottom: var(--space-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.table-wrap:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Tables become stacked cards on phones: no sideways scrolling. */
@media (max-width: 719px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { background: var(--white); border: 1px solid #E9DFCC; border-radius: var(--radius-lg); margin-bottom: var(--space-4); padding: var(--space-4) 0; }
  .table-wrap th, .table-wrap td { border: 0; padding: 4px var(--space-6); }
  .table-wrap th[scope="row"] { font-family: var(--font-display); font-size: 22px; line-height: 30px; }
  .table-wrap td[data-label]::before { content: attr(data-label) ": "; font-weight: 400; color: var(--ink-muted); }
  td.price { white-space: normal; }
}
