/* =============================================================
   Mirazur — responsive.css
   Ajustements mobile-first et fluid layout.
   ============================================================= */

/* ===== Mobile baseline (under 640px) ===== */
@media (max-width: 640px) {
  :root {
    --section-padding-y: clamp(3rem, 8vw, 4.5rem);
    --section-padding-x: 1.25rem;
  }

  .hero__content {
    padding-bottom: 6rem;
  }

  .hero__title {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    max-width: none;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    min-width: 0;
  }

  .audio-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }

  .audio-toggle svg { width: 14px; height: 14px; }

  .nav {
    height: var(--nav-height-mobile);
  }

  .nav__brand-name { display: none; }

  /* Hide language toggle in nav on mobile — accessible from mobile menu */
  .nav__lang { display: none; }

  .nav__cta {
    height: 38px;
    padding-inline: 0.85rem;
    font-size: 0.65rem;
  }

  .moon-widget {
    width: 28px;
    height: 28px;
  }

  .nav__theme {
    width: 36px;
    height: 36px;
    display: none; /* simplify mobile nav, theme toggle accessible via menu */
  }

  .nav__inner {
    gap: var(--space-3);
  }

  .nav__actions {
    gap: var(--space-3);
  }

  .nav__menu-toggle {
    width: 36px;
    height: 36px;
  }

  .place__media img {
    height: 60vh;
    max-height: 480px;
    min-height: 340px;
  }

  .place__copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .menu__price-amount {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .chef__quote-text {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .twenty__dates {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }

  .garden-card {
    height: 460px;
  }

  .timeline__items {
    padding-left: 1.5rem;
  }

  .footer__bg-mark { font-size: clamp(18rem, 60vw, 28rem); }

  .float-reserve {
    bottom: 1rem;
    right: 1rem;
    padding-inline: 1.25rem;
    height: 46px;
    font-size: 0.65rem;
  }

  .pull-quote {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    padding-block: var(--space-6);
  }
}

/* ===== Small tablet (641 to 1023px) ===== */
@media (min-width: 641px) and (max-width: 1023px) {
  .nav__menu { display: none; }
  .nav__menu-toggle { display: inline-flex; }
}

/* ===== Desktop (1024px and up) ===== */
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
  .nav__menu-toggle { display: none !important; }
}

/* ===== Wide desktop (1440px and up) ===== */
@media (min-width: 1440px) {
  :root {
    --section-padding-y: clamp(6rem, 8vw, 9rem);
  }
}

/* ===== Print: do not break ===== */
@media print {
  .nav, .loader, .float-reserve, .audio-toggle, .cursor-dot,
  .hero__video, .modal, .lightbox { display: none !important; }
}

/* ===== Light theme overrides ===== */
[data-theme="light"] .hero__overlay {
  background: linear-gradient(180deg,
    rgba(244, 235, 221, 0.05) 0%,
    rgba(244, 235, 221, 0.25) 50%,
    rgba(244, 235, 221, 0.85) 100%);
}

[data-theme="light"] .hero__video {
  filter: brightness(0.92);
}

[data-theme="light"] .gallery__caption {
  background: linear-gradient(180deg, transparent, rgba(244, 235, 221, 0.9));
  color: var(--color-text-primary);
}

[data-theme="light"] .garden-card__overlay {
  background: linear-gradient(180deg,
    rgba(244, 235, 221, 0.2) 0%,
    rgba(244, 235, 221, 0.5) 50%,
    rgba(244, 235, 221, 0.92) 100%);
}

[data-theme="light"] .garden-card__content {
  color: var(--color-text-primary);
}

[data-theme="light"] .garden-card__desc { color: var(--color-text-primary); }

[data-theme="light"] .nav.is-scrolled .nav__link {
  color: var(--color-text-primary);
}

[data-theme="light"] .float-reserve {
  box-shadow: 0 12px 32px -8px rgba(60, 40, 20, 0.35);
}

[data-theme="light"] .moon-widget__disc {
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #8B6F2E 70%, #4A3814 100%);
}

[data-theme="light"] .footer__bg-mark { opacity: 0.05; }

[data-theme="light"] .audio-toggle {
  background-color: rgba(244, 235, 221, 0.7);
}

/* ===== Reduced motion final guard ===== */
@media (prefers-reduced-motion: reduce) {
  .loader__mark path { animation: none; stroke-dashoffset: 0; fill: currentColor; }
  .loader__word { animation: none; opacity: 1; }
  .hero__scroll-line { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-reserve { transition: opacity 0.2s linear, transform 0s !important; }
}
