/* ============================================
   Quality Truck Repair Inc. - Site Stylesheet
   Palette matched to logo:
   Navy #0A1F44 | Red #C0392B | Charcoal #2C2C2C | Off-White #F5F5F5
   ============================================ */

:root {
  --navy: #0A1F44;
  --navy-dark: #061330;
  --red: #C0392B;
  --red-dark: #96281B;
  --charcoal: #2C2C2C;
  --offwhite: #F5F5F5;
  --white: #FFFFFF;
  --gray: #6B7280;
  --silver: #C8CDD6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 70px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 4px;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-red {
  background: var(--red);
  color: var(--white) !important;
  border: 2px solid var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy) !important; }

.btn-navy {
  background: var(--navy);
  color: var(--white) !important;
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
}
.top-bar a { color: var(--white); text-decoration: none; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 64px; width: 64px; object-fit: cover; border-radius: 50%; }
.logo-text {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}
.logo-text span { color: var(--red); display: block; font-size: 0.78rem; letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--red); }
.main-nav .nav-cta {
  background: var(--red);
  padding: 10px 22px;
  border-radius: 4px;
  border-bottom: none !important;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(6, 19, 48, 0.82), rgba(6, 19, 48, 0.82)),
    url('../images/hero-truck.jpg') center/cover no-repeat,
    var(--navy);
  color: var(--white);
  text-align: center;
  padding: 110px 20px;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--silver);
}
.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero .trust-line {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--silver);
}
.hero .trust-line::before, .hero .trust-line::after { content: " ★ "; color: var(--red); }

.hero-inner-page {
  background:
    linear-gradient(rgba(6, 19, 48, 0.85), rgba(6, 19, 48, 0.85)),
    url('../images/hero-truck.jpg') center/cover no-repeat,
    var(--navy);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.hero-inner-page h1 { color: var(--white); }
.hero-inner-page p { color: var(--silver); max-width: 800px; margin: 0.75rem auto 0; }

/* ---------- Feature / Why Choose Us Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-card {
  background: var(--white);
  border-top: 4px solid var(--red);
  padding: 36px 28px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
}
.feature-card .icon { font-size: 2.6rem; margin-bottom: 14px; display: block; }

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: 6px;
  padding: 30px 26px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
  border-left: 4px solid var(--navy);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); border-left-color: var(--red); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.service-card p { flex: 1; font-size: 0.97rem; }
.service-card .learn-more {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
}
.service-card .learn-more::after { content: " →"; }

/* ---------- Section Styling Helpers ---------- */
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: var(--silver); }

.section-header { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-header .kicker {
  font-family: 'Oswald', sans-serif;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

/* ---------- About teaser ---------- */
.about-img {
  background:
    linear-gradient(rgba(10,31,68,0.15), rgba(10,31,68,0.15)),
    url('../images/shop-photo.jpg') center/cover no-repeat,
    var(--silver);
  min-height: 380px;
  border-radius: 6px;
  border-bottom: 6px solid var(--red);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: 6px;
  padding: 34px 28px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
  position: relative;
}
.testimonial .stars { color: #E8A33D; font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial blockquote { font-style: italic; margin-bottom: 16px; font-size: 0.98rem; }
.testimonial cite {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 1px;
}
.testimonial cite span { display: block; color: var(--gray); font-size: 0.8rem; font-family: 'Open Sans', sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { font-size: 1.15rem; margin-bottom: 1.75rem; color: rgba(255,255,255,0.92); }
.cta-banner .btn-outline:hover { color: var(--red) !important; }
.cta-banner .btn-white {
  background: var(--white);
  color: var(--red) !important;
  border: 2px solid var(--white);
}
.cta-banner .btn-white:hover { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 56px 20px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.25s;
}
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { padding: 0 24px 22px; margin: 0; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Services page detail blocks ---------- */
.service-detail {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
  border-left: 5px solid var(--red);
}
.service-detail h2 { display: flex; align-items: center; gap: 12px; }
.service-detail .icon { font-size: 1.8rem; }

/* ---------- City blocks (service areas) ---------- */
.city-block {
  background: var(--white);
  border-radius: 6px;
  padding: 30px 28px;
  box-shadow: 0 3px 12px rgba(10, 31, 68, 0.07);
  border-top: 4px solid var(--navy);
}
.city-block.primary { border-top-color: var(--red); }
.city-block h2 { font-size: 1.35rem; }
.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- Values / bullets ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.value-item {
  background: var(--white);
  padding: 28px 16px;
  border-radius: 6px;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 3px 12px rgba(10, 31, 68, 0.07);
}
.value-item .icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.88rem; margin: 0; color: var(--gray); }

.check-list { list-style: none; margin: 1rem 0 1.5rem; }
.check-list li {
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 1.02rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Photo gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.12);
  border-bottom: 4px solid var(--red);
  background: var(--navy);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.service-photo {
  float: right;
  width: 340px;
  max-width: 45%;
  margin: 0 0 16px 24px;
  border-radius: 6px;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.15);
}

.wide-photo {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  border-bottom: 5px solid var(--red);
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.15);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .service-photo { float: none; width: 100%; max-width: 100%; margin: 0 0 16px; }
  .wide-photo { height: 240px; }
}

/* ---------- Contact page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
  border-top: 5px solid var(--navy);
}
.contact-info-card h3 { display: flex; align-items: center; gap: 10px; margin-top: 1.4rem; }
.contact-info-card h3:first-of-type { margin-top: 0; }
.contact-info-card a { font-weight: 600; }

.contact-form-card {
  background: var(--white);
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
  border-top: 5px solid var(--red);
}
.contact-form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 16px 0 6px;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background: var(--offwhite);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.12);
}
.contact-form button { width: 100%; margin-top: 22px; cursor: pointer; font-size: 1.1rem; }

.emergency-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 26px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.emergency-banner a { color: var(--white); text-decoration: underline; }

.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.1);
  border-bottom: 5px solid var(--red);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--silver);
  padding: 60px 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: var(--silver); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-tagline { font-style: italic; color: var(--silver); margin-top: 10px; }
.footer-logo-text {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-logo-text span { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #8A93A6;
}
.footer-cta-phone {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 50px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav .nav-cta { text-align: center; margin-top: 10px; }

  .grid-3, .grid-2, .cities-grid { grid-template-columns: 1fr; }
  .grid-2 { gap: 30px; }
  .about-img { min-height: 260px; order: -1; }

  .hero { padding: 80px 20px; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }

  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .logo img { height: 52px; }
}

@media (max-width: 480px) {
  .grid-4, .values-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
