/* International Warranty, Inc. — site styles */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --spruce: #1f6b34;
  --spruce-deep: #154d25;
  --leaf: #5db237;
  --ink: #17231b;
  --ink-soft: #4a5a4f;
  --frost: #f1f5f2;
  --line: #d3ddd6;
  --white: #ffffff;
  --char: #1c2320;
  --char-2: #27302b;
  --char-3: #313b35;
  --on-dark: #e4ece6;
  --on-dark-soft: #b9c7bd;
  --note-bg: #edf2f7;
  --note-line: #c3d1df;
  --radius: 10px;
  --gutter: 16px;
  --max: 68rem;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); text-underline-offset: 0.18em; }
a:hover { color: var(--spruce-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 38em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 44rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Header: charcoal band + menu bar */
.site-header { background: var(--char); color: var(--white); }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand, .brand-name { min-width: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.2rem; line-height: 1.1;
  min-height: 44px;
}
.brand:hover { color: var(--white); }
.brand img { width: 40px; height: auto; flex: none; }
.tagline { margin: 0; color: var(--on-dark-soft); font-size: 1.05rem; text-align: center; flex: 1; }
.header-help {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; flex: none;
  border: 2px solid var(--leaf); border-radius: 999px;
  color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-help:hover { background: var(--leaf); color: var(--char); }
.site-nav { background: var(--char-2); border-top: 1px solid var(--char-3); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 0.8rem;
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 1rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--leaf); }
.site-header :focus-visible, .hero :focus-visible, .tiles :focus-visible { outline-color: var(--white); }
@media (max-width: 899px) { .tagline { display: none; } }
@media (max-width: 599px) {
  .brand { font-size: 1rem; gap: 0.5rem; }
  .brand img { width: 32px; }
  .header-help { padding: 0 0.8rem; font-size: 0.95rem; }
  .site-nav .wrap { padding-left: 0.6rem; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0 0.5rem; font-size: 0.92rem; }
}

/* Page heads (inner pages) */
.page-head { padding: 2.25rem 0 1rem; background: var(--frost); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-head .lede { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 0; }

/* Home hero: photo with headline */
.hero { position: relative; background: var(--char); color: var(--white); overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 26, 23, 0.92) 0%, rgba(20, 26, 23, 0.72) 45%, rgba(20, 26, 23, 0.1) 80%);
}
.hero-text { position: relative; z-index: 1; padding: clamp(3rem, 9vw, 7rem) 0; }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem); max-width: 12em; margin-bottom: 0.4em; }
.hero-lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--on-dark); max-width: 30em; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 599px) {
  .hero::after { background: linear-gradient(180deg, rgba(20, 26, 23, 0.55) 0%, rgba(20, 26, 23, 0.9) 70%); }
}

/* Buttons */
.btn-primary { background: var(--leaf); color: var(--char); border: 2px solid var(--leaf); padding: 0 1.3rem; min-height: 50px; }
.btn-primary:hover { background: #6fc548; border-color: #6fc548; color: var(--char); }
.btn-light { color: var(--white); border: 2px solid rgba(255, 255, 255, 0.7); padding: 0 1.3rem; min-height: 50px; }
.btn-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Home intro: welcome + plans panel */
.intro-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .intro-grid { grid-template-columns: 1.1fr 1fr; } }
.intro-main { padding: 2.75rem 0 2rem; position: relative; }
@media (min-width: 860px) { .intro-main { padding-right: 3rem; } }
@media (min-width: 1180px) {
  .intro-main::before {
    content: ""; position: absolute; left: -5.5rem; top: 2.2rem; width: 4.5rem; height: 5rem;
    background: url("/assets/logo.svg") no-repeat center / contain; opacity: 0.12; pointer-events: none;
  }
}
.intro-panel { background: var(--frost); padding: 2.25rem 1.5rem; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 860px) { .intro-panel { margin: 0; padding: 2.75rem 2.25rem; } }
.intro-panel h2 { font-size: 1.45rem; }
.plan-list { margin: 0 0 1rem; }
.plan-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.plan-list dt { font-weight: 700; color: var(--spruce-deep); font-size: 1.15rem; }
.plan-list dd { margin: 0; }

