/* ===============================================================
   Country Auto Service LLC Global Stylesheet
   =============================================================== */

:root {
  /* Patriotic palette from the business card: navy nameplate, gold border, flag red.
     Names kept as --steel / --amber for continuity; values are navy / gold. */
  --steel:     #0f2a5c;   /* navy: headers, footer, hero */
  --steel-2:   #16356e;
  --steel-3:   #24477f;
  --amber:     #d9a93a;   /* gold: trim, borders, icons (the nameplate's gold) */
  --amber-dk:  #b0842a;
  --red:       #bf2033;   /* flag red: primary CTAs */
  --red-dk:    #9a1826;
  --ink:       #172033;
  --muted:     #5a6577;
  --line:      #e2e7ef;
  --smoke:     #f3f6fb;
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 42, 92, .08);
  --shadow-md: 0 12px 30px rgba(15, 42, 92, .14);
  --shadow-lg: 0 26px 60px rgba(15, 42, 92, .22);
  --radius:    12px;
  --radius-sm: 8px;
  --wrap:      1160px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display:   'Barlow Condensed', 'Arial Narrow', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  color: var(--steel);
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; }
p  { margin: 0 0 1rem; }

a { color: #1f4f9e; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

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

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--smoke); }
.section--dark { background: var(--steel); color: #c3ccd8; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section--dark .eyebrow { color: var(--amber); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.section--dark .lead { color: #aab6c4; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(191, 32, 51, .35); }
.btn--primary:hover { background: var(--red-dk); color: #fff; box-shadow: 0 12px 26px rgba(191, 32, 51, .45); }
.btn--gold { background: var(--amber); color: var(--steel); box-shadow: 0 8px 20px rgba(217, 169, 58, .35); }
.btn--gold:hover { background: var(--amber-dk); color: var(--steel); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--steel); }
.btn--dark { background: var(--steel); color: #fff; }
.btn--dark:hover { background: var(--steel-3); color: #fff; }
.btn--lg { font-size: 1.3rem; padding: 17px 38px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--steel); color: #b8c2ce; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #b8c2ce; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__badge { color: var(--amber); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 860px) { .topbar__item--hide, .topbar__badge { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; color: var(--steel); }
.brand:hover { color: var(--steel); }

/* Nameplate logo — mirrors the gold-bordered navy plaque on Tyler's business card */
.brand__plate {
  position: relative;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, #17376f, #0e2856);
  border: 2px solid var(--amber);
  border-radius: 10px;
  padding: 7px 20px 8px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 42, 92, .28);
}
.brand__plate::after {          /* thin inner gold hairline = the card's double border */
  content: ""; position: absolute; inset: 2px;
  border: 1px solid rgba(217, 169, 58, .5); border-radius: 6px;
  pointer-events: none;
}
.brand:hover .brand__plate { box-shadow: 0 5px 16px rgba(15, 42, 92, .38); }
.brand__name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: .015em; text-transform: uppercase;
  color: #fff; line-height: 1; white-space: nowrap;
}
.brand__tag {
  font-family: var(--display); font-weight: 600;
  font-size: .64rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--amber); margin-top: 4px; white-space: nowrap;
}
@media (max-width: 380px) { .brand__name { font-size: 1.3rem; } .brand__plate { padding: 6px 14px 7px; } }

.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; color: var(--steel-2);
}
.nav__links a:hover, .nav__links a.active { color: var(--red); }
.nav__links .nav__cta a { color: var(--steel); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--steel); border-radius: 2px; }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 460px; }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 15px 24px; }
  .nav__links .nav__cta { padding: 14px 24px 20px; border-top: 1px solid var(--line); }
  .nav__links .nav__cta a { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(11,30,66,.90), rgba(9,24,54,.95)),
    repeating-linear-gradient(115deg, #16356e 0 22px, #112c5c 22px 44px);
  color: #d6dee9;
  padding: 84px 0 98px;
  overflow: hidden;
}
.hero .eyebrow { color: var(--amber); }
/* Flag-inspired tricolor line across the bottom of the hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 33.33%, #ffffff 33.33% 66.66%, #1f4f9e 66.66% 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero__lead { font-size: 1.2rem; color: #b3bfcc; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: #9fadbc; }
.hero__trust svg { width: 19px; height: 19px; color: var(--amber); flex: none; }

.hero__card {
  background: var(--steel-2);
  border: 2px solid var(--amber);   /* gold nameplate border */
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: var(--amber); margin-bottom: 18px; font-size: 1.55rem; }
.hours { list-style: none; margin: 0 0 22px; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12);
  font-size: .98rem; color: #c3ccd8;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-weight: 600; color: #fff; }
