/* ============================================================
   america250.css
   Rock Bridge Automotive — America's 250th Anniversary Theme
   Bold & Modern Patriotic
   Place this file in:  Design/css/america250.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Barlow:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #B22234;
  --red-dark:   #8B0000;
  --blue:       #1A3A6B;
  --blue-dark:  #0D1F3C;
  --blue-deep:  #060E1E;
  --gold:       #D4AF37;
  --gold-light: #F0CC55;
  --cream:      #F5F0E8;
  --charcoal:   #111111;
  --grey-dark:  #1C1C1C;
  --grey-mid:   #2A2A2A;
  --text-dim:   #AAAAAA;
  --font-head:  'Oswald', Arial, sans-serif;
  --font-body:  'Barlow', Arial, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--charcoal);
  background-image: url('../../img/body-bg.jpg');
  background-repeat: repeat;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-light); }

p            { margin: 0 0 1em; }
h1,h2,h3,h4  { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }

/* ============================================================
   PATRIOT TOP RIBBON  (pure CSS — no extra HTML needed)
   ============================================================ */
body::before {
  content: "\2605  Celebrating America\2019s 250th Anniversary  \00B7  1776 \2013 2026  \2605";
  display: block;
  background: linear-gradient(
    90deg,
    var(--blue-dark)  0%,
    var(--red-dark)  38%,
    var(--red)       62%,
    var(--blue-dark) 100%
  );
  border-bottom: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 20px;
  width: 100%;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   NAVIGATION  —  American Flag Background
   ============================================================
   The navbar is built in three visual layers (back to front):
   1. Red & white horizontal stripes across the full bar
   2. Deep navy canton (blue rectangle) covering the left ~30%
      which acts as the "star field" area
   3. A subtle dot pattern on the canton for the stars effect
   ============================================================ */
.navbar {
  /* Layer 1 — stripes (full width) */
  background-color: var(--blue-dark);
  background-image:
    /* Layer 3 — star dots on canton */
    radial-gradient(circle, rgba(255,255,255,0.50) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.30) 1.5px, transparent 1.5px),
    /* Layer 2 — navy canton block on left ~30% */
    linear-gradient(
      90deg,
      var(--blue-dark) 0%,
      var(--blue-dark) 30%,
      transparent     30%
    ),
    /* Layer 1 — red & white stripes */
    repeating-linear-gradient(
      180deg,
      var(--red)                    0px,
      var(--red)                   10px,
      rgba(245, 240, 232, 0.20)    10px,
      rgba(245, 240, 232, 0.20)    20px
    );
  background-size:
    22px 22px,      /* star primary grid */
    22px 22px,      /* star offset grid  */
    100% 100%,      /* canton block      */
    100% 100%;      /* stripes           */
  background-position:
    2px 4px,        /* star primary      */
    13px 15px,      /* star offset       */
    0 0,            /* canton            */
    0 0;            /* stripes           */
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* strong shadow so the flag stands behind the nav links */
  box-shadow: 0 3px 14px rgba(0,0,0,0.55);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Mobile logo */
.logo      { display: none; }
.logo img  { width: 50px; height: 50px; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Nav list */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  margin: 0;
}
.nav-menu li { display: inline-block; }

.nav-menu a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 9px 20px;
  display: block;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  /* text shadow keeps letters readable over the striped background */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.85), 0 0 8px rgba(0,0,0,0.6);
}
.nav-menu a:hover {
  background: var(--red);
  color: #fff;
  text-shadow: none;
  text-decoration: none;
}

/* ============================================================
   HERO / MAIN SECTION
   ============================================================ */
.hero {
  background-color: var(--blue-deep);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(178,34,52,0.07) 38px,
      rgba(178,34,52,0.07) 40px
    ),
    linear-gradient(160deg, var(--blue-dark) 0%, var(--charcoal) 70%);
  border-top: 5px solid var(--red);
  border-bottom: 5px solid var(--gold);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  position: relative;
}

/* 250 badge — top right */
.hero::after {
  content: "250";
  position: absolute;
  top: 20px;
  right: 28px;
  width: 88px;
  height: 88px;
  background: var(--red);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--blue-dark), 0 4px 20px rgba(0,0,0,.65);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 88px;
  text-align: center;
}

.hero-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Phone gif */
.phone-link img {
  max-width: 340px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 10px rgba(212,175,55,0.35));
}

/* Breadcrumb */
.breadcrumb-nav { margin-bottom: 0.5rem; }
.breadcrumb-nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
.breadcrumb-nav ul li a { font-size: 1.4rem; color: var(--gold); }
.breadcrumb-nav ul li a:hover { color: var(--gold-light); }

