/* ============================================================
   Genius Mechanic — landing page styles
   Palette sampled from the source design
   ============================================================ */
:root {
  --navy:        #001e3a;
  --navy-deep:   #00112a;
  --navy-2:      #04284c;
  --yellow:      #ffe100;
  --yellow-dark: #f4c500;
  --white:       #ffffff;
  --ink:         #13233f;   /* dark nav / heading text  */
  --ink-soft:    #5c6677;   /* muted body text          */
  --blue:        #1d44a0;   /* feature icon circles      */
  --blue-bright: #1f5fd0;   /* active link               */
  --wa-green:    #25d366;
  --pill:        #eef1f6;
  --shadow:      0 18px 40px rgba(0, 0, 0, .28);
  --maxw:        1280px;
  --head: "Montserrat", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 70% -10%, #073055 0%, transparent 60%),
    linear-gradient(180deg, #052a4d 0%, #001226 100%),
    var(--navy);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-toggle {
  display: none; /* hidden on desktop, shown on mobile */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}
.nav-toggle:hover { background: rgba(0,0,0,.06); }
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f5f7fb;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }

.nav-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.nav-link i { color: var(--blue); font-size: 15px; }
.nav-link:hover { color: var(--blue-bright); }
.nav-link.active { color: var(--blue-bright); border-bottom-color: var(--blue-bright); }
.nav-link.active i { color: var(--blue-bright); }

/* Helpline pill */
.helpline {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pill);
  border: 1px solid #e2e6ee;
  border-radius: 40px;
  padding: 7px 18px 7px 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.wa-badge {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, .45);
}
.hl-text { display: flex; flex-direction: column; line-height: 1.15; }
.hl-text small { font-size: 10px; font-weight: 600; letter-spacing: .4px; color: #6a7384; }
.hl-text strong { font-family: var(--head); font-size: 20px; font-weight: 800; color: #14357c; letter-spacing: .5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 18px 0 70px; overflow: hidden; }
.hero::before {
  /* subtle ambient glow behind the cards, matches design depth */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 82% 32%, rgba(20, 90, 70, .20), transparent 70%),
    radial-gradient(520px 320px at 18% 60%, rgba(10, 60, 110, .25), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 0.92fr 1.05fr 1.85fr;
  align-items: stretch;
  gap: 4px;
}

/* Mechanic illustration */
.hero-mechanic { display: flex; align-items: flex-end; justify-content: center; }
.hero-mechanic img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45));
}