/* Home tiles: three reasons + photo */
.tiles { background: var(--char); color: var(--white); }
.tiles-grid { display: grid; grid-template-columns: 1fr; padding: 0; }
@media (min-width: 700px) { .tiles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tiles-grid { grid-template-columns: repeat(3, 1fr) 1.5fr; } }
.tile { padding: 2rem 1.5rem; text-align: center; background: var(--char-2); }
.tile:nth-child(2) { background: var(--spruce-deep); }
.tile svg { width: 3.4rem; height: 3.4rem; color: var(--leaf); margin: 0 auto 0.9rem; display: block; }
.tile:nth-child(2) svg { color: var(--white); }
.tile h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tile p { margin: 0 auto; color: var(--on-dark); font-size: 1rem; max-width: 18em; }
.tile-photo { display: none; }
@media (min-width: 1100px) { .tile-photo { display: block; } .tile-photo img { width: 100%; height: 100%; object-fit: cover; } }

/* Home pitch band */
.pitch-band { padding: 2.75rem 0; }
.pitch-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pitch-inner p { margin-bottom: 0; }

/* Dealership call-to-action — the one bold element */
.cta-box {
  background: var(--white); border-left: 6px solid var(--leaf); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; margin: 0 0 1.25rem; max-width: 40rem;
  box-shadow: 0 1px 0 var(--line);
}
.cta-line { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 700; line-height: 1.2; color: var(--spruce-deep); margin: 0 0 0.4rem; }
.cta-note { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 1rem; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none;
}

/* Home choices */
.choices { padding: 2.5rem 0; }
.choice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 44rem; }
.choice-list li { border-bottom: 1px solid var(--line); }
.choice-list a {
  display: block; padding: 1rem 0.25rem; text-decoration: none; color: var(--ink);
}
.choice-list a strong { display: block; font-size: 1.3rem; color: var(--spruce); }
.choice-list a span { display: block; color: var(--ink-soft); font-size: 1.05rem; }
.choice-list a:hover strong { text-decoration: underline; }

/* Photo band */
.band { margin: 0; }
.band img { width: 100%; height: clamp(220px, 38vw, 460px); object-fit: cover; }
.band figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Generic content */
.content { padding: 1rem 0 2.5rem; }
.content h2 { margin-top: 1.75rem; }
.content ul { padding-left: 1.25rem; max-width: 38em; }
.content li { margin-bottom: 0.4rem; }
.promise { padding: 2.5rem 0; }

/* Numbered steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0 0 1.5rem; padding: 0; max-width: 44rem; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 1.25rem 3.5rem; margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--spruce); color: var(--white); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0.2rem; width: 2px; background: var(--line);
}
.steps h2 { font-size: 1.35rem; margin: 0 0 0.3rem; }

/* Plan facts */
.facts { margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); max-width: 44rem; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .facts div { grid-template-columns: 12rem 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* Pending note (certificate details still to come) */
.pending {
  background: var(--note-bg); border-left: 4px solid var(--note-line);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 0.8rem 1rem; margin: 0 0 1.25rem; max-width: 44rem;
}
.pending p { margin: 0; }

.fine { color: var(--ink-soft); font-size: 1rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); max-width: 44rem; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; font-size: 1.15rem;
  list-style: none; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; color: var(--spruce);
}
.faq details[open] summary::after { content: "−"; }
.faq details > :not(summary) { margin-top: 0; }
.faq details .pending { margin-bottom: 1rem; }

/* Closing dealership block */
.end-cta { background: var(--frost); border-top: 1px solid var(--line); padding: 2.25rem 0 2.5rem; }
.end-cta h2 { max-width: 22em; }

/* Footer */
.site-footer { background: var(--char); color: var(--on-dark); padding: 2.25rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 1.25rem 3rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--char-3); margin-bottom: 1rem; }
@media (min-width: 860px) { .footer-top { grid-template-columns: auto 1fr auto; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.15rem; color: var(--white); margin: 0; }
.footer-brand img { width: 36px; height: auto; }
.footer-col p { margin: 0 0 0.35rem; }
.footer-label { color: var(--on-dark-soft); font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 0.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 0.75rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; align-items: center; }
.footer-copy { margin: 0; color: var(--on-dark-soft); }

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

@media print {
  .site-nav, .skip, .band, .hero-img, .tiles, .header-help { display: none; }
  .site-header, .hero { background: none; color: var(--ink); }
  .hero::after { display: none; }
  .site-footer { background: none; color: var(--ink); }
  .site-footer a { color: var(--ink); background: none; }
}