/* section helpers used in DWT */
.section-top-padding   { padding-top: 1.875rem; }
.background-image      { /* stripes handled by .hero */ }

/* h1 inside hero */
.hero h1 {
  font-family: var(--font-head) !important;
  font-size: clamp(28px, 5vw, 52px) !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  text-shadow: 2px 2px 0 var(--blue-dark), 0 0 24px rgba(212,175,55,.35) !important;
  background: var(--red);
  display: inline-block;
  padding: 8px 28px !important;
  margin-bottom: 18px !important;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem);   font-weight: 300; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 1rem; }

.text-white            { color: #fff !important; }
.text-primary          { color: var(--gold) !important; }
.text-primary-hover:hover { color: var(--gold-light) !important; }
.text-dark             { color: var(--charcoal) !important; }
.text-extra-thin       { font-weight: 200 !important; }
.text-strong           { font-weight: 700 !important; }

.text-size-12  { font-size: 0.75rem    !important; }
.text-size-20  { font-size: 1.25rem    !important; }
.text-size-25  { font-size: 1.5625rem  !important; }
.text-size-30  { font-size: 1.875rem   !important; }
.text-size-40  { font-size: 2.5rem     !important; }
.text-size-50  { font-size: clamp(1.75rem, 5vw, 3.125rem) !important; }

/* responsive size helpers used on headings in DWT */
.text-s-size-30  { font-size: 1.875rem; }
.text-m-size-40  { font-size: 2.5rem; }
.text-m-size-25  { font-size: 1.5625rem; }

.text-center         { text-align: center; }
.align-left          { text-align: left; }
.text-line-height-1  { line-height: 1.2 !important; }

/* ============================================================
   SPACING UTILITIES
   ============================================================ */
.margin               { margin: 1rem; }
.margin2x             { margin: 2rem; }
.margin-bottom        { margin-bottom: 1rem; }
.margin-bottom-20     { margin-bottom: 1.25rem !important; }
.margin-bottom-40     { margin-bottom: 2.5rem  !important; }
.margin-top-20        { margin-top:    1.25rem !important; }
.margin-top-130       { margin-top:    8.125rem; }
.margin-top-bottom-40 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.margin-left-60       { margin-left:   3.75rem; }
.margin-right-50      { margin-right:  3.125rem; }
.padding              { padding: 1rem; }
.padding-2x           { padding: 2rem; }

.float-left  { float: left;  margin: 0 1.25rem 1rem 0; }
.float-right { float: right; margin: 0 0 1rem 1.25rem; }
.center      { margin-left: auto !important; margin-right: auto !important; }

/* ============================================================
   BACKGROUND HELPERS
   ============================================================ */
.background-dark    { background: var(--blue-dark) !important; }
.background-grey    { background: var(--grey-dark) !important; }
.background-white   { background: #fff             !important; }
.background-primary { background: var(--red)       !important; }

/* ============================================================
   SECTION PADDING
   ============================================================ */
.section-small-padding {
  padding: 3rem 1rem;
  margin-top: 40px;
}
/* RWB divider stripe above logos */
.section-small-padding::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red)  0%,   var(--red)  33%,
    #eeeeee     33%,  #eeeeee     66%,
    var(--blue) 66%,  var(--blue) 100%
  );
  opacity: .55;
  margin-bottom: 24px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  margin: 0 auto 30px;
  padding: 28px 32px;
  background: rgba(26,58,107,.12);
  border-left: 4px solid var(--red);
  border-radius: 2px;
}
.content-area h2,
.content-area h3 { font-family: var(--font-head); }
.content-area .line { margin-bottom: 24px; }
.content-area p { margin-bottom: 1.5rem; line-height: 1.8; }

/* ============================================================
   GRID  (.line, column sizes)
   ============================================================ */
.line        { display: flex; flex-wrap: wrap; margin: -0.5rem; }
.line > *    { padding: 0.5rem; }
.s-12        { width: 100%; }

/* ============================================================
   ICON HELPERS
   ============================================================ */
[class^="icon-"],
[class*=" icon-"] { display: inline-block; line-height: 1; color: var(--gold); }

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-default     { max-width: 100%; margin: 2rem auto; }
.carousel-default img { width: 100%; height: auto; border-radius: 10px; border: 3px solid var(--gold); }

/* ============================================================
   MANUFACTURER LOGOS GRID
   ============================================================ */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.logos-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-mid);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 4px;
  padding: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.logos-grid a:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
  text-decoration: none;
}
.logos-grid a img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%) brightness(.9);
  transition: filter .2s;
}
.logos-grid a:hover img { filter: grayscale(0%) brightness(1.1); }

