/* ============================================================
   ACG Warranty — design tokens & base
   Figma file: qNFqsUEZMvsoCvEJICjSNs
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../_resources/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../_resources/fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../_resources/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../../_resources/fonts/IBMPlexSans_Condensed-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../../_resources/fonts/IBMPlexSans_Condensed-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --darkgreen: #093840;
  --acidgreen: #2de56b;
  --white: #ffffff;
  --darkgreen-040: rgba(9, 56, 64, 0.4);
  --darkgreen-010: rgba(9, 56, 64, 0.1);
  --acidgreen-010: rgba(45, 229, 107, 0.1);
  --mint: #eafced;            /* acidgreen 010 flattened on white */

  --font-head: "IBM Plex Sans Condensed", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --content-max: 1382px;
  --gutter: clamp(20px, 10vw, 173px);

  --check-col: 234px;         /* spacing between coverage tiers */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--darkgreen);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- Headings ---------- */
.h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(48px, 8vw, 96px); line-height: 1.1; margin: 0; }
.h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin: 0; }
.h3 { font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.1; margin: 0; }
.h4 { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; }
.h5 { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.2; margin: 0; }

/* ---------- Title combo (accent bar + heading) ---------- */
.title-combo { display: inline-block; }
.title-combo .accent-bar {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--acidgreen);
  margin-bottom: 26px;
}
.title-combo--thin .accent-bar { height: 2px; margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--acidgreen);
  color: var(--darkgreen);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  border: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(0.92); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--darkgreen-010);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 46px;
  min-height: 72px;
  padding-block: 13px;
}
.navbar__brand { flex-shrink: 0; display: flex; }
.navbar__logo { height: 27px; width: auto; }
.navbar__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__links { display: flex; gap: 46px; }
.nav-link {
  font-size: 18px;
  color: var(--darkgreen);
  white-space: nowrap;
}
.nav-link--active { font-family: var(--font-head); font-weight: 600; }
.navbar__actions { display: flex; align-items: center; gap: clamp(20px, 4vw, 60px); }

.lang-picker { display: flex; align-items: center; }
.lang-btn {
  background: none;
  border: none;
  padding: 12px;
  font-size: 18px;
  color: var(--darkgreen);
  line-height: 1;
}
.lang-btn--active { font-family: var(--font-head); font-weight: 600; color: var(--acidgreen); }
.lang-sep { width: 1px; height: 39px; background: var(--darkgreen-010); }

.nav-toggle { display: none; background: none; border: none; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--darkgreen); margin: 5px 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero--home { min-height: clamp(420px, 56vw, 800px); padding: 0 var(--gutter) clamp(48px, 8vw, 96px); }
.hero--dealer { min-height: clamp(360px, 44vw, 640px); padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay { position: absolute; inset: 0; z-index: 1; }
.hero--home .hero__overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%),
    var(--darkgreen-040);
}
.hero--dealer .hero__overlay { background: rgba(9,56,64,0.45); }
.hero__content { position: relative; z-index: 2; max-width: 1032px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(48px, 8vw, 96px); line-height: 1.1; text-transform: capitalize; margin: 0; }
.hero--home .hero__title { color: var(--acidgreen); }
.hero__subtitle { font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 2.6vw, 36px); line-height: 1.1; max-width: 720px; }
.hero--home .hero__subtitle { color: var(--acidgreen); }

/* ============================================================
   Intro band (dark green) — home
   ============================================================ */
.intro-band {
  background: var(--darkgreen);
  color: var(--white);
  text-align: center;
}
.intro-band__inner { max-width: 1089px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; }
.intro-band__title { color: var(--acidgreen); }
.intro-band__body { font-size: 16px; white-space: pre-line; }

/* ============================================================
   What we offer — home
   ============================================================ */
.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 39px;
  margin-top: 48px;
}
.offer-item { display: flex; flex-direction: column; }
.offer-item__icon { width: 40px; height: 40px; object-fit: contain; margin-bottom: 18px; }
.offer-item__title { color: var(--darkgreen); margin-bottom: 16px; }
.offer-item__body { font-size: 16px; flex: 1; }
.offer-item__rule { height: 4px; background: var(--acidgreen); margin-top: 24px; }

