/* =========================================================
   America 250 Theme for Rock Bridge Automotive Repair
   ========================================================= */

:root {
  --navy: #102542;
  --navy-2: #18345b;
  --red: #b22234;
  --red-dark: #8f1b2a;
  --cream: #f7f3eb;
  --white: #ffffff;
  --ink: #1d2430;
  --steel: #64748b;
  --steel-light: #d7dee8;
  --gold: #caa76a;
  --shadow: 0 16px 40px rgba(16, 37, 66, 0.12);
  --radius: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(247,243,235,1) 0%, rgba(243,240,233,1) 100%);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--navy);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

/* Utilities */
.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
}

.topbar-message,
.topbar-phone {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.phone-label {
  font-weight: 700;
  margin-right: 0.35rem;
}

.phone-text {
  color: var(--white);
  font-weight: 800;
}

.phone-text:hover,
.phone-text:focus {
  color: #ffe6ea;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.navbar {
  background:
    linear-gradient(180deg, rgba(16,37,66,0.98) 0%, rgba(24,52,91,0.98) 100%);
  border-bottom: 4px solid var(--gold);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 88px;
  flex-wrap: nowrap;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--white);
  max-width: 460px;
  flex-shrink: 0;
}

.brand-kicker {
  display: inline-block;
  width: fit-content;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(202,167,106,0.18);
  border: 1px solid rgba(202,167,106,0.5);
  color: #f7e8c8;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.brand-name {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.brand-sub {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
}