/* ============================================================
   SUBJECT PHOTO (Optional_Subject_Photo editable region)
   ============================================================ */
.hero > .hero-content > img,
.hero img.center {
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0,0,0,.6), 0 0 0 6px rgba(26,58,107,.5);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-logos {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.cert-logos img { height: 80px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split          { display: grid; grid-template-columns: 1fr 1fr; }
.split-image    { min-height: 400px; }
.split-image img{ width: 100%; height: 100%; object-fit: cover; }
.split-content  { padding: 3rem; color: white; }

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social {
  background: var(--charcoal);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  text-align: center;
  padding: 18px 20px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal) !important;
  font-size: 20px;
  margin: 0 6px;
  transition: background .2s, transform .2s;
  text-decoration: none !important;
}
.social a:hover {
  background: var(--red);
  color: #fff !important;
  transform: scale(1.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.section,
footer {
  background: var(--blue-dark) !important;
  border-top: 4px solid var(--gold) !important;
  padding: 44px 20px 24px !important;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-grid h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold) !important;
  border-bottom: 1px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.footer-grid p,
.footer-grid a {
  display: block;
  font-size: 14px;
  color: var(--text-dim) !important;
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-grid a:hover      { color: var(--cream) !important; text-decoration: none; }
.footer-grid b,
.footer-grid .text-size-20 { color: #fff !important; }
.footer-grid .text-primary,
.footer-grid i             { color: var(--gold) !important; margin-right: 5px; }

/* ============================================================
   COPYRIGHT BAR
   ============================================================ */
.copyright {
  background: var(--blue-deep) !important;
  border-top: 2px solid rgba(212,175,55,.3) !important;
  padding: 14px 20px !important;
  text-align: center;
}
.copyright p   { color: var(--text-dim) !important; font-size: 12px; margin: 2px 0; display: block; }
.copyright a   { color: var(--gold) !important; }
.copyright a:hover { color: var(--gold-light) !important; }

/* ============================================================
   HIDE / SHOW UTILITIES
   ============================================================ */
.hide-s  { display: none !important; }

/* ============================================================
   RESPONSIVE — MEDIUM  768px+
   ============================================================ */
@media (min-width: 768px) {
  .hide-s  { display: block !important; }
  .hide-m  { display: none  !important; }

  .m-2  { width: 16.666%; } .m-3  { width: 25%; }
  .m-4  { width: 33.333%; } .m-5  { width: 41.666%; }
  .m-6  { width: 50%;     } .m-7  { width: 58.333%; }
  .m-8  { width: 66.666%; } .m-9  { width: 75%; }
  .m-10 { width: 83.333%; } .m-11 { width: 91.666%; }
  .m-12 { width: 100%;    }

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

/* ============================================================
   RESPONSIVE — LARGE  992px+
   ============================================================ */
@media (min-width: 992px) {
  .hide-m  { display: block !important; }
  .hide-l  { display: none  !important; }
  .logo    { display: block; }
  .nav-toggle { display: none; }
  .nav-menu   { display: flex !important; }

  .l-2  { width: 16.666%; } .l-3  { width: 25%; }
  .l-4  { width: 33.333%; } .l-5  { width: 41.666%; }
  .l-6  { width: 50%;     } .l-7  { width: 58.333%; }
  .l-8  { width: 66.666%; } .l-9  { width: 75%; }
  .l-10 { width: 83.333%; } .l-11 { width: 91.666%; }
  .l-12 { width: 100%;    }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   RESPONSIVE — XL  1200px+
   ============================================================ */
@media (min-width: 1200px) {
  .hide-l  { display: block !important; }
  .hide-xl { display: none  !important; }

  .xl-2  { width: 16.666%; } .xl-3  { width: 25%; }
  .xl-4  { width: 33.333%; } .xl-5  { width: 41.666%; }
  .xl-7  { width: 58.333%; } .xl-8  { width: 66.666%; }
  .xl-11 { width: 91.666%; }
}

/* ============================================================
   RESPONSIVE — XXL  1600px+
   ============================================================ */
@media (min-width: 1600px) {
  .xxl-4 { width: 33.333%; }
  .xxl-5 { width: 41.666%; }
  .xxl-8 { width: 66.666%; }
}

/* ============================================================
   MOBILE MENU  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--blue-dark);
    border-top: 2px solid var(--gold);
    padding: 0;
    gap: 0;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li     { width: 100%; }
  .nav-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    letter-spacing: 1px;
  }

  .float-left { float: none; margin: 0 auto 1rem; max-width: 100% !important; }
  .hero::after { display: none; }
  .hero { padding: 2rem 1rem 3rem; }
  .hero h1 { font-size: 26px !important; padding: 6px 14px !important; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
