/* Responsive breakpoints — mobile-first overrides */

@media (max-width: 1099px) {
  .header-inner {
    position: relative;
    justify-content: flex-end;
  }

  .site-header .header-inner > .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group--span-full {
    grid-column: 1 / -1;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-md);
  }

  .nav-desktop {
    display: flex;
    grid-column: 2;
  }

  .header-actions {
    grid-column: 3;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions .btn {
    display: inline-flex;
  }
}

@media (min-width: 1100px) and (max-width: 1279px) {
  .nav-pill__item a {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .logo__img {
    height: 56px;
    max-width: 150px;
  }

  .header-actions .btn {
    padding: 0.625rem 1rem;
    min-height: 42px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .footer-bottom__credit::before {
    content: '·';
    margin-right: var(--space-sm);
    color: var(--color-text-muted);
  }

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

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

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

  .grid--3-md {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-2xl);
  }

  .hero--banner {
    min-height: auto;
    align-items: flex-start;
    padding-block: calc(var(--header-height) + var(--space-sm)) var(--space-lg);
  }

  .hero.hero--banner.hero--carousel {
    padding-block: 0;
    min-height: clamp(560px, 100svh, 900px);
  }

  .hero--carousel {
    min-height: clamp(560px, 100svh, 900px);
  }

  .hero-carousel,
  .hero-carousel__slides,
  .hero-carousel__slide {
    min-height: clamp(560px, 100svh, 900px);
  }

  .hero-carousel__slide .hero__inner {
    min-height: clamp(560px, 100svh, 900px);
    align-items: center;
    justify-content: flex-start;
    padding-block: calc(var(--header-height) + 0.5rem) calc(var(--space-2xl) + 2rem);
  }

  .hero-carousel__slide--right .hero__inner {
    justify-content: center;
  }

  .hero-carousel__slide--right .hero__content {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    padding-inline: var(--space-md);
  }

  .hero-carousel__slide--right .hero__lead {
    margin-inline: auto;
  }

  .hero-carousel__slide--right .hero__actions,
  .hero-carousel__slide--right .hero__trust,
  .hero-carousel__slide--right .btn-group,
  .hero-carousel__slide--center .hero__actions,
  .hero-carousel__slide--center .hero__trust,
  .hero-carousel__slide--center .btn-group {
    justify-content: center;
  }

  .hero-carousel__slide--right .hero-trust-badge {
    margin-inline: auto;
  }

  .hero-carousel__slide--right .trust-item,
  .hero-carousel__slide--right .trust-item__text,
  .hero-carousel__slide--center .trust-item,
  .hero-carousel__slide--center .trust-item__text {
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero--carousel .trust-item {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero--carousel .trust-item__icon {
    margin-top: 0.25rem;
  }

  .hero--banner h1 .hero__title-phrase {
    white-space: normal;
  }

  .hero-trust-badge__label {
    white-space: normal;
  }

  .hero--banner h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-carousel__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero--banner .hero__lead {
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
  }

  .hero--banner .hero__actions {
    margin-top: var(--space-md);
  }

  .hero--banner .hero__trust {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
  }

  .hero__content {
    width: min(100%, 100%);
    padding: 1rem var(--space-md);
  }

  .hero-carousel__slide img {
    object-fit: cover;
    object-position: center center;
  }

  .hero-carousel__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.62) 42%,
      rgba(255, 255, 255, 0.28) 72%,
      rgba(255, 255, 255, 0.08) 100%
    );
  }

  .hero--carousel .hero__trust,
  .hero-carousel__slide--center .hero__trust,
  .hero-carousel__slide--right .hero__trust {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    width: 100%;
    margin-inline: auto;
  }

  .logo__img {
    height: 52px;
  }

  .hero:not(.hero--banner) {
    padding-block: var(--space-3xl) var(--space-2xl);
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero--banner .btn-group {
    width: 100%;
    align-items: stretch;
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero--banner .hero__trust {
    align-items: stretch;
  }

  .hero--carousel .hero__trust {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .hero--banner:not(.hero--carousel) .trust-item {
    justify-content: center;
    text-align: center;
  }

  .hero--banner:not(.hero--carousel) .trust-item__text {
    text-align: center;
  }

  .hero-carousel__dots {
    bottom: 0.75rem;
    gap: 0.3rem;
    max-width: calc(100% - 1rem);
  }

  .hero-carousel__dot {
    width: 1.35rem;
    height: 0.28rem;
  }

  .whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 52px;
    height: 52px;
  }

  .footer-bottom {
    padding-inline: var(--space-md) calc(var(--space-3xl) + 12px);
  }
}

@media (max-width: 639px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding-inline: var(--space-md);
  }
}