.hours li.is-closed span:last-child { color: #8b96a4; font-weight: 500; }
.hero__card .btn { width: 100%; }
.hero__card-note { font-size: .86rem; color: #8b96a4; margin: 14px 0 0; text-align: center; }

@media (max-width: 900px) {
  .hero { padding: 60px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Strip ---------- */
.strip { background: var(--red); border-top: 3px solid var(--amber); border-bottom: 3px solid var(--amber); }
.strip .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px;
}
.strip p {
  margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.strip a.btn { background: #fff; color: var(--red); }
.strip a.btn:hover { background: var(--steel); color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-top: 4px solid var(--amber);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(15, 42, 92, .09);
  color: var(--steel);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card--dark { background: var(--steel); border-color: var(--steel); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #a8b3c0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center; padding: 26px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat__num {
  font-family: var(--display); font-weight: 700; font-size: 2.4rem;
  color: var(--steel); text-transform: uppercase; line-height: 1;
}
.stat__num span { color: var(--red); }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.media-frame {
  width: 100%; border-radius: var(--radius);
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
  background: var(--smoke);
}
.media-placeholder {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--smoke); color: var(--muted); padding: 24px;
}
.media-placeholder svg { width: 46px; height: 46px; color: #b6c0cc; margin: 0 auto 10px; }
.media-placeholder span { font-size: .92rem; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { position: relative; padding: 0 0 12px 34px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step__num {
  counter-increment: step;
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--steel); color: var(--amber);
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
}
.step__num::before { content: counter(step); }
.step p { color: var(--muted); margin: 0; }

/* ---------- Service list (services page) ---------- */
.svc-block {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 0; }
.svc-block__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 10px; background: var(--steel); color: var(--amber);
}
.svc-block__icon svg { width: 28px; height: 28px; }
.svc-block h3 { margin-bottom: .3em; }
.svc-block p { color: var(--muted); margin: 0 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .82rem; padding: 4px 12px; border-radius: 999px;
  background: var(--smoke); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--steel);
  text-transform: uppercase; letter-spacing: .02em;
  padding: 18px 52px 18px 22px; position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--red); line-height: 1;
}
.faq__item.open .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(15, 42, 92, .09); color: var(--steel); }
.info-row__icon svg { width: 21px; height: 21px; }
.info-row h4 { margin: 0 0 2px; color: var(--steel); }
.info-row p, .info-row a { margin: 0; font-size: 1rem; color: var(--muted); }
.info-row a { color: var(--red); font-weight: 600; }

.map-frame {
  border: 0; width: 100%; height: 100%; min-height: 420px;
  border-radius: var(--radius); display: block;
}
.map-shell { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--smoke); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--steel);
  border-radius: var(--radius);
  padding: 56px 34px;
  text-align: center;
  color: #b8c2ce;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg,
    var(--red) 0 33.33%, #ffffff 33.33% 66.66%, #1f4f9e 66.66% 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel); color: #97a3b1; padding: 60px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { display: block; color: #97a3b1; padding: 5px 0; }
.site-footer a:hover { color: var(--amber); }
.footer-brand p { color: #8b96a4; margin: 12px 0 0; max-width: 340px; }
.footer-info { display: block; padding: 5px 0; color: #8b96a4; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .88rem; color: #7c8896;
}

/* ---------- Floating call button ---------- */
.call-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 10px 26px rgba(15,42,92,.4);
  transition: transform .15s ease;
}
.call-float:hover { transform: scale(1.08); color: #fff; }
.call-float svg { width: 26px; height: 26px; }
@media (min-width: 901px) { .call-float { display: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .call-float:hover { transform: none; }
}
