/* ============================================================
   GEEKYTEK DESIGN SYSTEM — 2026 rebuild
   Brand Book §04 Colors — Ocean Blue #0072BC · Ember Red #F15A24 · Pure White
   Brand Book §03 Type   — Roboto (headings) · Open Sans (body), self-hosted
   ============================================================ */

/* ---------- Self-hosted brand typefaces (variable, latin subset) ---------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/open-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette */
  --ocean:        #0072BC;
  --ocean-deep:   #005A95;
  --ocean-tint:   #E8F2FA;
  --ember:        #F15A24;
  --ember-deep:   #C2410C;   /* AA-safe ember for small text on white (5.2:1) */
  --white:        #FFFFFF;
  --navy:         #001B2E;

  /* Neutrals */
  --ink:          #1A2B3A;
  --ink-muted:    #51606E;
  --bg-light:     #F4F7FA;
  --line:         #E2E9EF;

  /* Typography */
  --font-head:    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', Tahoma, sans-serif;

  /* Spacing scale (4px base) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem;  --s-4: 1rem;
  --s-6: 1.5rem;   --s-8: 2rem;    --s-12: 3rem;    --s-16: 4rem;
  --section-pad: clamp(4rem, 8vw, 6.5rem);

  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 27, 46, 0.10);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.5vw + 0.5rem, 3.4rem); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 2.5vw + 0.5rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 var(--s-4); }

/* aspect-ratio bounding on every graphical asset (CLS ≤ 0.1) */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--ocean); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--ocean-deep); }

:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: var(--s-3);
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-muted); font-size: 1.0625rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ocean); color: var(--white); }
.btn-primary:hover { background: var(--ocean-deep); color: var(--white); }
.btn-primary:disabled { background: var(--ink-muted); cursor: wait; transform: none; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: var(--white); color: var(--ocean-deep); border-color: var(--white); }

.btn-light { background: var(--white); color: var(--ocean-deep); }
.btn-light:hover { background: var(--ocean-tint); color: var(--ocean-deep); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 1000;
  padding: var(--s-3) var(--s-6);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 500;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 27, 46, 0.10); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.logo img { height: 36px; width: auto; }

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  padding: var(--s-2) 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 3px;
  background: var(--ember);
  transition: right .25s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ocean); }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }

.header-cta { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Hamburger — drives the native Popover API menu (popovertarget) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.header-inner:has(#primary-nav:popover-open) .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-inner:has(#primary-nav:popover-open) .nav-toggle span:nth-child(2) { opacity: 0; }
.header-inner:has(#primary-nav:popover-open) .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: nav renders in normal flow — the popover stays inert until mobile */
@media (min-width: 861px) {
  .main-nav[popover] {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
}

/* Mobile: the same nav becomes a native top-layer popover dropdown */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav[popover] {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 24px rgba(0, 27, 46, 0.12);
    padding: var(--s-4) var(--s-6) var(--s-6);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: var(--s-4) 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 86vh, 760px);
  margin-top: var(--header-h);
  color: var(--white);
  overflow: hidden;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 27, 46, 0.88) 0%, rgba(0, 84, 138, 0.82) 55%, rgba(0, 114, 188, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: var(--s-16);
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(241, 90, 36, 0.92);
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  margin-bottom: var(--s-6);
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--s-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- Services ---------- */
.services { padding-block: var(--section-pad); background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 1023px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--ocean);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--ocean-tint);
  color: var(--ocean);
  border-radius: var(--radius);
  margin-bottom: var(--s-6);
  transition: background-color .3s ease, color .3s ease;
}
.service-card:hover .service-icon { background: var(--ocean); color: var(--white); }
.service-card h3 { margin-bottom: var(--s-3); }
.service-card p { color: var(--ink-muted); font-size: 0.975rem; margin: 0; }

/* ---------- About ---------- */
.about { padding-block: var(--section-pad); background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
}

.about-media { position: relative; }
.about-media .photo-main {
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--ember);
}
.about-media .photo-accent {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 46%;
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .about-media { margin-bottom: var(--s-8); }
  .about-media .photo-accent { right: 0; }
}

.about-text p { color: var(--ink-muted); font-size: 1.0625rem; }
.about-points {
  list-style: none;
  margin: var(--s-6) 0 var(--s-8);
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.about-points li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-weight: 600;
}
.about-points svg { flex: none; margin-top: 3px; color: var(--ember-deep); }

/* ---------- Values band ---------- */
.values {
  position: relative;
  padding-block: var(--section-pad);
  color: var(--white);
  overflow: hidden;
}
.values-media, .values-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.values::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 64, 105, 0.93), rgba(0, 27, 46, 0.93));
}
.values .container { position: relative; z-index: 1; }
.values h2, .values .section-head p { color: var(--white); }
.values .eyebrow { color: #FFB38A; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

.value-item {
  padding: var(--s-8) var(--s-6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: background-color .3s ease, transform .3s ease;
}
.value-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.value-item svg { color: #FFB38A; margin-bottom: var(--s-4); }
.value-item h3 { color: var(--white); font-size: 1.1rem; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: var(--s-2); }
.value-item p { color: rgba(255, 255, 255, 0.85); font-size: 0.925rem; margin: 0; }

/* ---------- Consultation CTA ---------- */
.consult { padding-block: var(--section-pad); background: var(--bg-light); }
.consult-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .consult-inner { grid-template-columns: 1fr; } }

.consult-media img { width: 100%; height: 100%; object-fit: cover; }
.consult-panel {
  background: var(--ocean);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.consult-panel h2 { color: var(--white); }
.consult-panel p { color: rgba(255, 255, 255, 0.92); font-size: 1.0625rem; margin-bottom: var(--s-8); }
.consult-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section-pad); background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Two stacked cards share the form's full height evenly */
.contact-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-6);
}

