/* ═══════════════════════════════════════════════════════════════
   STANWAYS AUTOBODIES — SHARED SUB-PAGE STYLES
   For service pages (accident-repair, hyundai-approved, etc.)
   Matches homepage design tokens exactly
═══════════════════════════════════════════════════════════════ */

:root {
  --ink:          #0a0d12;
  --ink-soft:     #12171f;
  --ink-mid:      #1c2535;
  --chrome:       #c8d6e8;
  --chrome-dim:   #6a7d94;
  --blue:         #08415C;
  --blue-dark:    #052d40;
  --blue-glow:    rgba(8, 65, 92, 0.12);
  --steel:        #6B818C;
  --white:        #ffffff;
  --light:        #f4f4f4;
  --border:       #e0e0e0;
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);

  --f-display:    'Playfair Display', serif;
  --f-body:       'DM Sans', sans-serif;
  --f-mono:       'DM Mono', monospace;

  --pad-h:        80px;
  --pad-v:        80px;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  background: var(--white);
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

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

/* ── NAV (matches homepage exactly: white bg, dark text) ─────── */
.nav, .nav--subpage {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__brand,
.nav__brand-link {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
.nav__brand a,
.nav__brand-link a {
  color: inherit;
  text-decoration: none;
}
.nav__brand small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 400;
  color: #6a7d94;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: #1a1a1a;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--blue); }
.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  transition: background .2s, transform .2s;
}
.nav__cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav__phone {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #6a7d94;
  flex-shrink: 0;
}
.nav__phone a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.nav__phone a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .nav, .nav--subpage { padding: 14px 20px; }
  .nav__links {
    display: none;
  }
  .nav__phone {
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  }

/* ── HERO ──────────────────────────────────────────────────── */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 100px 40px 80px;
  border-bottom: 4px solid var(--blue);
  text-align: center;
}
.page-hero__breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chrome-dim);
  margin-bottom: 24px;
}
.page-hero__breadcrumb a {
  color: var(--chrome-dim);
}
.page-hero__breadcrumb a:hover {
  color: var(--white);
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--chrome);
}
.page-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--chrome);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.page-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.page-hero__badge {
  background: rgba(8, 65, 92, 0.2);
  border: 1px solid rgba(8, 65, 92, 0.5);
  color: var(--chrome);
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── SECTION ───────────────────────────────────────────────── */
section.content {
  padding: var(--pad-v) var(--pad-h);
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  section.content { padding: 60px 24px; }
}

.section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

h2.display {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #111;
  letter-spacing: -0.5px;
}
h2.display em { font-style: italic; color: var(--blue); }
h2.display .em { color: var(--blue); }

h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  margin: 32px 0 16px;
  color: #111;
}

h4 {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #111;
}

p {
  font-size: 16px;
  color: #444;
  margin-bottom: 18px;
  max-width: 720px;
}
p.lead {
  font-size: 19px;
  line-height: 1.5;
  color: #222;
  font-weight: 400;
}

ul.list, ol.list {
  margin: 0 0 24px 18px;
  padding-left: 12px;
  max-width: 720px;
}
ul.list li, ol.list li {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.55;
  padding-left: 4px;
}
ul.list li::marker { color: var(--blue); }

.section-intro { max-width: 760px; margin-bottom: 32px; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* Highlight box */
.highlight {
  background: var(--light);
  border-left: 4px solid var(--blue);
  padding: 28px 32px;
  margin: 32px 0;
  border-radius: 4px;
}
.highlight h3 { margin-top: 0; color: var(--blue); }
.highlight p { color: #333; }
.highlight p:last-child { margin-bottom: 0; }

/* Grid of cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card h3,
.card h4 {
  font-family: var(--f-display);
  font-size: 20px;
  margin-top: 0;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.25;
}
.card p { color: #555; font-size: 15px; margin-bottom: 0; }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  background: var(--ink);
  color: var(--white);
  padding: 60px 40px;
  margin: 60px 0;
  border-radius: 6px;
  text-align: center;
}
.stats__n {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stats__l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

/* CTA section */
.cta {
  background: var(--ink);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
  margin-top: 80px;
}
.cta h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}
.cta p {
  color: var(--chrome);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 3px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--blue);
  color: var(--white) !important;
}
.btn--primary:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}
.btn--ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: var(--chrome-dim);
}
.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white) !important;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  color: #111;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 24px;
  color: var(--blue);
  transition: transform .2s;
  margin-left: 16px;
  font-weight: 300;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  color: #444;
  line-height: 1.6;
}

