/* ============================================
   RESPONSIVE CSS
   Mobile First approach
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-image img {
    width: 350px;
  }

  .hero-content .credentials {
    text-align: left;
  }

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

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    max-width: 300px;
  }

  .page-content-wrapper {
    flex-direction: column;
  }

  .page-sidebar {
    width: 100%;
  }

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

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* Top bar mobile */
  .top-bar-inner {
    font-size: 0.75rem;
    gap: 10px;
  }

  .top-bar-inner .contact-text {
    display: none;
  }

  /* Header mobile */
  .header-inner {
    padding: 8px 15px;
  }

  .logo-icon {
    font-size: 2.5rem;
  }

  .logo-text {
    font-size: 0.65rem;
  }

  /* Navigation mobile */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    gap: 0;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 20px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    border-radius: 0;
  }

  .nav-item {
    width: 100%;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0;
    display: none;
    background: var(--color-bg-light);
  }

  .submenu.open {
    display: block;
  }

  .submenu a {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .submenu a:hover {
    padding-left: 35px;
  }

  .submenu-arrow {
    transition: transform 0.3s ease;
  }

  .submenu-arrow.rotated {
    transform: rotate(180deg);
  }

  /* Hero mobile */
  .hero {
    padding: 40px 0;
  }

  .hero-image img {
    width: 280px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .credentials {
    grid-template-columns: 1fr;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Stats mobile */
  .stats-bar {
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 20px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Section mobile */
  .section {
    padding: 50px 0;
  }

  /* Cookie banner mobile */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
  }

  .cookie-btns {
    width: 100%;
    justify-content: center;
  }

  /* Page hero mobile */
  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* WhatsApp button mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
  .top-bar {
    display: none;
  }

  .hero-image img {
    width: 240px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .nav-expatriados {
    font-size: 0.85rem !important;
  }
}
