/* Country Acres Auto and Glass — site styles */

:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --charcoal: #1f1f1f;
  --charcoal-2: #2b2b2b;
  --text: #222;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
p { margin: 0 0 1em; }

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

/* Headings that keep the page outline in order (h1 > h2 > h3) but aren't shown on screen. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand span { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand span small { display: block; font-weight: 400; color: #ccc; font-size: .8rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--charcoal-2); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.site-nav a.btn { background: var(--red); box-shadow: none; }
.site-nav a.btn:hover { background: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 4px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--red); border: 2px solid var(--red); padding: 10px 20px; }
.btn-ghost:hover { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--charcoal); background-size: cover; background-position: center;
  color: #fff; text-align: center; padding: 72px 0 64px;
}
.hero p { max-width: 760px; margin: 0 auto 1.4em; font-size: 1.1rem; color: #eee; }
.hero p a { color: #fff; }
.hero p a:hover { color: #ff9aa9; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-top: 4px solid var(--red); padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07); border-radius: 4px;
}
.card h3 { color: var(--charcoal); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split + .split { margin-top: 56px; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.12); width: 100%; }

.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.steps li { counter-increment: step; background: #fff; padding: 24px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }

.map-figure { margin: 0; }
.map-figure figcaption { margin-top: 8px; text-align: center; }

.video-wrap video { width: 100%; border-radius: 4px; background: #000; }

.cta-band { background: var(--red); color: #fff; text-align: center; padding: 40px 0; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--charcoal); color: #fff; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.contact-list li { display: flex; gap: 6px; margin-bottom: .5em; }
.contact-list strong { flex-shrink: 0; min-width: 7.5em; }
.contact-list span { min-width: 0; overflow-wrap: anywhere; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.directions, .process { padding-left: 1.2em; }
.directions li, .process li { margin-bottom: .3em; }

.find-us .map-block { margin-top: 32px; }
.map-embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.12); background: #e5e3df;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Only on touchscreens: see the script on the contact page. */
.map-cover { display: none; }
@media (hover: none) {
  .map-cover {
    display: flex; align-items: flex-end; justify-content: center;
    position: absolute; inset: 0; width: 100%; padding: 0 0 14px; border: 0;
    background: transparent; cursor: pointer; font: inherit;
  }
  .map-cover span {
    background: rgba(31,31,31,.85); color: #fff; font-size: .9rem; font-weight: 600;
    padding: 8px 14px; border-radius: 999px;
  }
}
.map-directions { display: block; text-align: center; margin-top: 16px; }

form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.contact-form .full { grid-column: 1 / -1; }
form.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #bbb; border-radius: 4px; background: #fff;
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; }
form.contact-form .radio-row input { width: auto; padding: 0; margin: 0; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.form-status.error { background: #fdecee; color: var(--red-dark); }
.honeypot { display: none; }
.form-thanks { background: #e6f4ea; color: #1e6b34; border-left: 5px solid #1e6b34; border-radius: 4px; padding: 24px; align-self: start; }
.form-thanks h3 { color: #1e6b34; margin-top: 0; }
.form-thanks:focus { outline: none; }
[hidden] { display: none !important; }
button.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #ddd; padding: 48px 0 20px; font-size: .98rem; }
.site-footer h3 { color: #fff; font-size: 1rem; border-bottom: 2px solid var(--red); padding-bottom: 6px; display: inline-block; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff9aa9; }
.footer-contact {
  display: flex; flex-wrap: wrap; gap: 16px 56px;
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid #444;
}
.footer-contact p { margin: 0; font-size: 1.1rem; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid address { font-style: normal; }
.experience { color: #fff; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 1em; }
.copyright { border-top: 1px solid #444; margin-top: 32px; padding-top: 16px; text-align: center; font-size: .85rem; color: #aaa; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .header-inner { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 8px 10px; font-size: .85rem; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse > :first-child { order: 0; }
  form.contact-form { grid-template-columns: 1fr; }
  .map-embed { aspect-ratio: 4 / 3; }
  .map-directions { padding: 14px 22px; }
  section { padding: 40px 0; }
  .hero { padding: 48px 0 44px; }
}
@media (max-width: 760px) and (max-height: 900px) {
  .site-header { position: static; }
}
