/* =========================================================
   Stone's Auto Glass – site styles
   Colours come from the logo: black, white and racing red.
   ========================================================= */

:root {
  --red: #C8102E;
  --red-dark: #A00D25;
  --red-light: #FF4D63;   /* red that stays readable on black */
  --black: #111111;
  --ink: #111111;
  --body: #4A4A4A;
  --muted: #555555;
  --grey-bg: #F4F4F2;
  --header-bg: #ECECEA;
  --line: #D6D6D3;
  --white: #FFFFFF;
  --error: #B00020;
  --radius: 6px;
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Helvetica, sans-serif;
  --header-h: 120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: clip;
}

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

a { color: var(--red); }
a:hover { color: #8E0B20; }

input, select, textarea, button { font: inherit; }

[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: var(--red-light); }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  font-size: clamp(38px, 7.5vw, 68px);
  line-height: 0.98; letter-spacing: -0.01em;
}
.display--section { font-size: clamp(32px, 5.5vw, 48px); line-height: 1; }
.display--form { font-size: clamp(26px, 4vw, 32px); line-height: 1.05; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 4px; border: 2px solid transparent;
  font-weight: 700; font-size: 18px; text-align: center; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--black { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--black:hover { background: #333333; border-color: #333333; color: var(--white); }
.btn--block { width: 100%; font-size: 17px; padding: 14px 16px; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; }
.brand img {
  height: clamp(56px, 8vw, 84px); width: auto;
  mix-blend-mode: multiply; /* removes the logo's white square on the grey bar */
}
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }

.nav-link, .nav-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  border-radius: 4px; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-link {
  padding: 10px 18px; background: var(--white);
  border: 1px solid #CFCFCC; color: var(--ink);
}
.nav-link:hover { border-color: var(--red); color: var(--red); }
.nav-cta { padding: 10px 22px; background: var(--red); border: 1px solid var(--red); color: var(--white); }
.nav-cta:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); }
.hero-inner {
  display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 56px);
  padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 9vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-lead { margin: 0; font-size: clamp(17px, 2.2vw, 20px); color: #D6D6D6; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-media { display: flex; flex-direction: column; gap: 16px; }
.hero-photo {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.stat { border-top: 3px solid var(--red); padding-top: 10px; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3.4vw, 30px); }
.stat-label { font-size: 14px; color: #BDBDBD; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; background: var(--white); }
.section--grey { background: var(--grey-bg); }
.section--dark { background: var(--black); color: var(--white); }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-md { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.grid { display: grid; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.grid--work { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 20px; }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }

/* Services */
.card {
  background: var(--grey-bg); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.card h3, .step h3 { margin: 0; font-size: 22px; font-weight: 700; }
.card p, .step p { margin: 0; color: var(--body); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 64px; line-height: 1; color: var(--red);
}

/* Our work */
.work-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.work-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.work-item figcaption { display: flex; flex-direction: column; gap: 2px; }
.work-item strong { font-size: 18px; }
.work-item span { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.contact { display: flex; flex-direction: column; gap: 28px; }
.contact-lead { margin: 0; color: #D6D6D6; font-size: 18px; }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.contact-list dt { color: #BDBDBD; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--white); }
.contact-list a.link-red { color: var(--red-light); }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Form ---------- */
.quote-form {
  position: relative; min-width: 0;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 12px 14px;
  font-size: 16px; /* 16px stops iPhones zooming in */
  color: var(--ink); background: var(--white);
  border: 1px solid #767676; border-radius: 4px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF6F7; }
.field-error { font-weight: 500; font-size: 14px; color: var(--error); }
.field-hint { font-size: 13px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { gap: 12px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.form-status.is-success { background: #E7F5EC; color: #1B6B3A; }
.form-status.is-error { background: #FDECEE; color: var(--error); }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #000000; color: #BDBDBD; font-size: 14px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; padding-top: 32px; padding-bottom: 32px;
}
.footer-inner p { margin: 0; }
.socials { display: flex; gap: 16px; justify-content: center; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #222222; color: var(--white); transition: background .15s;
}
.social:hover { background: var(--red); color: var(--white); }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  :root { --header-h: 84px; }
  .btn { font-size: 17px; padding: 14px 20px; }
  .hero-actions .btn { flex: 1 1 200px; }
}

/* 404 page */
.page-404 { padding-top: 96px; padding-bottom: 96px; min-height: 100vh; justify-content: center; }

/* =========================================================
   Multi-page additions (Oct 2026 SEO upgrade)
   ========================================================= */

/* ---------- Navigation: Services dropdown + mobile menu ---------- */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; gap: 6px; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav-drop[open] > summary { border-color: var(--red); color: var(--red); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120; min-width: 250px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}
.nav-drop-panel a { padding: 10px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-drop-panel a:hover, .nav-drop-panel a[aria-current="page"] { background: var(--grey-bg); color: var(--red); }
.nav-link[aria-current="page"] { border-color: var(--red); color: var(--red); }

.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid #CFCFCC; border-radius: 4px; background: var(--white); color: var(--ink);
  font-weight: 700; cursor: pointer;
}
.menu-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle-bars::before { top: -6px; } .menu-toggle-bars::after { top: 6px; }
.header-actions { display: none; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .header-actions { display: flex; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 0 12px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link, .main-nav .nav-cta { justify-content: flex-start; }
  .main-nav > .nav-cta { display: none; }
  .nav-drop-panel { position: static; box-shadow: none; margin-top: 8px; min-width: 0; }
  .site-header { max-height: 100vh; overflow-y: auto; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14px; color: #BDBDBD; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #8A8A8A; }
.breadcrumbs a { color: #E6E6E6; }
.breadcrumbs [aria-current="page"] { color: #BDBDBD; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--black); color: var(--white); }
.page-hero-inner {
  display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 5vw, 48px); padding-bottom: clamp(40px, 6vw, 64px);
}
.page-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 56px); }
.page-hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }

/* ---------- Article / prose ---------- */
.content-layout { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.prose { max-width: 760px; font-size: 18px; color: #222222; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 1.8em; margin-bottom: 0; font-family: var(--font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: clamp(26px, 4vw, 34px); line-height: 1.05; color: var(--ink);
}
.prose h3 { margin-top: 1.4em; margin-bottom: 0; font-size: 21px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose figure { margin: 1.5em 0 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .note { background: var(--grey-bg); border-radius: var(--radius); padding: 16px 18px; font-size: 16px; }
.prose .sources { font-size: 15px; color: var(--muted); }
.lead-strong { font-size: 20px; font-weight: 600; color: var(--ink); }

.side-card {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--black); color: var(--white); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.side-card h2 { margin: 0; font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.side-card p { margin: 0; color: #D6D6D6; font-size: 16px; }
.side-card .btn { width: 100%; font-size: 17px; }
@media (max-width: 999px) { .side-card { position: static; } }

/* ---------- Quick facts / checklists ---------- */
.fact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.fact-list li { position: relative; padding-left: 30px; }
.fact-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--grey-bg); border-radius: var(--radius); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--body); font-size: 17px; }
.faq details > div p { margin: 0; }
.faq details > div p + p { margin-top: 0.8em; }

/* ---------- Link cards (services, areas, vehicles, guides) ---------- */
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.section--grey .link-card { background: var(--white); }
.link-card:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); color: var(--ink); }
.link-card strong { font-size: 19px; }
.link-card span { color: var(--body); font-size: 15px; }
.link-card .more { color: var(--red); font-weight: 700; font-size: 15px; margin-top: auto; }
.card a.more { color: var(--red); font-weight: 700; text-decoration: none; margin-top: auto; }
.card a.more:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.chips a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--red); color: var(--white); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: clamp(36px, 6vw, 56px); padding-bottom: clamp(36px, 6vw, 56px);
}
.cta-inner h2 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 4.5vw, 40px); line-height: 1; }
.cta-inner p { margin: 8px 0 0; font-size: 18px; color: #FFE5E9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--white { background: var(--white); border-color: var(--white); color: var(--red); }
.btn--white:hover { background: #FFE5E9; border-color: #FFE5E9; color: var(--red-dark); }
.cta-band .btn--outline:hover { color: var(--red); }

/* ---------- Footer links ---------- */
.footer-links {
  width: 100%; display: grid; gap: 28px; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  padding-bottom: 24px; border-bottom: 1px solid #222222;
}
.footer-links h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #BDBDBD; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ---------- Form additions ---------- */
.field-hint--inline { font-size: 13px; color: var(--muted); font-weight: 400; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.contact-card { background: var(--grey-bg); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.contact-card h2 { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-card p, .contact-card a { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.contact-card a.link-red { color: var(--red); }

.post-meta { color: #BDBDBD; font-size: 15px; }
.contact-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: 18px; color: #D6D6D6; }
.section-note { margin: 0; color: var(--body); font-size: 17px; }
.section-lead { margin: 0; color: var(--body); font-size: 18px; }
.section--dark .section-lead { color: #D6D6D6; }
.display--home { font-size: clamp(34px, 5.4vw, 60px); }
picture { display: block; }
/* Page photos are square so the whole vehicle (windscreen and plate) stays in view */
.page-hero-photo { aspect-ratio: 1 / 1; max-width: 480px; margin-inline-start: auto; }
@media (max-width: 999px) { .page-hero-photo { margin-inline: auto; } }
