/* Extra responsive + overflow guards (loads last). Brand gold: #E8B84A. */
html, body { max-width: 100%; }
img, video, svg, canvas { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.container { padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.hero-inner { padding-left: 0; padding-right: 0; }

.svc-grid, .pain-grid, .tm-grid, .team-grid, .duo, .split,
.book-grid, .ways-grid, .steps-grid, .story-grid, .values-grid,
.founder-grid, .footer-inner { min-width: 0; }
.svc-grid > *, .pain-grid > *, .tm-grid > *, .team-grid > *,
.duo > *, .split > *, .book-grid > *, .ways-grid > *, .steps-grid > *,
.story-grid > *, .values-grid > *, .founder-grid > *, .footer-inner > * { min-width: 0; }

.svc-media img, .way-card img, .crew-media img { width: 100%; height: auto; object-fit: cover; }

.btn, .nav-dd-btn, .faq-item summary, .ugc-nav, .ugc-pill,
.nav-links > a, .socials a, .wa-float {
  min-height: 44px;
}
/* Keep Services / About / Contact on one baseline */
.nav-links { align-items: center; }
.nav-links > a,
.nav-dd-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.faq-item summary { display: flex; align-items: center; cursor: pointer; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

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

/* Tablet and down: keep fluid type */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero-title, .page-hero h1 { font-size: clamp(30px, 5.2vw, 52px); }
}

/* Hide in-pill CTA so logo + toggle fit on small phones */
@media (max-width: 520px) {
  .nav-cta-desktop { display: none; }
  .nav-links.open .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    border-bottom: 0 !important;
  }
}

@media (max-width: 720px) {
  .nav-pill { gap: 10px; }
  .hero-title, .page-hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero-sub, .page-hero .hero-sub { font-size: clamp(15px, 4vw, 18px); }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 20px; }
  .hero-cta { width: 100%; }
  .hero-note, .hero-phone, .hero-trust, .cta-phone { overflow-wrap: anywhere; }
  .footer-tagline { display: block; }
}

@media (max-width: 390px) {
  .nav { top: 8px; padding: 0 10px; }
  .nav-pill { padding: 6px 6px 6px 12px; }
  .brand-logo { height: 22px; }
  .hero-tech, .page-hero { padding-top: 108px; }
  .section { padding: 64px 0; }
  .cta-card { padding: 28px 16px; }
  .wa-float { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 1440px) {
  .container { max-width: 1200px; }
}

@media (min-width: 1920px) {
  .container { max-width: 1280px; }
}


/* ---- qa-fix 2026-11 ---- */
h1, h2 { text-wrap: balance; }
p, .hero-sub, .hero-trust, blockquote { text-wrap: pretty; }
.name-nowrap { white-space: nowrap; }
.svc-media video.media-loop,
.svc-media img,
.crew-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
}
.svc-card { height: 100%; }
.svc-grid, .pain-grid, .tm-grid { align-items: stretch; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #E8B84A;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .name-nowrap { white-space: normal; }
}
@media (max-width: 720px) {
  /* Keep floats clear of bottom CTAs without huge empty footer space */
  .wa-float { bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
  .chat-float { right: max(8px, env(safe-area-inset-right, 0px)); bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 58px + 4px); width: 70px; height: 70px; }
  .hero-cta-wrap, .page-hero .hero-cta { padding-bottom: 28px; }
  .cta-final .cta-card { margin-bottom: 8px; }
}

@media (max-width: 1100px) {
  .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.founder-grid, .founder-copy h2 { overflow-wrap: break-word; }