.skip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skip-button:hover,
.skip-button:focus {
  color: var(--white);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 3px rgba(202,167,106,0.22);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.15s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 6px;
  width: 60%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(rgba(10, 26, 48, 0.86), rgba(10, 26, 48, 0.92)),
    radial-gradient(circle at top right, rgba(178,34,52,0.22), transparent 36%),
    url("/img/cars/911-Carrera.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.06) 5%,
      transparent 5%,
      transparent 100%);
  background-size: 120px 100%;
  opacity: 0.22;
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #f7e8c8;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-contact-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}

.hero-contact-label {
  font-weight: 700;
  color: rgba(255,255,255,0.86);
}

.hero-phone-number {
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.breadcrumb-nav {
  margin: 1rem 0 1.5rem;
}

.breadcrumb-nav ul {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.92);
}

.hero h1 {
  max-width: 14ch;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  text-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-subhead {
  max-width: 850px;
  margin: 0 auto 0.9rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: rgba(255,255,255,0.94);
}

.hero-intro {
  max-width: 760px;
  margin: 0 auto 1.9rem;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.84);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.button-primary {
  background: linear-gradient(180deg, #d73b4f 0%, var(--red) 100%);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}

.button-secondary:hover,
.button-secondary:focus {
  color: var(--white);
  background: rgba(255,255,255,0.18);
}

.hero-media {
  max-width: 760px;
  margin: 0 auto;
}

.hero-media img {
  width: 100%;
  border-radius: 20px;
  border: 4px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 48px rgba(0,0,0,0.28);
}

/* Page shell */
.page-shell {
  padding: 3.5rem 0 2rem;
}

.content-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(24,52,91,0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading.center {
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.section-heading h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
}

.section-intro {
  max-width: 760px;
  color: #334155;
}

.content-card p + p {
  margin-top: 1rem;
}

.content-card a {
  font-weight: 700;
}

.float-left {
  float: left;
  margin: 0 1.25rem 1rem 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-image {
  margin-top: 2rem;
}

.feature-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Feature band */
.feature-band {
  padding: 1.5rem 0 3rem;
}
/* ===== Tribute Band (Memorial Day Section) ===== */
.tribute-band {
  padding: 1rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(233,226,215,0.65) 100%);
}

.tribute-band .section-heading {
  max-width: 900px;
  margin-inline: auto;
}

.tribute-band .section-intro {
  margin-inline: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(16,37,66,0.98) 0%, rgba(24,52,91,0.98) 100%);
  color: var(--white);
  padding: 1.4rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin-bottom: 0;
  color: rgba(255,255,255,0.88);
}

/* Flexible card/grid helpers for existing pages */
.specials-grid,
.footer-grid,
.cert-logos,
.logos-grid {
  width: 100%;
}

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.special-card {
  background: rgba(255,255,255,0.93);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding-bottom: 1rem;
  border: 1px solid rgba(16,37,66,0.08);
}

.special-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.special-card h3,
.special-card p,
.special-card a {
  padding-left: 1rem;
  padding-right: 1rem;
}

.special-card h3 {
  margin-top: 1rem;
  color: var(--navy);
}

.special-card p {
  color: #334155;
}

.text-more-info {
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-image,
.split-content {
  min-height: 100%;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 2rem;
}

.split-content h2 {
  color: var(--white);
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-logos img {
  max-height: 110px;
  width: auto;
}

/* Logo wall */
.logo-wall {
  padding: 1rem 0 4rem;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.logos-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(16,37,66,0.08);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16,37,66,0.08);
  padding: 1rem;
}

.logos-grid a:hover,
.logos-grid a:focus {
  transform: translateY(-2px);
}

.logos-grid img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

/* Social */
.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 0;
  background: #e9e2d7;
  border-top: 1px solid rgba(16,37,66,0.08);
  border-bottom: 1px solid rgba(16,37,66,0.08);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(16,37,66,0.10);
}

.social a:hover,
.social a:focus {
  color: var(--red);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, var(--navy) 0%, #0c1d33 100%);
  color: rgba(255,255,255,0.88);
  border-top: 4px solid var(--red);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  color: var(--white);
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.site-footer a {
  display: block;
  width: fit-content;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.55rem;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffd7dc;
}

.copyright {
  background: #081423;
  color: rgba(255,255,255,0.75);
  padding: 1rem 0 1.2rem;
  text-align: center;
  font-size: 0.95rem;
}

.copyright p {
  margin: 0.3rem 0;
}

.copyright a {
  color: #f2d9ad;
}

/* Existing class compatibility */
.text-white { color: var(--white) !important; }
.text-primary { color: var(--red) !important; }
.text-dark { color: var(--navy) !important; }
.background-dark { background: var(--navy) !important; }
.background-primary { background: var(--red) !important; }
.background-grey { background: transparent !important; }

.line {
  width: 100%;
  margin-inline: auto;
}

.section,
.section-small-padding,
.section-top-padding {
  padding-left: 0;
  padding-right: 0;
}

.text-center { text-align: center; }
.align-left { text-align: left; }
.margin-top-20 { margin-top: 1.25rem; }
.margin-bottom-20 { margin-bottom: 1.25rem; }
.margin-bottom-40 { margin-bottom: 2rem; }
.margin-bottom-50 { margin-bottom: 2.5rem; }

.text-size-12 { font-size: 0.75rem; }
.text-size-20 { font-size: 1.25rem; }
.text-size-25 { font-size: 1.45rem; }
.text-size-30 { font-size: 1.8rem; }
.text-size-40 { font-size: 2.2rem; }
.text-size-50 { font-size: 2.8rem; }

/* Responsive */
@media (max-width: 1100px) {
  .logos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .specials-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  /* Make the top red bar cleaner on phones */
  .topbar-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
  }

  .topbar-message {
    display: none;
  }

  .topbar-phone {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  /* Keep nav predictable on mobile */
  .navbar {
    position: relative;
  }

  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .brand-mark {
    max-width: calc(100% - 80px);
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .skip-button {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(16,37,66,0.98);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(0,0,0,0.22);
    margin-left: 0;
    z-index: 2000;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu a {
    border-radius: 12px;
  }

  .nav-menu a::after {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .content-card {
    padding: 1.35rem;
  }

  .hero-overlay {
    padding: 3rem 0 3.4rem;
  }

  .hero-contact-bar {
    border-radius: 18px;
  }

  .hero-phone-number {
    font-size: 1.15rem;
  }

  .logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .float-left {
    float: none;
    margin: 0 0 1rem;
    max-width: 100% !important;
  }
}
.discount-callout {
  padding: 0 0 3rem;
}

.discount-callout-card {
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.discount-callout-card h2 {
  margin-bottom: 0.85rem;
}

.discount-callout-card p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}