/* Horsepower Warranty — public site styles */

:root {
  --navy-900: #0e1c28;
  --navy-800: #132533;
  --navy-700: #1c3245;
  --navy-600: #2a4560;
  --gold-500: #d9a441;
  --gold-600: #c28f31;
  --gray-50: #f7f8f9;
  --gray-100: #eef0f2;
  --gray-300: #d6dcdf;
  --gray-500: #7b8894;
  --gray-700: #4a5560;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 28, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 28, 40, 0.12);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

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

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--white); }

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-900); }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-700);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-size: 0.92rem; font-weight: 600; color: var(--navy-700); white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: 0.2s;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-shield {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  width: 640px;
  max-width: 55%;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.5rem; font-family: "Poppins", sans-serif; color: var(--gold-500); }
.hero-trust span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  color: var(--navy-800);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card p.small { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 20px; }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy-800);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; margin: 0 auto; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.bg-alt { background: var(--gray-50); }
.bg-navy { background: var(--navy-800); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }

/* Grids & cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 164, 65, 0.14);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Pricing / plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.plan-tagline { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 20px; }
.plan-price { font-family: "Poppins", sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy-900); }
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--gray-500); }
.plan-list { list-style: none; padding: 0; margin: 22px 0 28px; flex-grow: 1; }
.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--gray-700);
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold-600); margin-top: 2px; }

.disclaimer {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy-700);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 22px; margin: 0; }

/* Testimonials */
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--gold-500); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-name { font-weight: 700; margin-top: 14px; color: var(--navy-900); }
.testimonial-role { font-size: 0.85rem; color: var(--gray-500); }

/* Timeline (About) */
.timeline { border-left: 2px solid var(--gray-300); padding-left: 28px; margin-left: 8px; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
}
.timeline-year { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy-800); font-size: 0.9rem; margin-bottom: 4px; }

/* Values grid */
.value-item { display: flex; gap: 16px; }
.value-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 16px;
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row .icon-badge { background: rgba(217,164,65,0.18); margin-bottom: 0; flex-shrink: 0; }
.contact-row strong { display: block; color: var(--white); font-size: 0.95rem; }
.contact-row span, .contact-row a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.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: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-300);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy-800);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }
.form-success {
  display: none;
  background: rgba(217,164,65,0.12);
  border: 1px solid var(--gold-500);
  color: var(--navy-800);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  border-radius: 20px;
  padding: 56px 32px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; }
.footer-brand span { color: var(--white); font-family: "Poppins", sans-serif; font-weight: 700; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); max-width: 900px; margin-top: 18px; }

/* Lead-form popup modal (homepage) */
.quote-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 40, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quote-modal-overlay.open { display: flex; }
.quote-modal {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  height: min(720px, 90vh);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.quote-modal-header h3 { margin: 0; font-size: 1.02rem; }
.quote-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--navy-800);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quote-modal-close:hover { background: var(--gray-300); }
.quote-modal-iframe { flex: 1 1 auto; width: 100%; border: 0; display: block; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shield { display: none; }
  .grid-3, .grid-4, .plans-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
}
@media (max-width: 680px) {
  .main-nav, .header-actions .phone-link { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    gap: 8px;
  }
  .grid-3, .grid-4, .plans-grid, .steps, .grid-2, .form-row { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Real-person phone banner (sitewide, above header) */
.real-person-banner {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
}
.real-person-banner a { color: inherit; }
.real-person-banner strong { color: var(--gold-500); }
@media (max-width: 680px) {
  .real-person-banner { font-size: 0.76rem; padding: 7px 12px; }
}

/* Footer legal links (Privacy / Terms) */
.footer-legal-links a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: var(--gold-500); }
.footer-legal-links a + a { margin-left: 4px; }

/* Legal pages (Privacy / Terms) */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 40px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; color: var(--gray-700); }
.legal-content li { margin-bottom: 8px; }

/* Footer logo contrast box - logo mark is dark navy and disappears on the
   dark footer background, so give it a light rounded backdrop. */
.footer-logo-box {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 14px;
}

/* "Fully Canadian owned and operated" badge - hero (light pill) and footer
   (plain muted text) variants. */
.canada-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: var(--gray-100);
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 14px 0 6px;
}
.footer-canada-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

/* Cookie consent banner */
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -240px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  z-index: 200;
  transition: bottom 0.35s ease;
}
.cookie-consent.visible { bottom: 16px; }
.cookie-consent-inner { display: flex; flex-direction: column; gap: 14px; }
.cookie-consent p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.cookie-consent a { color: var(--gold-500); text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cookie-consent { left: 10px; right: 10px; padding: 16px; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1; }
}
