/* VANTA Coatings interim site. One stylesheet, no build step. */

:root {
  --bg: hsl(0 0% 3.9%);
  --surface: #1A1A1A;
  --silver: #C8C8C8;
  --text: hsl(50 20% 94%);
  --light-bg: hsl(0 0% 96%);
  --light-text: hsl(0 0% 8%);
  --light-muted: hsl(0 0% 28%);
  --charcoal: hsl(0 0% 21%);
  --blue: #244D88;
  --sand: #947C5B;
  /* Lighter tint of the sand token, used only where small text must pass AA on the dark metallic band. */
  --sand-text: #BDA17A;
  --orange: #E0762F;
  --gutter: 16px;
  --max: 1080px;
  --head: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 16px; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--light-text); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Bands */
.band { padding: 64px 0; background-size: cover; background-position: center; }
.band-dark {
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(hsl(0 0% 3.9% / 0.35), hsl(0 0% 3.9% / 0.35)), url("backgrounds/metallic-dark-portrait.jpg");
}
.band-light {
  color: var(--light-text);
  background-color: var(--light-bg);
  background-image: url("backgrounds/metallic-light-portrait.jpg");
}
@media (min-width: 768px) {
  .band { padding: 96px 0; }
  .band-dark { background-image: linear-gradient(hsl(0 0% 3.9% / 0.35), hsl(0 0% 3.9% / 0.35)), url("backgrounds/metallic-dark-landscape.jpg"); }
  .band-light { background-image: url("backgrounds/metallic-light-landscape.jpg"); }
}

.eyebrow {
  font-family: var(--head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sand); flex: none; }
.band-dark .eyebrow, .hero .eyebrow { color: var(--sand-text); }
.band-light .eyebrow { color: var(--blue); }
.band-light .eyebrow::before { background: var(--blue); }

.lede { font-size: 1.0625rem; }
.band-dark .muted { color: var(--silver); }
.band-light .muted { color: var(--light-muted); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 14px 24px;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: hsl(0 0% 8%);
  background: linear-gradient(180deg, hsl(0 0% 88%), hsl(0 0% 81%) 55%, hsl(0 0% 68%));
}
.btn:hover { filter: brightness(1.06); }
.band-light .btn { color: var(--text); background: var(--charcoal); }
.band-light .btn:hover { background: hsl(0 0% 14%); filter: none; }
.btn-small { padding: 10px 14px; min-height: 40px; font-size: 0.875rem; }

:focus-visible { outline: 3px solid var(--silver); outline-offset: 3px; }
.band-light :focus-visible { outline-color: var(--blue); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(0 0% 3.9% / 0.96); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-header img { height: 44px; width: auto; }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--bg); color: var(--text); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, hsl(0 0% 3.9% / 0.82), hsl(0 0% 3.9% / 0.74) 55%, hsl(0 0% 3.9% / 0.9));
}
.hero .wrap { padding-top: 64px; padding-bottom: 72px; }
.hero h1 { max-width: 16ch; }
.hero .sub { max-width: 60ch; font-size: 1.0625rem; margin-bottom: 28px; }
.hero .fine { margin: 16px 0 0; font-size: 0.9375rem; color: var(--silver); }
@media (min-width: 768px) {
  .hero .wrap { padding-top: 120px; padding-bottom: 128px; }
}

