/* =========================================================
   Cox-Beasley Automotive — single-page site
   Dark theme: black + dark gray, red accents, sparing yellow
   ========================================================= */

:root {
  --bg:        #0d0d0f;
  --bg-2:      #131316;
  --panel:     #16161a;
  --panel-2:   #1c1c21;
  --line:      #2a2a31;
  --line-soft: #222228;
  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --muted-2:   #71717a;
  --red:       #d81f26;
  --red-dark:  #a8161c;
  --red-glow:  rgba(216, 31, 38, .35);
  --yellow:    #f5c518;
  --radius:    10px;
  --maxw:      1140px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.hl-red    { color: var(--red); }
.hl-yellow { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--red-glow);
}
.btn--red:hover { background: var(--red-dark); box-shadow: 0 8px 22px -6px var(--red-glow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: #fff; }

.btn--block { width: 100%; }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
}
.brand__cox     { color: #fff; }
.brand__bar     { color: var(--red); font-weight: 700; transform: translateY(-1px); }
.brand__beasley { color: #fff; }
.brand__sub {
  font-style: normal;
  font-weight: 500;
  font-size: .56rem;
  letter-spacing: .42em;
  color: var(--muted);
  margin-left: .5em;
  align-self: center;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > a {
  font-family: var(--head);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .92rem;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s ease;
}
.main-nav > a:hover { color: #fff; }
.main-nav .nav-call { color: #fff; padding: .55em 1.2em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(216,31,38,.16), transparent 60%),
    linear-gradient(180deg, #161618 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line-soft);
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: 86px 22px 92px;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--head);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--yellow);
  margin: 0 0 18px;
}
.hero__title {
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 22px;
}
.hero__lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero__cta .btn { padding: .95em 1.9em; font-size: 1rem; }
.hero__badges {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .92rem;
  color: var(--muted);
  font-family: var(--head);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__badges li { display: flex; align-items: center; gap: .5em; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section__kicker {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .78rem;
  color: var(--red);
  margin: 0 0 12px;
}
.section__title {
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
}
.section__intro { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  border-color: #34343c;
  background: var(--panel-2);
}
.svc-card:hover::before { transform: scaleY(1); }
.svc-card h3 {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.18rem;
  margin: 0 0 10px;
}
.svc-card p { color: var(--muted); margin: 0; font-size: .96rem; }

.services-note { text-align: center; color: var(--muted); margin: 38px 0 0; }
.services-note a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.services-note a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.about__copy p { color: var(--muted); }
.about__copy strong { color: var(--text); }
.about__stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.about__stats > div { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}
.stat__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.about__hours {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.about__hours h3 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.2rem;
  margin: 0 0 16px;
}
.hours { list-style: none; margin: 0 0 22px; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .96rem;
}
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  align-items: start;
}
.contact__direct {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.owner-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.owner-card h3 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.35rem;
  margin: 0 0 2px;
}
.owner-card__role {
  color: var(--yellow);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--head);
}
.owner-card .btn { margin-top: 10px; }
.owner-card .btn:first-of-type { margin-top: 0; }

.contact__form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.contact__form h3 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.3rem;
  margin: 0 0 20px;
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
}
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: .72em .85em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__form .btn { margin-top: 6px; }

.form-msg { margin: 14px 0 0; font-size: .95rem; min-height: 1.2em; }
.form-msg--ok  { color: #4ade80; }
.form-msg--err { color: #f87171; }

/* ---------- Location ---------- */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.location__text { padding: 30px 28px; }
.location__text h3 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.3rem;
  margin: 0 0 14px;
}
.location__addr { color: var(--muted); line-height: 1.7; margin: 0 0 20px; }
.location__addr a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.location__addr a:hover { text-decoration: underline; }
.location__map { min-height: 280px; }
.location__map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0a0c;
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 30px;
}
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.brand--footer { font-size: 1.35rem; }
.site-footer__tag {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}
.site-footer__owners {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 22px;
  flex-wrap: wrap;
}
.foot-owner { display: flex; flex-direction: column; gap: 4px; }
.foot-owner--left  { text-align: left; align-items: flex-start; }
.foot-owner--right { text-align: right; align-items: flex-end; }
.foot-owner__name {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.15rem;
  color: #fff;
}
.foot-owner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  transition: color .15s ease;
}
.foot-owner a:hover { color: #fff; }
.foot-owner__text {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--red) !important;
  font-weight: 600;
}
.foot-owner__text:hover { color: var(--yellow) !important; }

.site-footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.site-footer__addr { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.site-footer__addr a { color: var(--muted); text-decoration: underline; }
.site-footer__addr a:hover { color: var(--yellow); }
.site-footer__copy { color: var(--muted-2); font-size: .82rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  position: relative;
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: .01em;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: #fff; }
.faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}
.faq__item p a { color: var(--yellow); text-decoration: none; }
.faq__item p a:hover { text-decoration: underline; }

/* ---------- Areas served ---------- */
.areas { text-align: center; max-width: 820px; margin: 0 auto; }
.areas__intro { color: var(--muted); max-width: 620px; margin: 6px auto 26px; }
.areas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.areas__list li {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .86rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 18px;
}
.areas__list li:last-child {
  border-color: var(--red);
  color: #fff;
}

/* ---------- Address hints ---------- */
.location__hint {
  display: inline-block;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted-2);
}
.location__hint a { color: var(--muted); }
.location__hint a:hover { color: var(--yellow); }
.site-footer__hint { color: var(--muted-2); font-size: .82rem; }
.site-footer__hint a { color: var(--muted-2); }
.site-footer__hint a:hover { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 340px; }
  .main-nav > a { padding: 14px 22px; border-bottom: 1px solid var(--line-soft); }
  .main-nav .nav-call { margin: 12px 22px; text-align: center; border: 1px solid var(--line); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__direct { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .location { grid-template-columns: 1fr; }
  .location__map { order: -1; }
}

@media (max-width: 560px) {
  .hero__inner { padding: 64px 20px 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__direct { grid-template-columns: 1fr; }
  .about__stats { gap: 22px; }
  .site-footer__owners { flex-direction: row; }
  .foot-owner__name { font-size: 1rem; }
}

.section__intro {
	text-wrap-style: balance;
}