/* Headline column */
.hero-copy {
  align-self: center;
  padding: 8px 6px 8px 0;
  z-index: 2;
}
.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: 1px;
  color: #eef3fa;
  margin-bottom: 2px;
}
.headline {
  font-family: var(--head);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.headline span { display: block; font-size: clamp(42px, 5.4vw, 78px); }
.hl-yellow { color: var(--yellow); text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.hl-white  { color: #fff; }

/* USP list */
.usp { display: grid; gap: 14px; margin-bottom: 26px; }
.usp li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: .5px;
  color: #f3f6fb;
}
.usp li i {
  color: var(--yellow);
  font-size: clamp(18px, 1.7vw, 23px);
  width: 26px;
  text-align: center;
}

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #ffe93d 0%, var(--yellow) 55%, var(--yellow-dark) 100%);
  color: #1a1a1a;
  padding: 12px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(255, 210, 0, .30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 210, 0, .42); }
.btn-download i { font-size: 30px; color: #16213a; }
.btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-text small { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.btn-text b { font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .4px; }

/* Promo cards */
.hero-cards {
  display: grid;
  gap: 16px;
  align-content: center;
}
.promo-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.promo-card img { width: 100%; height: auto; border-radius: 16px; }
.promo-card:hover { transform: translateY(-3px); }

/* ============================================================
   FEATURE BAR
   ============================================================ */
.features {
  max-width: var(--maxw);
  margin: -36px auto 46px;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}
.features-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 22px 8px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 20px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 64%;
  background: #e3e7ef;
}
.fic {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 23px;
  box-shadow: 0 6px 14px rgba(29, 68, 160, .30);
}
.fic-247 b {
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
}
.fic-247 b span { font-weight: 600; opacity: .85; }
.ftxt h4 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .3px;
  color: #152a52;
  margin-bottom: 3px;
}
.ftxt p { font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }

/* ============================================================
   INNER / STUB PAGES
   ============================================================ */
.page-hero {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 0 22px;
}
.page-hero-inner {
  background: linear-gradient(135deg, #04284c, #001226);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 46px 40px;
  box-shadow: var(--shadow);
}
.page-hero h1 {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: clamp(28px, 4vw, 46px);
}
.page-hero h1 .accent { color: var(--yellow); }
.page-hero p.lead { margin-top: 10px; color: #c7d3e2; max-width: 720px; font-size: 16px; }

.page {
  max-width: var(--maxw);
  margin: 26px auto 60px;
  padding: 0 22px;
}
.page-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 34px 38px;
}
.page-card h2 {
  font-family: var(--head);
  color: var(--yellow);
  font-size: 20px;
  margin: 26px 0 10px;
}
.page-card h2:first-child { margin-top: 0; }
.page-card p, .page-card li { color: #cdd7e4; line-height: 1.7; font-size: 15px; }
.page-card ul { margin: 8px 0 8px 22px; list-style: disc; }
.page-card li { margin-bottom: 6px; }
.page-card a { color: #8ab4ff; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-item i {
  color: var(--navy);
  background: var(--yellow);
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.contact-item h4 { font-family: var(--head); font-size: 14px; margin-bottom: 3px; color: #fff; }
.contact-item p { font-size: 14px; color: #b9c4d4; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy-deep);
}
.site-footer .foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: #9fb0c4;
  font-size: 13px;
}
.site-footer a { color: #c2d0e2; }
.site-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ---- Footer "More" dropdown ---- */
.foot-more {
  position: relative;
  cursor: pointer;
  color: #c2d0e2;
  user-select: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.foot-more:hover { color: #fff; }

/* invisible bridge: keeps dropdown open when mouse moves off text toward dropdown */
.foot-more::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 99;
}

.foot-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  background: #04284c;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 220px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45);
  z-index: 100;
}
.foot-more:hover .foot-dropdown,
.foot-dropdown:hover { display: block; }

.foot-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #c2d0e2;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.foot-dropdown a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 0.8fr 1fr 1.5fr; }
  .nav-menu { gap: 18px; }
  .nav-link { font-size: 12.5px; }
}

@media (max-width: 1024px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    order: 3;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    display: none;
    padding: 0;
  }
  .nav-menu.open { display: flex; padding-top: 8px; }
  .nav-link { width: auto; padding: 6px 7px; border-bottom: none; font-size: 10.5px; letter-spacing: 0; gap: 4px; }
  .nav-link i { font-size: 12px; }
  .nav-link.active { border-bottom-color: transparent; }
  .helpline { margin-left: auto; }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy copy"
      "mech cards";
    gap: 18px;
  }
  .hero-copy   { grid-area: copy; text-align: center; }
  .headline    { display: flex; gap: 16px; justify-content: center; }
  .headline span { display: inline; }
  .usp         { justify-items: center; }
  .usp li      { justify-content: center; }
  .btn-download{ }
  .hero-copy .usp { max-width: 360px; margin-inline: auto; }
  .hero-mechanic { grid-area: mech; }
  .hero-cards    { grid-area: cards; }

  .features-inner { grid-template-columns: repeat(3, 1fr); gap: 10px 0; }
  .feature:nth-child(3n+1)::before { display: none; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 8px 16px; }
  .brand img { height: 46px; }
  .nav-link { font-size: 9.5px; padding: 5px 5px; gap: 3px; }
  .nav-link i { font-size: 11px; }
  .helpline { padding: 6px 14px 6px 7px; }
  .hl-text small { font-size: 9px; }
  .hl-text strong { font-size: 17px; }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "cards"
      "mech";
  }
  .hero-mechanic img { max-width: 280px; }
  .headline { flex-direction: column; gap: 2px; align-items: center; }
  .headline span { display: block; font-size: clamp(38px, 13vw, 62px); }

  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .feature::before { display: none !important; }
}

@media (max-width: 440px) {
  .nav-link { font-size: 8.5px; padding: 4px 4px; gap: 2px; }
  .nav-link i { font-size: 10px; }
  .nav-menu { gap: 1px; }
  .features-inner { grid-template-columns: 1fr; }
  .headline span { font-size: clamp(34px, 14vw, 52px); }
}
