/* ==========================================================================
   The Garage Door Medic — stylesheet
   Palette: deep navy + medic red
   ========================================================================== */

:root {
  --navy: #0d2b4e;
  --navy-dark: #081a30;
  --navy-mid: #133a67;
  --red: #d62839;
  --red-dark: #b31d2c;
  --amber: #f2a71b;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #5c6b7a;
  --border: #e3e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 43, 78, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 43, 78, 0.16);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 40px; }
.section-head.left { margin: 0 0 32px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(214,40,57,.3); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: .85rem; }

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: #fff;
  font-size: .84rem;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}
.top-bar a { color: var(--amber); font-weight: 700; }

/* ========== Header ========== */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 20px;
  padding: 10px 24px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark::after { display: none !important; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-name span {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: 2px;
}

nav.main-nav {
  justify-self: center;
  min-width: 0;
}
nav.main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: .84rem;
  color: var(--navy);
  border-radius: 8px;
  white-space: nowrap;
}
nav.main-nav > ul > li > a .caret {
  font-size: .65rem;
  opacity: .55;
  line-height: 1;
}
nav.main-nav > ul > li:hover > a,
nav.main-nav > ul > li:focus-within > a {
  background: var(--bg);
  color: var(--red);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  display: none;
  z-index: 60;
  /* Keep hover alive while moving from trigger into the menu */
  margin-top: 0;
}
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text);
  white-space: nowrap;
}
.dropdown a:hover { background: var(--bg); color: var(--red); }

@media (min-width: 981px) {
  nav.main-nav > ul > li:hover > .dropdown,
  nav.main-nav > ul > li:focus-within > .dropdown {
    display: block;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.header-phone { text-align: right; line-height: 1.2; }
.header-phone a {
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.header-phone small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}
.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.menu-toggle .bar::before { top: -6px; }
.menu-toggle .bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(214,40,57,.25), transparent),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 70%);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero.has-photo {
  background:
    linear-gradient(105deg, rgba(8,26,48,.92) 0%, rgba(8,26,48,.72) 48%, rgba(8,26,48,.4) 100%),
    url('../images/hero/sliderbg.jpg') center/cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 100%;
}
.hero h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.7rem); margin-bottom: .45em; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 540px; }
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: .92rem;
}
.stars { color: var(--amber); letter-spacing: 2px; }
.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  aspect-ratio: 4/3;
  overflow: hidden;
  padding: 0;
}
.hero-visual img {
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* Stat strip */
.stat-strip { background: var(--navy-mid); color: #fff; }
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 24px;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--amber);
}
.stat-item .label { font-size: .8rem; color: rgba(255,255,255,.75); }

.specials-banner {
  background: #fff4e0;
  border-top: 1px solid #f4dca6;
  border-bottom: 1px solid #f4dca6;
}
.specials-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.specials-banner strong { color: var(--red); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; }