/* Map */
.map {
  width: 100%;
  height: 360px;
  border-top: 4px solid var(--blue);
  margin-top: 60px;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 40px 30px;
  border-top: 3px solid var(--blue);
}
.footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 24px 24px; }
}
.footer h3,
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.footer__brand {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer p { color: #aaa; font-size: 14px; line-height: 1.6; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #aaa; font-size: 14px; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BLOG ──────────────────────────────────────────────── */
.blog-hub {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 40px;
}
@media (max-width: 768px) {
  .blog-hub { padding: 40px 24px; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.post-card__cover {
  background: linear-gradient(135deg, var(--blue) 0%, var(--ink-mid) 100%);
  color: var(--white);
  padding: 36px 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.post-card__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}
.post-card__cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.post-card__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.post-card__body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__excerpt {
  color: #555;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.post-card__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--chrome-dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.post-card__read {
  color: var(--blue);
  font-weight: 600;
  font-family: var(--f-body);
  letter-spacing: 0.3px;
}

/* Featured (first card spans wider) */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 320px;
}
.post-card--featured .post-card__cover {
  flex: 1;
  min-height: auto;
}
.post-card--featured .post-card__body {
  flex: 1;
  padding: 40px;
  justify-content: center;
}
.post-card--featured .post-card__title {
  font-size: 32px;
}
.post-card--featured .post-card__excerpt {
  font-size: 16px;
}
@media (max-width: 768px) {
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__title { font-size: 24px; }
}

/* ── ARTICLE / BLOG POST ─────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px;
}
@media (max-width: 768px) {
  .article { padding: 40px 24px; }
}

.article__cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.article h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #111;
  letter-spacing: -0.5px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #666;
  flex-wrap: wrap;
}
.article__meta span {
  display: inline-flex;
  align-items: center;
}
.article__meta span + span::before {
  content: '·';
  margin-right: 16px;
  color: var(--chrome-dim);
}

.article__lead {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: #333;
  margin-bottom: 36px;
  font-weight: 400;
}
@media (max-width: 768px) {
  .article__lead { font-size: 19px; }
}

.article p,
.article ul,
.article ol {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 22px;
  max-width: none;
}
.article ul,
.article ol {
  padding-left: 24px;
}
.article li {
  margin-bottom: 8px;
}
.article li::marker { color: var(--blue); }

.article h2 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 600;
  margin: 48px 0 18px;
  color: #111;
  line-height: 1.2;
}

.article h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 14px;
  color: #111;
}

.article blockquote {
  border-left: 4px solid var(--blue);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #333;
}

.article a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article a:hover {
  color: var(--blue-dark);
}

.article strong { color: #111; }

.related {
  background: var(--light);
  padding: 60px 40px;
  margin-top: 80px;
}
.related__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.related h3 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}


/* ─────────────────────────────────────────────────────
   ADDITIONS — visual unification with homepage
   Added: Apr 26
   ───────────────────────────────────────────────────── */



/* Prestige polish — section-label uppercase mono */
section.content .section-label,
section .section-label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Card lift / shadow matching homepage feel */
.card {
  background: #ffffff;
  border: 1px solid #e8eaee;
  border-radius: 4px;
  padding: 32px 28px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(8, 65, 92, 0.10);
}

/* Dark CTA panel before footer (visual unification) */
.cta-dark {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}
.cta-dark h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-dark p {
  font-size: 17px;
  color: rgba(200, 214, 232, 0.75);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-dark .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-dark .btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}
.cta-dark .btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.cta-dark .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 36px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}
.cta-dark .btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}
@media (max-width: 768px) {
  .cta-dark { padding: 60px 20px; }
  .cta-dark .cta-buttons { flex-direction: column; }
  .cta-dark .btn-primary,
  .cta-dark .btn-secondary { width: 100%; max-width: 280px; margin: 0 auto; }
}

/* Improved section spacing on sub-pages */
section.content {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  section.content { padding: 60px 20px; }
}

/* Improved breadcrumb visibility */
.page-hero__breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200, 214, 232, 0.7);
}
.page-hero__breadcrumb a {
  color: rgba(200, 214, 232, 0.7);
}
.page-hero__breadcrumb a:hover {
  color: var(--white);
}


/* ── FOOTER (matches homepage) ─────────────────────────────── */
.footer__brand-col img,
.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}
.footer__brand-col p {
  font-size: 13px;
  color: rgba(200, 214, 232, 0.55);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 214, 232, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 214, 232, 0.65);
  transition: all 0.2s;
}
.footer__social a:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(8, 65, 92, 0.2);
}



/* Logo size constraint (sub-pages) */
.nav__logo-img {
  height: 36px !important;
  width: auto !important;
  max-height: 36px !important;
  display: block;
}
@media (max-width: 768px) {
  .nav__logo-img {
    height: 28px !important;
    max-height: 28px !important;
  }
}
