/* ============================================
   RESPONSIVE — Media Queries
   ============================================ */

/* --- Tablet (768px - 1199px) --- */
@media (max-width: 1199px) {
  :root {
    --container-padding: 20px;
  }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }

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

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -40px;
  }

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

/* --- Mobile (< 768px) --- */
@media (max-width: 767px) {
  :root {
    --navbar-height: 64px;
    --container-padding: 16px;
  }

  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Navbar Mobile */
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + 10px) var(--space-md) var(--space-lg);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right var(--transition-base);
    gap: 4px;
    overflow-y: auto;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__menu-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 8px 24px 8px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--gray-100);
  }

  .navbar__menu-mobile-header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(13, 148, 136, 0.2);
  }

  .navbar__menu-mobile-header strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
  }

  .navbar__menu-mobile-header span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .navbar__link {
    width: 100%;
    color: var(--text-body);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
  }

  .navbar__link .nav-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    vertical-align: middle;
    opacity: 0.7;
    color: currentColor;
  }

  .navbar__link:hover,
  .navbar__link.active {
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary);
    padding-left: 20px; /* Micro-slide animation */
  }

  .navbar__link--cta {
    margin-top: 16px;
    background: var(--accent) !important;
    color: var(--white) !important;
    justify-content: center;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  }

  .navbar__link--cta:hover {
    background: var(--accent-dark) !important;
    padding-left: 16px !important;
  }

  .navbar__link--cta .nav-icon {
    color: var(--white) !important;
    opacity: 1;
    margin-right: 8px;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__hamburger.active span {
    background: var(--text-dark);
  }

  /* Dropdown Mobile */
  .navbar__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-md);
    display: none;
  }

  .navbar__dropdown.open .navbar__dropdown-menu {
    display: block;
  }

  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-lg);
    margin-top: -30px;
    gap: var(--space-md);
  }

  .stat-item__number {
    font-size: var(--font-size-2xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Tabs */
  .tabs {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
  }
  .tabs::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
  }

  .tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-xs);
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Buttons */
  .btn--lg {
    padding: 14px 28px;
    font-size: var(--font-size-sm);
  }

  /* WhatsApp Float */
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 84px;
    right: 20px;
    width: 38px;
    height: 38px;
  }

  /* Lightbox */
  .lightbox__img {
    max-width: 95%;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}

/* --- Small Mobile (< 480px) --- */
@media (max-width: 479px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-md);
  }

  .stat-item {
    padding: var(--space-sm);
  }

  .stat-item__number {
    font-size: var(--font-size-xl);
  }

  .stat-item__label {
    font-size: var(--font-size-xs);
  }
}
