/* ============================================
   MENDIEN ARTEAN — Responsive Styles (Mobile-First)
   ============================================ */

/* Mobile — up to 768px */
@media (max-width: 768px) {
  :root {
    --fs-4xl: 2.25rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --fs-5xl: 2.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

  /* Navbar Mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: var(--fs-md);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero Mobile */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: var(--fs-3xl);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  /* About Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-image img {
    height: 280px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .uxa-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .uxa-logos {
    grid-template-columns: 1fr;
  }

  /* Properties Mobile */
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card-image {
    height: 220px;
  }

  .property-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .property-card-actions .btn {
    width: 100%;
  }

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

  /* Availability Mobile */
  .availability-content {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    font-size: var(--fs-xs);
  }

  /* Activities Mobile */
  .activities-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card-featured {
    grid-column: span 1;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }

  .lightbox-content img {
    max-width: 95vw;
  }

  /* Contact Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    min-height: 300px;
  }

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

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

  /* Language Switcher Mobile */
  .lang-switcher-desktop {
    display: none;
  }
  .lang-switcher-mobile {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    background: rgba(45, 80, 22, 0.1); /* Darker background */
  }
  
  .lang-switcher-mobile .lang-btn {
    color: var(--color-text); /* Dark text */
  }
  
  .lang-switcher-mobile .lang-btn.active {
    color: var(--color-white); /* White text when active */
  }

  /* Reviews Mobile */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* WhatsApp flotante Mobile */
  .whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 52px;
    height: 52px;
  }

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

  .whatsapp-tooltip {
    display: none;
  }

  /* About price note Mobile */
  .about-price-note {
    flex-direction: column;
    text-align: center;
  }
}

/* Navbar hamburger — visible on tablets and small laptops (≤1100px) */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: var(--fs-md);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .lang-switcher-desktop {
    display: none;
  }

  .lang-switcher-mobile {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    background: rgba(45, 80, 22, 0.1);
  }

  .lang-switcher-mobile .lang-btn {
    color: var(--color-text);
  }

  .lang-switcher-mobile .lang-btn.active {
    color: var(--color-white);
  }
}

/* Tablet — 769px to 1100px */
@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --fs-5xl: 3.5rem;
    --fs-4xl: 2.75rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

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

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

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

/* Large screens — 1200px+ */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-3xl);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg img {
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }
}