/* ============================================================
   Full-bleed banner image
   ============================================================ */
.banner-image { height: clamp(200px, 25vw, 429px); background-size: cover; background-position: center; }

/* ============================================================
   Why choose us — mint section
   ============================================================ */
.why-section { background: var(--mint); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-top: 48px;
}
.why-card { display: flex; flex-direction: column; gap: 12px; }
.why-card__pill {
  align-self: flex-start;
  background: var(--darkgreen);
  color: var(--acidgreen);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  padding: 8px 12px;
}
.why-card__body { font-size: 14px; }

/* ============================================================
   Discover banner (dark green CTA)
   ============================================================ */
.discover { background: var(--darkgreen); }
.discover__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.discover__title { color: var(--acidgreen); font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }

/* ============================================================
   About us — home
   ============================================================ */
.about { display: grid; grid-template-columns: 466px 1fr; gap: 101px; align-items: center; }
.about__img { width: 100%; height: 466px; object-fit: cover; }
.about__title { margin-bottom: 48px; }
.about__body { font-size: 16px; }

/* ============================================================
   Contact
   ============================================================ */
.contact__title { margin-bottom: 24px; }
.contact__sub { font-size: 16px; margin-bottom: 24px; }
.contact__row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.contact__row img { width: 32px; height: 32px; object-fit: contain; }
.contact__row a { font-size: 18px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--darkgreen); color: var(--white); }
.footer__inner { padding-block: 44px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 27px; width: auto; filter: brightness(0) invert(1); }
.footer__links { display: flex; gap: 54px; }
.footer__links a { font-size: 14px; }
.footer__divider { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 22px 0; }
.footer__copy { font-size: 14px; }

/* ============================================================
   Dealerships — intro + workshop
   ============================================================ */
.dealer-intro { display: grid; grid-template-columns: 567px 1fr; gap: 48px; align-items: center; }
.dealer-intro__title { margin-bottom: 48px; }
.dealer-intro__body { font-size: 16px; }
.dealer-intro__img { width: 100%; height: 353px; object-fit: cover; }

/* ---------- Dealer features (What's included) ---------- */
.features__list { display: flex; flex-direction: column; gap: 29px; margin-top: 32px; }
.feature-row { display: flex; align-items: center; gap: 33px; }
.feature-row__icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.feature-row__text { font-size: 16px; }

/* ---------- Protect blurb ---------- */
.protect { text-align: center; }
.protect__inner { max-width: 1064px; margin-inline: auto; }
.protect__title { font-family: var(--font-head); font-weight: 600; font-size: 24px; margin-bottom: 40px; }
.protect__body { font-size: 16px; }

/* ============================================================
   Coverage table
   ============================================================ */
.coverage__intro { text-align: center; max-width: 760px; margin: 0 auto 40px; font-size: 16px; }
.coverage-table { border-collapse: collapse; width: 100%; }
.coverage-table th, .coverage-table td { padding: 12px 0; border-bottom: 1px solid var(--darkgreen-010); }
.coverage-table thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  padding-bottom: 12px;
}
.coverage-table .tier-col { text-align: center; width: 12%; }
.cov-part { display: flex; align-items: center; gap: 64px; }
.cov-part__icon { width: 61px; height: 61px; object-fit: contain; flex-shrink: 0; }
.cov-part__name { font-size: 16px; }
.cov-check { width: 40px; height: 40px; margin: 0 auto; }
.cov-check svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .offer__grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__img { height: auto; max-height: 360px; }
  .dealer-intro { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .footer__links { display: none; }
  .nav-toggle { display: block; }
  .navbar__menu {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: var(--white);
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--darkgreen-010);
    box-shadow: 0 16px 28px rgba(9, 56, 64, 0.18);
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__links { flex-direction: column; gap: 16px; }
  .navbar__actions { flex-direction: column; align-items: flex-start; margin: 20px 0; gap: 16px; }
  .navbar__actions .btn { order: -1; }
  .offer__grid, .why-grid { grid-template-columns: 1fr; }
  .cov-part { gap: 20px; }
  .cov-part__icon { width: 44px; height: 44px; }
  .coverage-table .tier-col { width: 16%; }
}