/* Offer list and steps */
.numbered { list-style: none; counter-reset: n; margin: 32px 0; padding: 0; display: grid; gap: 12px; }
.numbered li { counter-increment: n; position: relative; padding: 20px 20px 20px 64px; border-radius: 6px; }
.numbered li::before {
  content: counter(n);
  position: absolute; left: 20px; top: 18px;
  font-family: var(--head); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.numbered li p { margin: 0; }
.numbered h3 { margin-bottom: 6px; }
.band-dark .numbered li { background: hsl(0 0% 10% / 0.92); }
.band-dark .numbered li::before { color: var(--silver); }
.band-light .numbered li { background: hsl(0 0% 100% / 0.72); }
.band-light .numbered li::before { color: var(--charcoal); }
@media (min-width: 768px) {
  .numbered.two-col { grid-template-columns: 1fr 1fr; }
}

/* Colours */
.swatches { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.swatches li { margin: 0; }
.swatches img { width: 100%; border-radius: 6px; aspect-ratio: 1 / 1; object-fit: cover; }
.swatches span { display: block; margin-top: 8px; font-family: var(--head); font-weight: 600; letter-spacing: 0.06em; }
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Proof */
.proof { display: grid; gap: 24px; margin-top: 32px; align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 6px; }
.shot figcaption { margin-top: 10px; color: var(--silver); }
@media (min-width: 768px) { .proof { grid-template-columns: 5fr 6fr; gap: 40px; align-items: center; } }

.review { margin: 0; padding: 24px 20px; background: hsl(0 0% 10% / 0.92); border-radius: 6px; }
.review blockquote { margin: 0 0 12px; font-size: 1.0625rem; }
.review figcaption { font-family: var(--head); font-weight: 600; color: var(--silver); }

/* Warranty */
.cards { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards li { background: hsl(0 0% 10% / 0.92); border-radius: 6px; padding: 24px 16px; text-align: center; }
.cards strong { display: block; font-family: var(--head); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.cards span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--silver); }
.cards .included span { color: var(--orange); font-weight: 600; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.terms-line { font-family: var(--head); font-weight: 600; font-size: 1.125rem; }

/* Form */
.book { display: grid; gap: 32px; }
@media (min-width: 900px) { .book { grid-template-columns: 5fr 7fr; gap: 56px; } }
.ticks { margin: 24px 0 0; padding: 0 0 0 20px; }
.ticks li { margin-bottom: 10px; }

form { background: hsl(0 0% 100% / 0.78); border-radius: 8px; padding: 20px 16px; }
@media (min-width: 600px) { form { padding: 32px; } }
.field { margin-bottom: 18px; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--light-muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--light-text);
  background: #fff;
  border: 1px solid hsl(0 0% 46%);
  border-radius: 4px;
  padding: 12px;
  min-height: 48px;
}
textarea { min-height: 112px; resize: vertical; }
::placeholder { color: hsl(0 0% 40%); opacity: 1; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; margin: 0; font-weight: 500; }
.choices input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: block; padding: 11px 14px; min-height: 46px; border: 1px solid hsl(0 0% 46%); border-radius: 4px; background: #fff; }
.choices input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--text); }
.choices input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 500; margin: 8px 0 24px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--charcoal); }
form .btn { width: 100%; }
.legal-note { font-size: 0.875rem; margin: 16px 0 0; color: var(--light-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: hsl(0 0% 10% / 0.92); border-radius: 6px; }
.faq summary { cursor: pointer; padding: 18px 44px 18px 20px; font-family: var(--head); font-weight: 600; font-size: 1.0625rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--silver); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 20px; }

/* Footer */
.site-footer { background: var(--bg); color: var(--text); padding: 56px 0 40px; }
.site-footer img { height: 72px; width: auto; margin-bottom: 20px; }
.site-footer p { max-width: 60ch; }
.site-footer nav ul { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a, .site-footer .contact a { display: inline-block; padding: 8px 0; color: var(--silver); text-underline-offset: 3px; }
.site-footer nav a:hover, .site-footer .contact a:hover { color: var(--text); }
.site-footer .contact { list-style: none; margin: 0 0 24px; padding: 0; }
.site-footer small { color: var(--silver); font-size: 0.875rem; }

/* Simple pages: thank-you and legal */
.page { min-height: 70vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); }
.page .logo-light { height: 84px; width: auto; margin-bottom: 28px; }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; font-family: var(--head); font-weight: 600; font-size: 1.125rem; }
.contact-lines li { margin-bottom: 8px; }
.contact-lines a { text-underline-offset: 3px; }
.video-slot:empty { display: none; }

.legal h2 { font-size: 1.375rem; margin-top: 40px; }
.legal h3 { margin-top: 24px; }
.legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal .effective { color: var(--light-muted); font-size: 0.9375rem; }
.legal address { font-style: normal; margin: 8px 0 16px; }
