/* ==========================================================================
   Trusted Transmission - Shared Stylesheet
   Light, premium automotive theme: white base, two brand blues, gold accents
   sampled from the logo. Used across every page of the site.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --white: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark-section: #0d2c5c;
  --blue-primary: #13418b;
  --blue-accent: #2f7dfa;
  --blue-accent-light: #eaf1fd;
  --gold: #d99f26;
  --gold-light: #eec367;
  --text-heading: #132238;
  --text-body: #57626f;
  --text-muted: #8793a1;
  --border-color: #e2e7ee;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --shadow: 0 10px 30px rgba(19, 65, 139, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.text-grey { color: var(--text-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-heading); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-body); }

.section-tag {
  display: inline-block;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title { margin-bottom: 12px; }
.section-intro { max-width: 680px; color: var(--text-body); margin-bottom: 40px; }
.section-header { margin-bottom: 40px; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-primary); }

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--border-color);
}
.btn-outline:hover { border-color: var(--blue-accent); color: var(--blue-accent); }

/* Outline buttons placed on dark sections need light text/border */
.banner .btn-outline,
.cta-section .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.banner .btn-outline:hover,
.cta-section .btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(19, 65, 139, 0.08);
}

/* Top row: logo centred and prominent, phone + hamburger pinned right */
.header-top { padding: 18px 0; }
.header-top-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 92px; width: auto; }

.header-top-cta {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Nav row: full-width blue bar beneath the logo */
.main-nav {
  background: var(--blue-primary);
}
.main-nav .container {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 14px 0;
}

.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 0;
  position: relative;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--white); }

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* dropdown for services/manufacturers */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-heading);
}
.dropdown a:hover { background: var(--blue-accent-light); color: var(--blue-primary); }

.phone-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-primary);
  padding: 10px 18px;
  border: 2px solid var(--blue-primary);
  border-radius: 999px;
}
.phone-cta:hover { background: var(--blue-primary); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.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;
  padding: 80px 0 70px;
  background:
    radial-gradient(ellipse at top right, rgba(47, 125, 250, 0.1), transparent 55%),
    var(--white);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--blue-primary);
  background: var(--blue-accent-light);
  border: 1px solid rgba(47, 125, 250, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 20px 0 30px;
}
.hero p.hero-detail {
  font-size: 0.92rem;
  max-width: 580px;
  color: var(--grey-dark);
  margin: -14px 0 40px;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--bg-soft), #ffffff);
  padding: 32px;
}
.hero-image img { width: 100%; height: auto; }
.page-hero {
  padding: 56px 0;
  text-align: left;
}
.page-hero p.lead { max-width: 700px; }

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-heading);
}
.trust-item .icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Cards grid generic ---- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-accent); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-accent-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.card-link:hover { color: var(--blue-primary); }

/* ---- Symptoms grid ---- */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.symptom-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.symptom-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.symptom-card p { font-size: 0.9rem; margin: 0; }

/* ---- Gearbox model list ---- */
.models-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.model-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.model-item .model-code {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 6px;
}
.model-item span.model-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Manufacturers ---- */
.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.manufacturer-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.manufacturer-card img {
  height: 56px;
  width: auto;
  margin: 0 auto 16px;
}
.manufacturer-card h3 { margin-bottom: 8px; }
.manufacturer-card p { font-size: 0.88rem; margin-bottom: 14px; }

/* ---- Process steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---- Banner (warranty / finance / dark highlight blocks) ---- */
.banner {
  background: linear-gradient(120deg, var(--blue-primary), var(--bg-dark-section) 70%);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.banner h2 { color: var(--white); margin-bottom: 8px; }
.banner p { color: #cfe0ff; max-width: 560px; }

/* ---- Niche banner (single-garage messaging, gold brand accent) ---- */
.niche-banner {
  background: var(--bg-dark-section);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 46px;
}
.niche-banner .section-tag { color: var(--gold-light); }
.niche-banner h2 { color: var(--white); margin-bottom: 14px; }
.niche-banner p { color: #cfe0ff; max-width: 760px; font-size: 1.02rem; }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.review-card p.quote { font-style: italic; color: var(--text-body); margin-bottom: 18px; }
.review-author { font-weight: 700; color: var(--text-heading); font-size: 0.9rem; }
.review-role { font-size: 0.8rem; color: var(--text-muted); }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-color);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-heading);
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--white); border-color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 22px; font-size: 0.95rem; }

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-primary), var(--bg-dark-section));
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { color: var(--white); max-width: 700px; margin: 0 auto 14px; }
.cta-section p { color: #cfe0ff; max-width: 600px; margin: 0 auto 30px; }
.cta-section .btn-group { justify-content: center; }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--blue-accent-light);
  border: 1px solid var(--blue-accent);
  color: var(--blue-primary);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

.form-error {
  display: none;
  background: #fbeae8;
  border: 1px solid #d9534f;
  color: #a8352f;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-error.is-visible { display: block; }

/* Honeypot field: hidden from sighted users, left open for bots */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Info blocks (about/warranty/finance/contact pages) ---- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-body);
}
.bullet-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--blue-accent-light);
  color: var(--blue-primary);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-details { list-style: none; }
.contact-details li { margin-bottom: 16px; }
.contact-details span.label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-details a, .contact-details strong { color: var(--text-heading); font-size: 1.05rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 320px;
  box-shadow: var(--shadow);
}

table.price-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.price-table th, table.price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}
table.price-table th { color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
table.price-table td { color: var(--text-body); }
table.price-table td:first-child { color: var(--text-heading); font-weight: 600; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--blue-accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark-section);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b9c8de; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--white); }

/* White badge behind the logo artwork so it reads cleanly on the dark footer */
.logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  line-height: 0;
}
.logo-badge img { display: block; height: 40px; width: auto; }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: #b9c8de; font-size: 0.9rem; max-width: 260px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #8fa2bf;
}
.footer-bottom a { color: #8fa2bf; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- Sticky mobile call button ---- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--blue-accent);
  border-top: 3px solid var(--gold);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 -6px 20px rgba(19, 65, 139, 0.25);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .models-list { grid-template-columns: repeat(3, 1fr); }
  .manufacturers-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .symptoms-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  /* Stack logo above the phone/hamburger row so the logo can be large
     without colliding with the pinned controls on narrow screens */
  .header-top-inner {
    flex-direction: column;
    gap: 10px;
    min-height: 0;
  }
  .logo img { height: 68px; }
  .header-top-cta {
    position: static;
    transform: none;
    right: auto;
  }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open .container { display: block; padding: 10px 24px 24px; }
  .main-nav.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
  }
  .main-nav.is-open .nav-list a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .has-dropdown .dropdown {
    display: none;
    position: static;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    margin: 6px 0;
    border-radius: var(--radius);
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .dropdown a { color: var(--white); }
  .has-dropdown.is-open .dropdown a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
  .header-top-cta .phone-cta span.phone-text { display: none; }
  .header-top-cta .phone-cta { padding: 10px 14px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .models-list { grid-template-columns: repeat(2, 1fr); }
  .manufacturers-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .symptoms-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .banner { flex-direction: column; text-align: center; }
  .banner .btn-group { justify-content: center; }
  .niche-banner { padding: 28px 26px; }

  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-list { justify-content: flex-start; gap: 20px; }
}
