/* ==========================================================================
   BAAN TON MAI — Responsive
   Mobile-first breakpoints and adaptive adjustments.
   Font sizes are already handled via variables.css media queries.
   ========================================================================== */

/* ==========================================================================
   LARGE PHONES (480px)
   ========================================================================== */

@media (min-width: 480px) {
  /* Slightly more generous padding */
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  /* Hero tags can breathe */
  .hero__tags {
    gap: var(--space-4);
  }

  /* Gallery bumps up spacing */
  .gallery-grid {
    column-gap: var(--space-6);
  }

  .gallery-grid__item {
    margin-bottom: var(--space-6);
  }
}


/* ==========================================================================
   TABLETS (768px)
   ========================================================================== */

@media (min-width: 768px) {
  /* Section spacing increases */
  .section {
    padding: var(--space-24) 0;
  }

  /* Hero subtitle gets more room */
  .hero__subtitle {
    font-size: var(--text-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Cards get slightly larger body padding */
  .card__body {
    padding: var(--space-8);
  }

  /* Reviews breathe more */
  .review {
    padding: var(--space-8) var(--space-8);
  }

  /* Info cards side by side */
  .info-card {
    padding: var(--space-8);
  }

  /* Footer three columns (handled in components.css) */

  /* Section header spacing */
  .section-header {
    margin-bottom: var(--space-16);
  }
}


/* ==========================================================================
   SMALL DESKTOPS (1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Container padding matches desktop feel */
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  /* Hero gets more vertical space */
  .hero__content {
    padding: var(--space-12) var(--space-8);
  }

  /* Two-col layout gets larger gap */
  .two-col {
    gap: var(--space-16);
  }

  /* Gallery masonry 4 columns (handled in components.css) */

  /* Nav links get more spacing */
  .nav__links {
    gap: var(--space-8);
  }
}


/* ==========================================================================
   LARGE DESKTOPS (1200px)
   ========================================================================== */

@media (min-width: 1200px) {
  /* Container reaches max, no extra padding needed */
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  /* Hero titles can go bigger */
  .hero__title {
    font-size: var(--text-5xl);
    letter-spacing: -0.03em;
  }

  /* Generous whitespace between sections */
  .section {
    padding: var(--space-24) 0;
  }

  /* Footer inner gets balanced spacing */
  .footer__inner {
    gap: var(--space-12);
  }
}


/* ==========================================================================
   MOBILE-SPECIFIC (max-width overrides)
   These ensure small screens look polished.
   ========================================================================== */

@media (max-width: 767px) {
  /* Reduce section vertical padding on mobile */
  .section {
    padding: var(--space-12) 0;
  }

  /* Hero is slightly shorter on mobile */
  .hero {
    min-height: 85vh;
  }

  .hero--small {
    min-height: 40vh;
  }

  .hero__title {
    font-size: var(--text-3xl);
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  /* Stack hero actions vertically on very small screens */
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  /* Buttons go full width on mobile */
  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Section header tighter */
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

  /* Footer stacks (single column — handled in components.css fallback) */
  .footer {
    padding: var(--space-12) 0 0;
  }

  .footer__bottom {
    margin-top: var(--space-8);
  }

  /* Gallery: 2 columns on mobile (default in components.css) */

  /* Review cards: less padding */
  .review {
    padding: var(--space-6);
  }

  /* Menu card items: tighter */
  .menu-card__items {
    gap: var(--space-2);
  }

  /* Lightbox nav arrows closer to edges */
  .lightbox__nav--prev {
    left: var(--space-3);
  }

  .lightbox__nav--next {
    right: var(--space-3);
  }

  .lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
  }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .menu-card:hover {
    transform: none;
  }

  .gallery-grid__item:hover {
    transform: none;
  }

  .gallery-grid__item:hover img {
    transform: none;
  }
}


/* ==========================================================================
   HIGH CONTRAST / FORCED COLORS
   ========================================================================== */

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  .nav--scrolled {
    border-bottom: 1px solid ButtonText;
  }

  .lang-switch {
    border: 1px solid ButtonText;
  }

  .review__text::before {
    color: CanvasText;
  }
}
