/* =====================================================
   RESPONSIVE — Breakpoints: 1200 / 1024 / 768 / 480 / 375
   ===================================================== */

/* ── 1200px — Tighten container ── */
@media (max-width: 1200px) {
  :root {
    --container-padding: var(--space-8);
    --section-py: var(--space-16);
  }

  .hero-inner { grid-template-columns: 1fr 414px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── 1024px — Tablet landscape ── */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-6);
    --section-py: var(--space-12);
    --header-height: 64px;
  }

  /* Header */
  .site-nav { gap: 0; }
  .site-nav a { font-size: var(--text-sm); padding: var(--space-2) var(--space-3); }
  .header-phone { font-size: var(--text-xs); }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr 368px; gap: var(--space-8); }
  .hero-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
  .hero-subtitle { font-size: var(--text-lg); }
  .hero-card { left: calc(-1 * var(--space-4)); min-width: 165px; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-layout { gap: var(--space-10); }
  .about-image-wrap img { aspect-ratio: 4 / 5; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
}


/* ── 768px — Tablet portrait / Mobile ── */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-5);
    --section-py: var(--space-10);
    --header-height: 60px;
  }

  /* Typography scale down */
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }
  .page-hero__title { font-size: var(--text-4xl); }

  /* Header — show hamburger between logo and CTA, hide desktop nav */
  .site-nav { display: none; }
  .header-phone { display: none; }
  .header-wa { display: none; }
  .hamburger { display: flex; }
  .header-actions { display: none; }

  /* Hero — stack vertically */
  .hero {
    padding-top: var(--space-12);
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-content {
    padding-bottom: var(--space-4);
    text-align: center;
  }

  .hero-badges { justify-content: center; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-subtitle { font-size: var(--text-base); margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }

  .hero-image-wrap {
    max-width: 340px;
    margin-inline: auto;
    transform: none;
    margin-bottom: 0;
  }

  /* Cookie notice moves to top on mobile to avoid covering bottom CTA bar */
  .cookie-notice {
    bottom: auto;
    top: var(--header-height);
    border-top: none;
    border-bottom: 2px solid #dde3ea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
  }
  .cookie-notice p {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  .cookie-notice__btn {
    align-self: flex-start;
  }

  .hero-image-wrap img {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }

  .hero-card {
    left: var(--space-4);
    bottom: var(--space-4);
  }

  /* Services grid */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  /* Values grid */
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 480px;
    margin-inline: auto;
  }

  .steps-grid::before { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .stat-item:first-child { border-top: none; }
  .stat-item__value { font-size: var(--text-4xl); }

  /* About */
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-image-wrap {
    max-width: 300px;
    margin-inline: auto;
    order: -1;
  }

  .about-image-wrap img { aspect-ratio: 3 / 4; }
  .about-image-wrap::before { display: none; }

  .about-content { text-align: center; }
  .about-credentials { justify-content: center; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  /* Partners */
  .partners-grid { gap: var(--space-5); }
  .partner-logo { height: 32px; }

  /* FAQ */
  .faq-list { max-width: 100%; }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .cta-banner__title { font-size: var(--text-3xl); }
  .cta-banner__subtitle { font-size: var(--text-base); }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .contact-form { padding: var(--space-6); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-links { gap: var(--space-1) var(--space-4); }

  /* WhatsApp + accessibility floats — right side on mobile, above bottom bar */
  .whatsapp-float {
    bottom: 80px;
    left: auto;
    right: var(--space-4);
  }
  .accessibility-float,
  .a11y-widget,
  .a11y-trigger {
    bottom: 144px;
    left: auto;
    right: var(--space-4);
  }
  /* Panel aligns to right edge of trigger on mobile */
  .a11y-panel {
    left: auto;
    right: 0;
  }

  /* Show mobile bottom CTA bar */
  .mobile-cta-bar { display: flex; }

  /* Body padding to avoid mobile bar overlap */
  body { padding-bottom: 68px; }

  /* Page hero */
  .page-hero { padding-block: var(--space-10); }
  .page-hero__title { font-size: var(--text-3xl); }
}


/* ── 480px — Small mobile ── */
@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-4);
    --section-py: var(--space-8);
  }

  /* Typography */
  h2 { font-size: var(--text-2xl); }
  .section-title { font-size: var(--text-2xl); }
  .section-subtitle { font-size: var(--text-base); }

  /* Hero */
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: var(--text-sm); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-image-wrap { max-width: 320px; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; }

  /* Values — single column */
  .values-grid { grid-template-columns: 1fr; }

  /* CTA Banner */
  .cta-banner { padding: var(--space-8) var(--space-4); }
  .cta-banner__actions { flex-direction: column; align-items: stretch; }
  .cta-banner__actions .btn { text-align: center; justify-content: center; }

  /* Service card */
  .service-card { padding: var(--space-6); }

  /* Hero card hidden on very small */
  .hero-card { display: none; }

  /* WhatsApp float — only icon on very small */
  .whatsapp-float .whatsapp-float__label { display: none; }
  .whatsapp-float { padding: 0.875rem; }

  /* Step card */
  .step-card { padding: var(--space-6) var(--space-4); }
}


/* ── 375px — Very small mobile ── */
@media (max-width: 375px) {
  :root { --container-padding: var(--space-3); }

  .hero-title { font-size: 1.5rem; }
  .hero-trust { flex-direction: column; gap: var(--space-2); text-align: center; }

  .btn-lg { padding: 0.875rem 1.5rem; font-size: var(--text-base); }

  .testimonial-card { padding: var(--space-5); }
  .cta-banner { padding: var(--space-6) var(--space-3); }
  .cta-banner__title { font-size: var(--text-2xl); }
}


/* ── Print ── */
@media print {
  .site-header,
  .mobile-cta-bar,
  .whatsapp-float,
  .accessibility-float,
  .a11y-widget,
  .hamburger,
  .mobile-nav,
  .cta-banner,
  .hero-image-wrap { display: none; }

  body { padding-bottom: 0; color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
