@media (max-width: 1020px) {
  nav {
    display: none;
  }

  .hero-grid,
  .split,
  .trust,
  .form-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 6.2vw, 3.55rem);
  }

  .solution-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid article.featured {
    grid-column: 1 / -1;
  }

  .process-panel {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .impact-copy {
    min-height: auto;
  }

  .impact-board {
    grid-template-columns: 1fr;
  }

  .impact-stack {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .office-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .hero-announcement {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100% - 24px, 1120px);
  }

  .header {
    align-items: center;
    flex-direction: row;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-mark strong {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .brand-mark small {
    font-size: 0.56rem;
    gap: 4px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    padding: 18px 0 42px;
  }

  .hero-announcement {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 18px;
    font-size: 0.82rem;
  }

  .hero-grid,
  .solution-grid,
  .faq-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .faq-grid article.featured {
    grid-column: auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid::before {
    top: 26px;
    right: auto;
    bottom: 26px;
    left: 27px;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, rgba(7, 94, 168, 0.18), rgba(31, 157, 138, 0.5));
  }

  .process-grid article {
    min-height: auto;
    padding-left: 70px;
  }

  .process-number {
    position: absolute;
    top: 18px;
    left: 16px;
    width: 46px;
    height: 46px;
    border-width: 5px;
  }

  .process-icon {
    margin-top: 0;
  }

  .trust {
    padding-inline: 12px;
  }

  .trust-copy {
    margin-bottom: 24px;
    text-align: left;
  }

  .hero-proof span {
    font-size: 0.82rem;
  }

  .office-card img {
    height: 230px;
  }

  .location-details article {
    min-height: auto;
    padding: 16px;
  }

  .map-location {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .map-embed,
  .map-embed iframe {
    min-height: 108px;
  }

  .national-location {
    padding-right: 104px;
  }

  .country-ribbon {
    right: 16px;
    bottom: 16px;
    width: 62px;
    height: 62px;
  }

  .ally-logos {
    margin-top: 20px;
  }

  .ally-logos::before,
  .ally-logos::after {
    width: 36px;
  }

  .ally-logo-card {
    flex-basis: 150px;
    min-height: 66px;
    padding: 12px;
  }

  .ally-logo-card img {
    max-height: 38px;
  }

  .ally-logo-card-wide {
    flex-basis: 174px;
  }

  .ally-logo-card-wide img {
    max-width: 150px;
  }

  .payer-marquee::before,
  .payer-marquee::after {
    width: 36px;
  }

  .payer-track span {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .about-section {
    padding-top: 36px;
  }

  .about-grid {
    gap: 20px;
    padding: 18px;
  }

  .about-copy h2 {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
  }

  .about-main-card {
    min-height: 164px;
    padding: 20px;
  }

  .about-main-card::after {
    display: none;
  }

  .about-main-card span {
    margin-bottom: 18px;
  }

  .about-mini-grid {
    grid-template-columns: 1fr;
  }

  .about-mini-grid article {
    min-height: auto;
    padding: 16px;
  }

  .visual-flow {
    inset: -10px 0 auto auto;
    width: 64%;
  }

  .impact {
    width: min(100% - 24px, 1120px);
    margin-top: 0;
    padding: 18px;
    border-radius: 22px;
  }

  .impact-copy {
    gap: 8px;
  }

  .impact-copy p {
    font-size: 0.94rem;
  }

  .impact-main {
    min-height: 210px;
    padding: 20px;
  }

  .impact-main .metric-icon {
    width: 40px;
    height: 40px;
    opacity: 0.58;
  }

  .impact-main .metric-icon svg {
    width: 20px;
    height: 20px;
  }

  .impact-item .metric-icon {
    width: 34px;
    height: 34px;
    top: 50%;
    right: 16px;
    opacity: 0.62;
    transform: translateY(-50%);
  }

  .impact-item .metric-icon svg {
    width: 17px;
    height: 17px;
  }

  .impact-main span {
    font-size: clamp(4rem, 22vw, 5.7rem);
  }

  .impact-stack {
    gap: 10px;
  }

  .impact-item {
    min-height: 82px;
    padding: 16px;
  }

  .impact-item span {
    font-size: 1.55rem;
  }

  h1 {
    font-size: clamp(1.95rem, 8.3vw, 2.75rem);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.08;
  }

  .lead {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions a,
  .nav-cta,
  .primary-button,
  .secondary-button,
  .lead-form button {
    min-height: 42px;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-visual img {
    height: clamp(320px, 70vw, 460px);
    border-radius: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section.trust {
    padding-right: 12px;
    padding-left: 12px;
  }

  .office-gallery {
    grid-template-columns: 1fr;
  }

  .office-card img {
    height: clamp(250px, 72vw, 340px);
  }

  .split,
  .trust,
  .form-section {
    gap: 26px;
  }

  .solution-grid article,
  .process-grid article,
  .faq-grid article,
  .process-aside,
  .lead-form {
    padding: 18px;
  }

  .process-grid article {
    padding-left: 70px;
  }

  .solution-grid article,
  .process-grid article,
  .faq-grid article {
    min-height: auto;
  }

  .visual-card {
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
  }

  .form-visual {
    margin-top: 18px;
    padding: 18px;
  }

  .form-card-heading {
    padding-bottom: 14px;
  }

  .form-visual::after {
    right: 16px;
    width: 124px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .site-footer {
    padding-bottom: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 7px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-mark strong {
    font-size: clamp(0.94rem, 4.3vw, 1.08rem);
  }

  .brand-mark small {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .nav-cta {
    padding: 0 11px;
  }

  .impact-main span {
    font-size: clamp(3.65rem, 20vw, 4.65rem);
  }

  .impact-main .metric-icon {
    display: none;
  }

  .impact-item .metric-icon {
    right: 12px;
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .hero-visual img {
    height: clamp(280px, 78vw, 360px);
  }
}
