/* =========================================================================
   College Auto Repair & Sales — Demo Website (Draft 1)
   Shared stylesheet. Plain static site. Palette: black / orange / white.
   Built to be easy to edit in future revisions — tokens live in :root.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --black:    #0c0c0e;   /* page background */
  --panel:    #141417;   /* cards / raised sections */
  --panel-2:  #1d1d22;   /* hover / borders */
  --orange:   #ff6a00;   /* primary accent (industrial orange) */
  --orange-d: #e25c00;   /* accent hover */
  --white:    #ffffff;
  --text:     #ececf0;   /* default body text */
  --muted:    #a0a0aa;   /* secondary text */
  --line:     #2a2a31;   /* hairline borders */
  --gold:     #ffb300;   /* review stars */

  --maxw: 1140px;
  --radius: 12px;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);

  --font-head: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* room for the fixed bottom banner */
  padding-bottom: 64px;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-d); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Accent used inside the wordmark / headings */
.accent { color: var(--orange); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: #1a0e00; }
.btn--primary:hover { background: var(--orange-d); color: #1a0e00; }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--block { width: 100%; justify-content: center; }

/* ======================================================================
   HEADER / NAV
   ====================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,12,14,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Text wordmark — easy to swap for a real logo later */
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
}
.wordmark:hover { color: var(--white); }
.wordmark .accent { color: var(--orange); }
.wordmark small {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
}

.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 10px 20px; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--white);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
}

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,106,0,.18), transparent 60%),
    var(--black);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 78px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* small stat row under hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .92rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ======================================================================
   GENERIC CARD GRIDS
   ====================================================================== */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); }
.card h3 { color: var(--white); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,106,0,.12);
  color: var(--orange);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
a.card { color: var(--text); display: block; }
a.card:hover { color: var(--text); }

.section-head { margin-bottom: 38px; }

/* ======================================================================
   REVIEWS
   ====================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 14px; }
.review p { color: var(--text); font-style: italic; }
.review .review-by {
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: .9rem;
  font-style: normal;
}
.review .tag-verified { color: var(--orange); font-weight: 600; }
.review .tag-placeholder {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 12px;
}

/* ======================================================================
   INFO STRIP (address / phone / hours)
   ====================================================================== */
.info-strip {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info-strip .grid--3 { gap: 0; }
.info-item {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.info-item:first-child { border-left: none; }
.info-item .label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.info-item p { margin: 0; color: var(--text); }
.info-item a { color: var(--text); }
.info-item a:hover { color: var(--orange); }

/* ======================================================================
   CTA BAND
   ====================================================================== */
.cta-band {
  background:
    linear-gradient(0deg, rgba(255,106,0,.1), rgba(255,106,0,.1)),
    var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .hero-actions { justify-content: center; }

/* ======================================================================
   SERVICES PAGE LIST
   ====================================================================== */
.service-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .15s ease;
}
.service-row:hover { border-color: var(--orange); }
.service-row .num {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.1rem;
  min-width: 34px;
}
.service-row h3 { color: var(--white); margin-bottom: 4px; }
.service-row p { color: var(--muted); margin: 0; }

/* ======================================================================
   ABOUT PAGE
   ====================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 19px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--orange);
}
.feature-list li strong { color: var(--white); }

/* Business info block (about + contact) */
.bizblock {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.bizblock dl { margin: 0; }
.bizblock dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 18px;
}
.bizblock dt:first-child { margin-top: 0; }
.bizblock dd { margin: 4px 0 0; color: var(--text); }
.bizblock dd a { color: var(--text); }
.bizblock dd a:hover { color: var(--orange); }

/* ======================================================================
   CONTACT PAGE
   ====================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(255,106,0,.14), transparent 60%),
    var(--black);
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.site-footer {
  background: #0a0a0c;
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid li { color: var(--muted); margin: 0 0 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--orange); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-wordmark .accent { color: var(--orange); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .85rem;
}

/* ======================================================================
   PROMO POPUP MODAL (injected by main.js)
   ====================================================================== */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.promo-overlay[hidden] { display: none; }

.promo-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--orange);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 30px 30px;
  text-align: center;
  animation: pop-in .25s ease;
}
@keyframes pop-in {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.promo-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.promo-close:hover { border-color: var(--orange); color: var(--orange); }
.promo-modal .eyebrow { margin-bottom: 8px; }
.promo-modal h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 14px; }
.promo-price { margin: 14px 0 6px; }
.promo-price .was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.1rem;
  margin-right: 10px;
}
.promo-price .now {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--orange);
  font-size: 2.4rem;
}
.promo-care {
  color: var(--text);
  font-size: 1rem;
  margin: 10px 0 16px;
}
.promo-care strong { color: var(--white); }
.promo-deadline {
  background: rgba(255,106,0,.1);
  border: 1px solid rgba(255,106,0,.4);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .92rem;
  margin-bottom: 16px;
}
.promo-deadline strong { color: var(--orange); }
.promo-disclaimer {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  margin: 0;
}

/* ======================================================================
   PERSISTENT BOTTOM BANNER (injected by main.js)
   ====================================================================== */
.demo-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--orange);
  color: #160c00;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.4;
  box-shadow: 0 -6px 20px -10px rgba(0,0,0,.6);
}
.demo-banner strong { font-weight: 800; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
  .hero-media { order: -1; }
  .grid--3, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-strip .grid--3 { grid-template-columns: 1fr; }
  .info-item { border-left: none; border-top: 1px solid var(--line); }
  .info-item:first-child { border-top: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--3, .grid--2, .reviews-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .promo-price .now { font-size: 2rem; }
}
