/*
Theme Name: Fremont Wrecked Cars
Theme URI: https://fremontwreckedcars.com/
Author: Blue Ribbon Auto Sales LLC (TrackWala)
Description: Purpose-built theme for fremontwreckedcars.com. Every page outputs its own
  title, meta description, canonical, Open Graph tags and JSON-LD from its template file,
  so no SEO plugin is required or wanted. Do not switch themes without replacing this.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: fremont-wrecked-cars
*/

/* ==========================================================================
   Fremont Wrecked Cars
   Operated by Blue Ribbon Auto Sales LLC (TrackWala)
   Brand: royal purple #6B21A8 with gold accent
   One stylesheet for the whole site. Edit a colour here and it changes everywhere.
   ========================================================================== */

:root {
  --purple:        #6B21A8;
  --purple-deep:   #3F1263;
  --purple-darker: #2A0A44;
  --purple-tint:   #F6EFFC;
  --purple-line:   #E3D2F2;

  --gold:          #E8B93E;
  --gold-deep:     #B98A12;

  --ink:           #1C2030;
  --ink-soft:      #5A6070;
  --ink-faint:     #8A8FA0;

  --white:         #FFFFFF;
  --paper:         #FAF9FC;
  --line:          #E4E4EC;

  --green:         #1D7A4C;
  --red:           #B3261E;

  --wrap:          1080px;
  --radius:        12px;
  --shadow:        0 1px 3px rgba(28,32,48,.08), 0 8px 24px rgba(28,32,48,.06);
  --shadow-lift:   0 2px 6px rgba(28,32,48,.10), 0 16px 40px rgba(28,32,48,.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--purple-deep); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .5em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- layout ---------- */

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

section { padding: 64px 0; }
section.tight { padding: 44px 0; }
section.tinted { background: var(--paper); }
section.purple-tint { background: var(--purple-tint); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.eyebrow.on-dark { color: var(--gold); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em;
  color: var(--purple); text-decoration: none; margin-right: auto;
  line-height: 1.15;
}
.brand span { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--purple); border-bottom-color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--gold); }

.header-phone {
  font-weight: 800; color: var(--purple); text-decoration: none;
  white-space: nowrap; font-size: .98rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 10px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold); color: var(--purple-darker);
  box-shadow: 0 4px 14px rgba(232,185,62,.35);
}
.btn-gold:hover { background: #F0C654; color: var(--purple-darker); }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-deep); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-outline { background: #fff; color: var(--purple); border-color: var(--purple-line); }
.btn-outline:hover { border-color: var(--purple); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 0; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(232,185,62,.20), transparent 62%),
    linear-gradient(158deg, #6B21A8 0%, #4C1580 46%, #2A0A44 100%);
  color: #fff;
  padding: 76px 0 84px;
}
.hero h1 {
  color: #FFFFFF !important;
  max-width: 20ch;
  margin-bottom: 20px;
}
.hero p.hero-sub {
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  color: rgba(255,255,255,.90) !important;
  max-width: 56ch;
  margin-bottom: 0;
}
.hero .btn-row { margin-top: 30px; }
.hero-note {
  margin-top: 22px; font-size: .92rem;
  color: rgba(255,255,255,.72) !important;
}

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-fact {
  flex: 1 1 190px;
}
.hero-fact strong {
  display: block; font-size: 1.42rem; color: var(--gold); line-height: 1.2;
}
.hero-fact span { font-size: .89rem; color: rgba(255,255,255,.80); }

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-step { position: relative; padding-top: 30px; }
.step-num {
  position: absolute; top: -16px; left: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 4px 10px rgba(107,33,168,.3);
}

.card-problem { border-left: 4px solid var(--red); }
.card-problem h3 { font-size: 1.08rem; }
.card-problem .fix { color: var(--green); font-weight: 600; }

/* ---------- proof ---------- */

.proof {
  background: var(--purple-darker);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.proof h3 { color: #fff; margin-top: 0; }
.proof p { color: rgba(255,255,255,.86); }
.proof-figures { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.proof-fig strong { display: block; font-size: 1.7rem; color: var(--gold); line-height: 1.2; }
.proof-fig span { font-size: .87rem; color: rgba(255,255,255,.75); }

/* ---------- comparison table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }

table.compare {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: .96rem;
}
table.compare th, table.compare td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  background: var(--purple); color: #fff; font-weight: 700; font-size: .92rem;
  border-bottom: none;
}
table.compare thead th:last-child { background: var(--purple-deep); }
table.compare tbody th { font-weight: 700; color: var(--ink); width: 24%; }
table.compare td:last-child { background: var(--purple-tint); font-weight: 600; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }

.table-note { font-size: .87rem; color: var(--ink-faint); }

/* ---------- lists ---------- */

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
}
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.area-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.area-list li {
  margin: 0; background: #fff; border: 1px solid var(--purple-line);
  border-radius: 999px; padding: 7px 16px; font-size: .92rem; font-weight: 600;
  color: var(--purple-deep);
}

/* ---------- faq ---------- */

.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.04rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--purple);
  font-weight: 400; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item summary:hover { background: var(--purple-tint); }
.faq-answer { padding: 18px 22px 4px; }
.faq-answer p:last-child { margin-bottom: 1.1em; }

/* ---------- callout ---------- */

.callout {
  border-left: 4px solid var(--gold);
  background: var(--paper);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- final cta ---------- */

.cta-band {
  background: linear-gradient(158deg, #6B21A8 0%, #3F1263 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto .6em; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 55ch; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- contact blocks ---------- */

.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.05rem; margin-top: 0; }
.contact-card .big {
  font-size: 1.35rem; font-weight: 800; color: var(--purple);
  text-decoration: none; display: inline-block; margin-bottom: 6px; word-break: break-word;
}
.contact-card p:last-child { margin-bottom: 0; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 7px 0; margin: 0; }
.hours-list li:last-child { border-bottom: none; }
.hours-list span:first-child { font-weight: 600; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--purple-darker); color: rgba(255,255,255,.80);
  padding: 52px 0 34px; font-size: .93rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #F4D179; }

.footer-top { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: .84rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-identity { color: #fff; font-weight: 700; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px; font-size: .84rem; color: rgba(255,255,255,.62);
  line-height: 1.6;
}
.footer-legal p { margin-bottom: .7em; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ---------- breadcrumb ---------- */

.crumbs { font-size: .88rem; color: var(--ink-faint); padding: 16px 0 0; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--purple); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 62px; }
  .header-inner { min-height: 58px; padding: 10px 20px; }
  .brand { font-size: .95rem; }
  .header-phone { font-size: .92rem; }
  .site-nav { order: 3; width: 100%; gap: 16px; padding-top: 4px; }
  .site-nav a { font-size: .88rem; }
  .brand { margin-right: auto; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .proof-figures { gap: 18px; }
}

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

@media print {
  .site-header, .cta-band, .btn-row { display: none; }
  body { color: #000; font-size: 12pt; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1, .hero p.hero-sub { color: #000 !important; }
}

/* ---------- reviews ---------- */

.review-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}

.review-stars {
  color: var(--gold-deep);
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-stars-off { color: var(--line); }

.review-card blockquote { margin: 0; }
.review-card blockquote p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.review-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .89rem;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.review-meta strong { color: var(--ink); font-size: .95rem; }
.review-meta a { color: var(--purple); }