.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .muted { color: rgba(255,255,255,.72); }

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial .stars { margin-bottom: 10px; display: block; }
.testimonial .who { margin-top: 14px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.testimonial .where { color: var(--muted); font-size: .82rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-block;
}
a.chip:hover { border-color: var(--red); color: var(--red); }

.lead-widget-slot {
  border-radius: var(--radius);
  width: 100%;
}
.lead-widget-slot.has-embed {
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.serviceflow-embed {
  width: 100%;
  height: 800px;
  max-width: 100%;
}
.serviceflow-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 1.5em; }
.article ul { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.article li { margin-bottom: .5em; }

.related-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.related-links a {
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy);
}
.related-links a:hover { border-color: var(--red); color: var(--red); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item .media {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e7ecf3, #d5dde8);
  overflow: hidden;
  padding: 0;
}
.gallery-item .media img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.gallery-item .caption {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
}

.breadcrumb { color: rgba(255,255,255,.65); font-size: .82rem; margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.page-hero .muted { color: rgba(255,255,255,.75); }

.service-card-link {
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card-link .read-more { color: var(--red); font-weight: 700; font-size: .88rem; }

/* Full-bleed card images: edge-to-edge, text keeps side padding */
.card:has(> .card-thumb),
.card:has(> img:first-child) {
  padding: 0 0 24px;
  overflow: hidden;
}
.card:has(> .card-thumb) > :not(.card-thumb),
.card:has(> img:first-child) > :not(img:first-child) {
  margin-left: 28px;
  margin-right: 28px;
}
.card > .card-thumb,
.card > img:first-child,
.card-thumb {
  width: 100%;
  min-width: 100%;
  max-width: none;
  margin: 0 0 16px;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  height: auto;
}

.prose-list { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.prose-list li { margin-bottom: .5em; color: var(--muted); }

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}
.partner-row img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: .9;
}

.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero.has-photo {
  background:
    linear-gradient(160deg, rgba(13,43,78,.88), rgba(8,26,48,.9)),
    url('../images/hero/banner.jpg') center/cover no-repeat;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.about-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

.note {
  background: #eaf3ff;
  border: 1px dashed #9db9d9;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .85rem;
  color: var(--navy);
}

/* Pricing */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.pricing {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.pricing th, table.pricing td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.pricing th { background: var(--navy); color: #fff; font-family: 'Poppins', sans-serif; }
table.pricing tr:last-child td { border-bottom: none; }
table.pricing tr:nth-child(even) td { background: #fafbfd; }
table.pricing td:last-child { font-weight: 700; color: var(--red); white-space: nowrap; }

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.faq-q .plus { transition: transform .2s ease; font-size: 1.25rem; color: var(--red); flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 18px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 500px; padding: 0 18px 18px; }

.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--bg), #e7ecf3);
  margin-bottom: 14px;
  border: 1px dashed var(--border);
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  padding-top: 56px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.site-footer .brand-mark {
  background: #fff;
  border-color: rgba(255,255,255,.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: .88rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.55);
}
.footer-powered a {
  color: rgba(255,255,255,.75);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-powered a:hover { color: var(--amber); }

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  z-index: 600;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-weight: 700;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.mobile-cta a { display: block; width: 100%; }

.overlay {
  position: fixed; inset: 0;
  background: rgba(8,26,48,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.overlay.show { display: flex; }
.popup {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.popup .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

/* ========== Breakpoints ========== */

/* Large tablet / small laptop — compact desktop nav */
@media (max-width: 1180px) {
  .nav-wrap { gap: 12px; padding: 10px 16px; }
  nav.main-nav > ul > li > a { padding: 8px 7px; font-size: .78rem; }
  .header-phone a { font-size: .92rem; }
  .brand-name { font-size: .9rem; }
  .header-cta .btn { padding: 10px 14px; font-size: .82rem; }
}

/* Tablet — hamburger */
@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 0;
    padding: 10px 16px;
    position: relative;
  }
  .brand { grid-area: brand; }
  .header-cta {
    grid-area: actions;
    gap: 8px;
  }
  .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }

  nav.main-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    justify-self: stretch;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
  nav.main-nav.open-mobile { display: block; }
  nav.main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  nav.main-nav > ul > li > a {
    padding: 12px 10px;
    font-size: .95rem;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--bg);
    border-radius: 10px;
    margin: 0 0 6px;
    padding: 4px;
    min-width: 0;
  }
  nav.main-nav > ul > li.open > .dropdown { display: block; }
  .dropdown a { white-space: normal; padding: 10px 12px; }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-cta { display: block; }
  body { padding-bottom: 64px; }
  section { padding: 56px 0; }
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .specials-banner .container { flex-direction: column; align-items: flex-start; }
  .specials-banner .btn { width: 100%; }
  .page-hero .hero-actions { justify-content: center; }
  .page-hero .hero-actions .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .top-bar { font-size: .78rem; padding: 8px 12px; }
  .brand-name br { display: none; }
  .brand-name { white-space: normal; font-size: .88rem; }
  .brand-name span { display: none; }
  .brand-mark { width: 40px; height: 40px; }

  .hero { padding: 40px 0 48px; }
  .hero-badge { font-size: .72rem; }
  .hero p.lead { font-size: .98rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 100%; }

  .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip .container { gap: 12px; padding: 22px 16px; }
  .stat-item .label { font-size: .74rem; }

  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .card { padding: 22px; }
  .card:has(> .card-thumb),
  .card:has(> img:first-child) {
    padding: 0 0 22px;
  }
  .card:has(> .card-thumb) > :not(.card-thumb),
  .card:has(> img:first-child) > :not(img:first-child) {
    margin-left: 22px;
    margin-right: 22px;
  }
  .card > .card-thumb,
  .card > img:first-child,
  .card-thumb {
    margin-bottom: 14px;
  }

  .partner-row { gap: 18px; }
  .partner-row img { height: 32px; }
  .popup { padding: 28px 20px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .header-cta .btn { display: none; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
}
