/**
 * ADVOCACIA ESPECIALIZADA - RESPONSIVE STYLES
 * Absolute precision across mobile, tablet, and desktop
 */

/* ==========================================================================
   TABLETS & SMALL DESKTOPS (Max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .site-nav {
    display: none; /* Handled by mobile drawer */
  }

  .header-actions .btn {
    display: none; /* Clean header for mobile/tablet */
  }

  .hamburger-btn {
    display: flex;
  }

  /* Hero Section */
  

  .stat-item:nth-child(2)::after {
    display: none;
  }

  /* About Grid */
  

  

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Practice Grid */
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Differentials */
  .comparison-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  /* Team Grid */
  

  /* Google Reviews Summary */
  .reviews-summary-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .reviews-distribution-col {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
  }

  .reviews-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Section */
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ==========================================================================
   MOBILE DEVICES (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --space-4xl: 3.5rem;
    --space-3xl: 2.5rem;
  }

  .container,
  .container-narrow {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Header */
  .brand-logo-img {
    height: 38px;
    max-width: 240px;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Pillars & Practice */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-card { max-width: 100%; flex: 1 1 100%; }

  /* Reviews */
  .ambient-glow-gold {
    max-width: 90vw;
    height: 220px;
  }

  .reviews-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
  }

  .reviews-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .tag-btn {
    flex-shrink: 0;
  }

  .reviews-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Form */
  .contact-info-card,
  .contact-form-card {
    padding: 2rem 1.25rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .contact-pref-group {
    flex-direction: column;
  }

  .form-action-row .btn {
    width: 100%;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Floating Actions */
  .floating-actions-wrap {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  .floating-back-to-top {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   VERY SMALL SCREENS (Max 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .brand-logo-img {
    max-width: 200px;
    height: 32px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .reviews-big-score {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-trust-strip {
    flex-direction: column;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
  }
  .trust-strip-divider {
    display: none;
  }
  .trust-strip-item {
    white-space: normal;
    text-align: center;
  }
}


@media (max-width: 640px) {
  :root {
    --preview-bar-height: 60px;
  }
  .preview-banner-title {
    font-size: 12px;
  }
  .preview-banner-subtitle {
    font-size: 10.5px;
  }
  .mobile-nav-drawer {
    top: var(--preview-bar-height, 60px);
    height: calc(100vh - var(--preview-bar-height, 60px));
  }
}


/* ==========================================================================
   MOBILE ZERO OVERFLOW FIX: LOCATION & CONTACT CARDS (PULLED INBOUNDS)
   ========================================================================== */
@media (max-width: 900px) {
  .contact-section-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-info-card,
  .contact-form-card,
  .location-card,
  .location-map-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem !important;
  }

  .location-card {
    padding: 1.5rem 1.25rem !important;
  }

  .location-map-wrap,
  .location-iframe {
    min-height: 280px !important;
    max-width: 100% !important;
  }

  .btn {
    white-space: normal !important;
    text-align: center !important;
  }

  .btn-lg {
    padding: 0.9rem 1.25rem !important;
    font-size: 0.92rem !important;
  }

  .form-control {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .contact-channel-item,
  .channel-value {
    min-width: 0 !important;
    word-break: break-word !important;
  }
}

@media (max-width: 380px) {
  .contact-info-card,
  .contact-form-card,
  .location-card {
    padding: 1.35rem 0.95rem !important;
  }
  .btn-lg {
    padding: 0.85rem 1rem !important;
    font-size: 0.88rem !important;
  }
}
