/* ============================================================
   The Gate Doctor - Homepage Styles
   ============================================================ */

:root {
  --red: #e11b22;
  --red-dark: #b5141a;
  --red-soft: #fdeced;
  --black: #0e0f12;
  --charcoal: #1a1d22;
  --charcoal-2: #23272e;
  --ink: #16181d;
  --gray-900: #2a2e35;
  --gray-700: #4a4f59;
  --gray-500: #6b7280;
  --gray-300: #d7dbe0;
  --gray-200: #e6e9ed;
  --gray-100: #f3f5f7;
  --bg: #ffffff;
  --muted-bg: #f6f7f9;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 18, 25, .06);
  --shadow: 0 14px 40px rgba(16, 18, 25, .10);
  --shadow-lg: 0 28px 70px rgba(16, 18, 25, .18);

  --maxw: 1200px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

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

.ic { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.btn--ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gray-100); }

.btn--lg { font-size: 16px; padding: 17px 30px; }
.btn--block { width: 100%; }

/* ---------- Shared section bits ---------- */
.section { padding: 84px 0; }
.section--promo { padding-top: 0; margin-top: -40px; }
.section--muted { background: var(--muted-bg); }
.section--dark { background: var(--charcoal); color: #fff; }

.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--ink); }
.section--dark .section__title, .section__head--light .section__title { color: #fff; }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--gray-500); }
.section--dark .section__lead { color: rgba(255,255,255,.75); }
.section__cta { text-align: center; margin-top: 48px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--light { color: #ff6b71; }

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

/* ============================================================
   HEADER
   ============================================================ */
/* display:contents so the sticky main-nav is constrained by <body>, not the header box */
.site-header { display: contents; }

.utility-bar {
  background: var(--charcoal-2); color: rgba(255,255,255,.85); font-size: 13.5px;
}
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.utility-bar__left { display: flex; align-items: center; gap: 22px; }
.utility-bar__right { display: flex; align-items: center; gap: 12px; }
.utility-link { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); transition: color .15s ease; }
.utility-link:hover { color: #fff; }
.utility-link .ic { width: 15px; height: 15px; color: var(--red); }
.utility-link strong { color: #fff; font-weight: 600; }
.utility-divider { width: 1px; height: 14px; background: rgba(255,255,255,.22); }

/* Only the main nav is sticky; the utility bar scrolls away naturally (no reflow/jank) */
.main-nav {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.main-nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 20px; transition: min-height .25s ease; }
.site-header.is-scrolled .main-nav { box-shadow: var(--shadow); }
.site-header.is-scrolled .main-nav__inner { min-height: 78px; }

/* Shrink the logo with a transform (compositor-only) instead of height to avoid layout thrash */
.brand__logo { height: 70px; width: auto; transform-origin: left center; transition: transform .25s ease; will-change: transform; }
.site-header.is-scrolled .brand__logo { transform: scale(.83); }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15.5px;
  color: var(--gray-900);
  padding: 12px 14px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--red); background: var(--gray-100); }
.caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }

/* Dropdowns (desktop hover) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 50;
}
.dropdown li a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background .15s ease, color .15s ease;
}
.dropdown li a:hover { background: var(--red-soft); color: var(--red); }

@media (hover: hover) and (min-width: 993px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-dropdown:hover .caret { transform: rotate(180deg); }
}

.nav-cta-mobile { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2.4px; background: var(--ink); margin: 0 auto; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: -2; background: #0e0f12; }
.hero__slide {
  position: absolute; inset: 0;
  background-position: center 38%; background-size: cover; background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.3s ease;
  /* Continuous, always-running zoom so toggling active never snaps the transform */
  animation: heroZoom 24s ease-in-out infinite alternate;
}
.hero__slide.is-active { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.90) 0%, rgba(10,11,13,.72) 48%, rgba(10,11,13,.42) 100%),
    linear-gradient(0deg, rgba(10,11,13,.55), transparent 45%);
}
.hero__content { position: relative; padding: 104px 24px 116px; }
.hero__title { font-size: clamp(36px, 6vw, 62px); font-weight: 800; letter-spacing: -.02em; max-width: 640px; }
.hero__subtitle { margin: 22px 0 32px; font-size: clamp(17px, 2.4vw, 21px); color: rgba(255,255,255,.86); max-width: 560px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Floating review badge, right side of hero */
.hero__reviews {
  position: absolute; top: 50%; right: 24px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .96);
  border-radius: 16px; padding: 13px 18px 13px 14px;
  box-shadow: var(--shadow-lg);
}
.hero__reviews-avatars { display: flex; }
.hero__reviews-avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 13px; color: #fff;
  border: 2.5px solid #fff; margin-left: -12px;
  box-shadow: 0 2px 6px rgba(16, 18, 25, .18);
}
.hero__reviews-avatars span:first-child { margin-left: 0; }
.hero__reviews-avatars span:nth-child(1) { background: #4285F4; }
.hero__reviews-avatars span:nth-child(2) { background: #0F9D58; }
.hero__reviews-avatars span:nth-child(3) { background: #AB47BC; }
.hero__reviews-info { display: flex; flex-direction: column; gap: 2px; }
.hero__reviews-info .stars svg { width: 15px; height: 15px; }
.hero__reviews-text { font-size: 13.5px; color: var(--gray-700); white-space: nowrap; }
.hero__reviews-text strong { font-family: var(--font-head); font-weight: 800; color: var(--ink); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  list-style: none; margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.hero__trust .ic { width: 20px; height: 20px; padding: 3px; color: #fff; background: var(--red); border-radius: 50%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars--sm svg { width: 16px; height: 16px; }

/* ============================================================
   2. MEMBERS / RECOGNITION STRIP (overlapping card)
   ============================================================ */
.proof { background: transparent; position: relative; z-index: 5; }
.proof .container { padding-bottom: 28px; }
.members {
  margin-top: -40px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; gap: 22px 40px;
}
.member-logo {
  flex: 0 1 180px; max-width: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 8px;
}
.member-logo__img {
  width: 100%; height: 62px; object-fit: contain;
  transition: transform .2s ease;
}
.member-logo:hover .member-logo__img { transform: scale(1.05); }

/* Generic image placeholder */
.img-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f1f3f6, #e3e7ec);
  color: #aeb6c2;
}
.img-ph svg { width: 38px; height: 38px; fill: currentColor; }
.img-ph--logo { height: 58px; border-radius: 10px; }
.img-ph--logo svg { width: 30px; height: 30px; }

/* ============================================================
   CARDS (shared)
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.card__text { color: var(--gray-500); font-size: 15px; margin: 0 0 18px; }

.link-more {
  margin-top: auto;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s ease;
}
.link-more:hover { gap: 11px; }

/* ---------- Placeholder media blocks ---------- */
.ph { position: relative; overflow: hidden; background: var(--charcoal); }
.ph::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 2px, transparent 2px 26px); }

/* Service card media */
.service-card__media { height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.service-card__img--top { object-position: top center; }
.service-card__img--bottom { object-position: bottom center; }
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-icon { width: 52px; height: 52px; fill: #fff; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.ph--repair  { background: linear-gradient(135deg, #e11b22, #8c0f14); }
.ph--install { background: linear-gradient(135deg, #2a2e35, #0e0f12); }
.ph--access  { background: linear-gradient(135deg, #c8141b, #5a0a0e); }
.ph--maint   { background: linear-gradient(135deg, #3a3f47, #16181d); }
.ph--safety  { background: linear-gradient(135deg, #e11b22, #6b0c10); }
.ph--weld    { background: linear-gradient(135deg, #33373f, #101216); }
.ph--bollard { background: linear-gradient(135deg, #c8141b, #5a0a0e); }

/* ============================================================
   MAINTENANCE PROGRAM PROMO
   ============================================================ */
.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, #8f161b, #5c0f13);
  color: #fff; border-radius: var(--radius-lg);
  padding: 52px 56px; box-shadow: var(--shadow-lg);
}
.promo::after {
  content: ""; position: absolute; right: -50px; bottom: -70px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.07);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 2h6v7h7v6h-7v7H9v-7H2V9h7z" fill="black"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 2h6v7h7v6h-7v7H9v-7H2V9h7z" fill="black"/></svg>') center / contain no-repeat;
}
.promo__content { position: relative; z-index: 1; }
.promo__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 12px;
}
.promo__eyebrow sup { font-size: .7em; top: -.5em; }
.promo__title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; max-width: 580px; }
.promo__title sup { font-size: .5em; top: -.8em; }
.promo__text { margin: 16px 0 24px; font-size: 17px; color: rgba(255,255,255,.92); max-width: 560px; }
.promo__list {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; max-width: 520px;
}
.promo__list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.promo__list .ic {
  width: 24px; height: 24px; flex: none; padding: 5px; border-radius: 50%;
  background: rgba(255,255,255,.20); color: #fff;
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.promo__note { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: rgba(255,255,255,.92); margin: 0 0 26px; }

.promo__visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }

.checkup-card {
  width: 100%; max-width: 320px;
  background: #fff; color: var(--charcoal);
  border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: 0 26px 54px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.6);
}
.checkup-card__top { display: flex; align-items: center; gap: 12px; }
.checkup-card__logo {
  height: 40px; width: auto; flex: none;
  object-fit: contain; display: block;
}
.checkup-card__title strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.2; }
.checkup-card__title span { font-size: 12.5px; color: var(--gray-500); }
.checkup-card__ekg {
  width: 100%; height: 50px; margin: 16px 0; display: block;
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.checkup-card__vitals {
  list-style: none; margin: 0; padding: 14px 0 0;
  border-top: 1px solid var(--gray-200); display: grid; gap: 11px;
}
.checkup-card__vitals li { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.checkup-card__vitals span { color: var(--gray-500); font-weight: 500; }
.checkup-card__vitals em {
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: #15803d; display: inline-flex; align-items: center; gap: 7px;
}
.checkup-card__vitals em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

/* ============================================================
   FENCE CROSSLINK (sister company)
   ============================================================ */
.fence-crosslink {
  margin: 28px 0 0;
  padding: 18px 22px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--gray-700);
  background: var(--red-soft);
  border: 1px solid rgba(225, 27, 34, .18);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
}
.fence-crosslink a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fence-crosslink a:hover { color: var(--red-dark); }

/* ============================================================
   GUARANTEE BAND
   ============================================================ */
.guarantee__intro {
  text-align: center;
  margin-bottom: 28px;
}
.guarantee__intro .eyebrow { color: var(--red); }
.guarantee__intro .section__title { margin: 8px 0 0; }
.guarantee-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.guarantee-duo--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}
.guarantee-duo__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px;
  background: linear-gradient(160deg, #fff, var(--red-soft));
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.guarantee-duo__seal {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.guarantee-duo__seal strong {
  font-size: clamp(40px, 5vw, 52px);
  letter-spacing: -.02em;
}
.guarantee-duo__seal span {
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.guarantee-duo__card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.guarantee-duo__card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 15.5px;
  line-height: 1.6;
}
.guarantee-duo__card p em {
  font-style: normal;
  color: var(--gray-500);
  font-size: 14px;
}
.guarantee__card {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #fff, var(--red-soft));
  border: 1px solid var(--gray-200); border-left: 5px solid var(--red);
  border-radius: var(--radius-lg); padding: 40px 48px; box-shadow: var(--shadow-md);
}
.guarantee__seal {
  position: relative; flex: none;
  width: 168px; height: 168px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 30%, #e84046, var(--red) 45%, var(--red-dark));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), inset 0 0 0 11px rgba(255,255,255,.15), var(--shadow-md);
}
.guarantee__seal-ribbon {
  position: absolute; top: 22px; width: 30px; height: 30px;
  fill: rgba(255,255,255,.22);
}
.guarantee__seal-num { font-family: var(--font-head); font-weight: 800; font-size: 58px; line-height: .9; margin-top: 14px; }
.guarantee__seal-unit { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .12em; line-height: 1; }
.guarantee__seal-sub { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .22em; margin-top: 6px; opacity: .92; }
.guarantee__body .eyebrow { color: var(--red); }
.guarantee__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 8px 0 14px; max-width: 620px; }
.guarantee__text { color: var(--gray-700); font-size: 17px; line-height: 1.65; max-width: 620px; margin: 0 0 20px; }
.guarantee__points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.guarantee__points li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.guarantee__points .ic {
  width: 22px; height: 22px; flex: none; padding: 5px; border-radius: 50%;
  background: var(--red); color: #fff;
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   4. WHY CHOOSE US  (branded EKG + cross motif)
   ============================================================ */
#why { position: relative; overflow: hidden; }
#why > .container { position: relative; z-index: 1; }

.why-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Heartbeat / EKG line behind the heading */
.why-ekg {
  position: absolute; left: 0; right: 0; top: 26px;
  width: 100%; height: 200px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.why-ekg__base { fill: none; stroke: rgba(225, 27, 34, .18); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.why-ekg__pulse {
  fill: none; stroke: #ff3038; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 160 2150;
  filter: drop-shadow(0 0 7px rgba(255, 48, 56, .9));
  animation: ekgRun 4.5s linear infinite;
}
@keyframes ekgRun { from { stroke-dashoffset: 2310; } to { stroke-dashoffset: 0; } }

/* Red medical-cross watermarks, gently beating */
.why-cross { position: absolute; fill: rgba(225, 27, 34, .07); }
.why-cross--lg { width: 300px; height: 300px; top: -70px; right: -50px; animation: crossBeat 5s ease-in-out infinite; }
.why-cross--sm { width: 150px; height: 150px; bottom: -36px; left: -28px; animation: crossBeat 5s ease-in-out .6s infinite; }
@keyframes crossBeat {
  0%, 100% { transform: scale(1); opacity: .55; }
  12% { transform: scale(1.06); opacity: 1; }
  24% { transform: scale(1); opacity: .55; }
}

.why-card {
  background: var(--charcoal-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(225,27,34,.55); background: #262a31; }
.why-card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  margin-bottom: 18px; box-shadow: 0 10px 24px rgba(225,27,34,.30);
}
.why-card__icon svg { width: 28px; height: 28px; fill: #fff; }
.why-card h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 9px; }
.why-card p { color: rgba(255,255,255,.70); font-size: 15px; margin: 0; }

/* ============================================================
   MEET THE GATE DOCTOR (VIDEO)
   ============================================================ */
.meet__inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.meet__video { width: 100%; }
.video-ph {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; cursor: pointer; padding: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(225,27,34,.25), transparent 60%),
    linear-gradient(135deg, #23272e, #0e0f12);
  box-shadow: var(--shadow);
}
.video-ph__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.video-ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,15,18,.10), rgba(14,15,18,.45));
}
.video-ph:hover .video-ph__img { transform: scale(1.04); }
.video-ph__img { transition: transform .4s ease; }
.video-ph__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; padding: 22px; border-radius: 50%;
  background: var(--red); fill: #fff; z-index: 2;
  box-shadow: 0 12px 34px rgba(225,27,34,.45);
  transition: transform .2s ease, background .2s ease;
}
.video-ph:hover .video-ph__play { transform: translate(-50%, -50%) scale(1.08); background: var(--red-dark); }
.video-ph__label {
  position: absolute; left: 24px; bottom: 22px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.video-ph__label::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  display: block; background: #0e0f12; object-fit: contain;
}

.meet__lead { font-size: 18px; color: var(--gray-500); margin: 16px 0 22px; }
.meet__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.meet__list {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px;
}
.meet__list li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.meet__list .ic {
  width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   5. PROJECTS
   ============================================================ */
.project-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__media { height: 200px; overflow: hidden; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.project-card:hover .project-card__img { transform: scale(1.05); }
.project-card__body { padding: 20px; }
.project-card__body h3 { font-size: 18px; font-weight: 800; margin: 10px 0 6px; }
.project-card__body p { color: var(--gray-500); font-size: 14px; margin: 0; }

.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft);
  padding: 5px 11px; border-radius: 999px;
}
.tag--light { color: var(--gray-700); background: var(--gray-100); margin-bottom: 12px; }

/* ============================================================
   6. BRANDS
   ============================================================ */
.brand-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.brand-grid__label {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}
.brand-grid + .brand-grid__label { margin-top: 28px; }
a.brand-logo { text-decoration: none; color: inherit; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 104px; padding: 20px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--red);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.brand-logo:hover { transform: translateY(-4px); border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.brand-logo__img {
  display: block; max-width: 100%; max-height: 56px; width: auto; height: auto;
  object-fit: contain;
}
/* White / light logos need a dark tile to stay visible */
.brand-logo--dark { background: var(--charcoal); border-color: rgba(255, 255, 255, .14); }
.brand-logo--dark:hover { border-color: rgba(255, 255, 255, .28); }
.brand-logo .img-ph--logo { width: 100%; height: 60px; }
.brand-logo--more { border-style: dashed; border-color: var(--red); }

/* ============================================================
   7. REVIEWS
   ============================================================ */
.review-feature {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1d22, #0e0f12);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}
.review-feature__mark {
  position: absolute; top: 18px; right: 24px;
  width: 120px; height: 120px; fill: rgba(255,255,255,.06);
}
.review-feature__body { position: relative; max-width: 880px; }
.review-feature .stars svg { width: 22px; height: 22px; }
.review-feature__quote {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.4;
  margin: 18px 0 26px; color: #fff; letter-spacing: -.01em;
}
.review-feature .review-card__author strong { color: #fff; }
.review-feature .review-card__author span { color: rgba(255,255,255,.65); }

.review-grid { gap: 22px; }

.review-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.review-card__quote { font-size: 16px; color: var(--gray-700); margin: 0; flex: 1; }
.review-card__author { display: flex; align-items: center; gap: 13px; }
.review-card__author strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.review-card__author span { font-size: 13px; color: var(--gray-500); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #4285F4;
  color: #fff !important; font-family: var(--font-head); font-weight: 800; font-size: 15px;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1;
}
.avatar--blue { background: #4285F4; }
.avatar--red { background: #DB4437; }
.avatar--green { background: #0F9D58; }
.avatar--purple { background: #AB47BC; }
.avatar--orange { background: #F4511E; }
.avatar--teal { background: #00897B; }
.avatar--indigo { background: #5C6BC0; }
.avatar--pink { background: #EC407A; }
.avatar--brown { background: #8D6E63; }
.avatar--cyan { background: #00ACC1; }

/* ============================================================
   8. STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 10px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red);
  color: var(--red); font-family: var(--font-head); font-weight: 800; font-size: 26px;
  margin-bottom: 18px; box-shadow: var(--shadow-sm); position: relative; z-index: 1;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 14.5px; margin: 0; }
/* connecting line */
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 2px; background: var(--gray-300); z-index: 0;
}

/* ============================================================
   9. LEARNING CENTER
   ============================================================ */
.learning { background: #fff; padding-bottom: 112px; }
.learning__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 26px;
}
.learning__top .section__title { max-width: 620px; }
.learning__lead { margin-top: 14px; font-size: 17px; color: var(--gray-500); max-width: 600px; }
.learning__cta-top { flex: none; }

.topic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.topic-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card-bg, #fff); border: 1px solid var(--card-bd, var(--gray-200)); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.topic-grid .topic-card:nth-child(1) { --card-bg: #fdeced; --card-bd: #f6d2d4; --card-c: #d6232a; }
.topic-grid .topic-card:nth-child(2) { --card-bg: #eef3fe; --card-bd: #d6e2fb; --card-c: #2563eb; }
.topic-grid .topic-card:nth-child(3) { --card-bg: #eaf6ef; --card-bd: #cde9d8; --card-c: #15803d; }
.topic-grid .topic-card:nth-child(4) { --card-bg: #fdf3e7; --card-bd: #f6e1c4; --card-c: #b45309; }
.topic-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  background: #fff; color: var(--card-c, var(--red));
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.topic-card__icon svg { width: 28px; height: 28px; }
.topic-card__title { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.topic-card__text { color: var(--gray-700); font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.topic-card__link {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--card-c, var(--red));
  transition: gap .15s ease;
}
.topic-card:hover .topic-card__link span { margin-left: 4px; }

/* ============================================================
   10. FINAL CTA
   ============================================================ */
.final-cta {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(225,27,34,.32), transparent 55%),
    linear-gradient(135deg, #15171c, #0a0b0d);
  color: #fff;
}
.final-cta__inner { text-align: center; padding: 86px 24px; }
.final-cta__title { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; }
.final-cta__subtitle { margin: 16px 0 32px; font-size: 19px; color: rgba(255,255,255,.82); }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal); color: rgba(255,255,255,.72); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 24px 48px;
}
.footer__logo { height: 64px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer__about { margin: 18px 0; font-size: 14.5px; max-width: 340px; }
.footer__about a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer__about a:hover { color: var(--red); }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.footer__contact a:hover { color: #fff; }
.footer__contact strong { color: #fff; font-weight: 600; }
.footer__col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 14.5px; transition: color .15s ease; }
.footer__col ul a:hover { color: var(--red); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-size: 13.5px; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; margin-top: 8px; padding: 0 4px; }

  .nav-menu {
    position: fixed; top: var(--header-h, 126px); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-link { width: 100%; justify-content: space-between; font-size: 17px; padding: 15px 12px; border-radius: 10px; }
  .nav-menu > li { border-bottom: 1px solid var(--gray-100); }
  .nav-menu > li.nav-cta-mobile { border: none; }

  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0;
    max-height: 0; overflow: hidden; padding: 0 8px;
    transition: max-height .3s ease, padding .3s ease;
    background: var(--muted-bg); border-radius: 10px;
  }
  .has-dropdown.is-open .dropdown { max-height: 520px; padding: 6px 8px; margin-bottom: 6px; }
  .has-dropdown.is-open .caret { transform: rotate(180deg); }
  .dropdown li a { font-size: 15.5px; padding: 12px 14px; }

  /* Layout */
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .members { gap: 16px; padding: 22px; }
  .member-logo { flex: 1 1 28%; }
  .meet__inner { grid-template-columns: 1fr; gap: 32px; }
  .promo { grid-template-columns: 1fr; gap: 32px; padding: 40px 36px; }
  .promo__visual { order: -1; justify-content: flex-start; }
  .checkup-card { max-width: 360px; }
  .guarantee__card { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; padding: 36px 28px; }
  .guarantee__points { justify-content: center; }
  .guarantee-duo { grid-template-columns: 1fr; }
  .hero__reviews {
    position: static; transform: none; margin-top: 32px;
    width: fit-content; max-width: 100%;
  }
  .learning__top { flex-direction: column; align-items: flex-start; }
  .learning__cta-top { align-self: stretch; text-align: center; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .review-feature { padding: 36px 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .utility-bar__inner { justify-content: center; }
  .utility-bar__left { display: none; }
  .utility-bar__right { gap: 14px; }
  .hero__content { padding: 64px 24px 92px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .members { margin-top: -28px; }
  .member-logo { flex: 1 1 40%; }
  .review-feature { padding: 30px 24px; }
  .review-feature__mark { width: 80px; height: 80px; }
  .meet__list { grid-template-columns: 1fr; }
  .video-ph__play { width: 64px; height: 64px; padding: 17px; }
  .promo { padding: 32px 24px; }
  .promo__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Accessibility */
:focus-visible { outline: 3px solid rgba(225,27,34,.55); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
