/* ============================================================
   OPTIMAL ACCOUNTING — responsive.css
   Breakpoints: 1024px | 768px | 480px
   ============================================================ */

/* ---- 1024px — TABLET LANDSCAPE ---- */
@media (max-width: 1024px) {
  :root { --header-height: 72px; }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 0;
  }
  .hero-visual { display: none; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { margin-bottom: 0; }

  .service-detail-header { flex-direction: column; }
  .service-benefits { grid-template-columns: 1fr; }
  .services-grid-2col { grid-template-columns: 1fr; }
  .scd-benefits { grid-template-columns: 1fr; }

  .lead-magnet {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lead-magnet-form { justify-content: center; }

  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- 768px — TABLET PORTRAIT / LARGE MOBILE ---- */
@media (max-width: 768px) {
  .container { width: 92%; }

  /* Header */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link {
    padding: .75rem 1rem;
    font-size: .9rem;
    width: 100%;
  }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Trust band */
  .trust-band-inner { justify-content: center; }

  /* Partners */
  .partners-logos { gap: 1.5rem; }
  .partner-logo { font-size: .85rem; padding: .4rem 1rem; }

  /* Hero */
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-number { font-size: 1.6rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Service detail */
  .service-detail { padding: 1.75rem; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }

  /* Legal */
  .legal-content table { font-size: .8rem; }
  .legal-content table th, .legal-content table td { padding: .5rem .75rem; }
}

/* ---- 480px — MOBILE ---- */
@media (max-width: 480px) {
  :root { --header-height: 64px; }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  /* Header */
  .logo-text { display: none; }
  .logo-img { height: 40px; }
  .lang-switch { display: none; }

  /* Mobile lang in nav */
  .main-nav.open .lang-switch-mobile {
    display: flex;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    justify-content: center;
  }

  /* Grids */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Hero */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }

  /* Buttons */
  .btn-lg { padding: .9rem 1.75rem; font-size: .9rem; }

  /* Lead magnet */
  .lead-magnet { padding: 2rem 1.5rem; }
  .lead-magnet-form { flex-direction: column; }
  .lead-magnet-form input { min-width: unset; }
  .lead-magnet-form .btn { width: 100%; justify-content: center; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-info-card { padding: 1.75rem 1.25rem; }

  /* Blog categories */
  .blog-categories { gap: .4rem; }

  /* Section */
  .section { padding: 3rem 0; }
  .section-cta { margin-top: 2rem; }

  /* Page hero */
  .page-hero { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 2.5rem; }

  /* Footer */
  .footer-bottom-links { flex-direction: column; gap: .5rem; }
}

/* ---- PRINT ---- */
@media print {
  .site-header, .site-footer, .cookie-banner, .hero, .page-hero { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}