.contact-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius);
  padding: var(--s-8);
  transition: box-shadow .3s ease, transform .3s ease;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-card svg { color: var(--ocean); margin-bottom: var(--s-4); }
.contact-card h3 { margin-bottom: var(--s-3); }
.contact-card p, .contact-card li { color: var(--ink-muted); }
.contact-card a.big-link {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.social-row { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
}
.social-row a::after { content: "→"; transition: transform .25s ease; }
.social-row a:hover::after { transform: translateX(4px); }

/* Click-to-reveal email (anti-scrape challenge) */
.reveal-email {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ocean);
  background: var(--ocean-tint);
  border: 1px solid var(--ocean);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.reveal-email:hover { background: var(--ocean); color: var(--white); }
.reveal-email:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Contact form ---------- */
.contact-form-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ember);
  border-radius: var(--radius);
  padding: var(--s-6);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: var(--s-2); }
.contact-form-card > p { color: var(--ink-muted); margin-bottom: var(--s-6); }

/* Honeypot — off-screen, not display:none (some bots skip hidden fields) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Paired fields keep the form compact — the industry norm for repair shops */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.form-field label .req { color: var(--ember-deep); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, background-color .25s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.15);
}
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: var(--ember-deep); }
.form-field textarea { resize: vertical; min-height: 88px; }

.form-hint { font-size: 0.85rem; color: var(--ink-muted); margin: var(--s-1) 0 0; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* ALTCHA-style proof-of-work status chip */
.challenge-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  color: var(--ink-muted);
  min-height: 24px;
}
.challenge-status.is-working { color: var(--ocean-deep); }
.challenge-status.is-verified { color: #1B7A3D; font-weight: 600; }
.challenge-status.is-error { color: var(--ember-deep); font-weight: 600; }

/* Info popover — native Popover API tooltip */
.info-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: help;
}
.info-pop {
  max-width: 320px;
  padding: var(--s-4) var(--s-6);
  margin: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Native dialog (form confirmation) ---------- */
dialog.confirm-dialog {
  width: min(92vw, 480px);
  padding: var(--s-8);
  border: 0;
  border-top: 5px solid var(--ocean);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 27, 46, 0.35);
}
dialog.confirm-dialog::backdrop {
  background: rgba(0, 27, 46, 0.55);
  backdrop-filter: blur(2px);
}
dialog.confirm-dialog h3 { margin-bottom: var(--s-3); }
dialog.confirm-dialog p { color: var(--ink-muted); }
dialog.confirm-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ---------- noscript notice ---------- */
.noscript-note {
  padding: var(--s-3) var(--s-4);
  background: var(--ocean-tint);
  border: 1px solid var(--ocean);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #A9BCCB; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: var(--s-12);
  padding-block: var(--s-16) var(--s-12);
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: var(--s-8); } }

.footer-brand .wordmark {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin: 0;
}
.footer-brand .wordmark span { color: var(--ember); }
.footer-brand p { max-width: 38ch; font-size: 0.95rem; margin-top: var(--s-4); }

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: #A9BCCB; }
.site-footer a:hover { color: var(--white); }

/* Operating hours as a definition list (BLUF extraction for crawlers) */
.hours-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-6);
  row-gap: var(--s-2);
  font-size: 0.95rem;
}
.hours-dl dt { font-weight: 600; color: #CBD9E4; }
.hours-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-dl .closed { color: #FFB38A; font-weight: 700; }

.footer-tel { margin-top: var(--s-4); font-variant-numeric: tabular-nums; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll-reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--ocean);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .25s ease;
  z-index: 400;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ocean-deep); }

/* ---------- Service pages ---------- */
.page-hero {
  margin-top: var(--header-h);
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(120deg, var(--navy) 0%, var(--ocean-deep) 70%, var(--ocean) 100%);
  color: var(--white);
}
.page-hero h1 { color: var(--white); max-width: 24ch; }
.page-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: rgba(255, 255, 255, 0.45); }
.breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

.service-article { padding-block: var(--section-pad); }
.article-inner { max-width: 800px; }
.service-article h2 {
  font-size: 1.45rem;
  margin-top: var(--s-8);
}
.service-article section:first-child h2 { margin-top: 0; }
.service-article p { color: var(--ink); }

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.included-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
}
.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ember-deep);
  font-weight: 700;
}

.faq-dl { margin: 0; }
.faq-dl dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: var(--s-6);
  padding-left: var(--s-4);
  border-left: 3px solid var(--ocean);
}
.faq-dl dd {
  margin: var(--s-2) 0 0;
  padding-left: calc(var(--s-4) + 3px);
  color: var(--ink-muted);
}

.cta-band {
  background: var(--ocean);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 56ch; margin-inline: auto; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* "Learn more" links on homepage service cards */
.service-card .learn-more {
  margin-top: auto;
  padding-top: var(--s-4);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.service-card .learn-more span { transition: transform .25s ease; display: inline-block; }
.service-card:hover .learn-more span { transform: translateX(4px); }

/* ---------- Legal / privacy page ---------- */
.legal-page {
  padding-block: calc(var(--header-h) + var(--s-12)) var(--section-pad);
  max-width: 800px;
}
.legal-page h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.legal-page .updated { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: var(--s-8); }
.legal-page section { margin-bottom: var(--s-8); }
.legal-page h2 { font-size: 1.35rem; margin-top: var(--s-8); }
.legal-page ul { color: var(--ink); padding-left: 1.25rem; }
.legal-page li { margin-bottom: var(--s-2); }
.legal-page dl dt { font-weight: 700; font-family: var(--font-head); margin-top: var(--s-4); }
.legal-page dl dd { margin: var(--s-1) 0 0; color: var(--ink-muted); }
