/* ============================================================
   EVERDAWN ATLAS — RESPONSIVE STYLES
   Mobile-first breakpoints
   ============================================================ */

/* BREAKPOINTS:
   sm: 480px
   md: 768px
   lg: 1024px
   xl: 1280px
*/

/* ─── TABLET (≤ 1024px) ─── */
@media (max-width: 1024px) {
  :root {
    --section-gap: 80px;
  }

  .nav-center {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* HERO */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px var(--padding-tablet);
    text-align: center;
  }

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

  .hero-description {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-right {
    justify-content: center;
  }

  .hero-visual-img {
    height: 400px;
  }

  /* ATLAS WINDOW */
  .atlas-window {
    padding: 40px;
  }

  .atlas-window-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* DESTINATIONS */
  .destinations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dest-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .dest-card--large .dest-card-img {
    height: 360px;
  }

  /* STORIES */
  .stories-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* TRUST */
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* EXPLORE */
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* MOOD */
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* DESTINATIONS PAGE */
  .dest-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dest-feature-img {
    height: 360px;
  }

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

  /* STORIES PAGE */
  .featured-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-story-img {
    height: 380px;
  }

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

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

  /* ABOUT PAGE */
  .about-mission {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual-img {
    height: 360px;
  }

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

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

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

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* LEGAL */
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toc-title {
    width: 100%;
  }

  /* RESPONSIBLE TRAVEL */
  .responsible-philosophy {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .responsible-visual-img {
    height: 340px;
  }

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

  .pledge-card {
    padding: 40px 32px;
  }
}

/* ─── MOBILE LANDSCAPE (≤ 768px) ─── */
@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
    --padding-desktop: var(--padding-mobile);
  }

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

  .nav-container {
    padding: 0 var(--padding-mobile);
  }

  /* HERO */
  .hero-container {
    padding: 40px var(--padding-mobile);
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

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

  .hero-visual-img {
    height: 320px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  /* ATLAS WINDOW */
  .atlas-window {
    padding: 32px 24px;
  }

  /* DESTINATIONS GRID */
  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .dest-card--large {
    grid-column: span 1;
  }

  .dest-card--large .dest-card-img {
    height: 280px;
  }

  .dest-card:not(.dest-card--large) .dest-card-img {
    height: 220px;
  }

  /* TRUST */
  .trust-grid {
    grid-template-columns: 1fr;
  }

  /* EXPLORE */
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card-img {
    height: 260px;
  }

  /* MOOD */
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    gap: 16px;
  }

  /* STORIES */
  .story-grid {
    grid-template-columns: 1fr;
  }

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

  /* FULL DEST */
  .full-dest-grid {
    grid-template-columns: 1fr;
  }

  /* ABOUT */
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* PRINCIPLES */
  .principles-grid {
    grid-template-columns: 1fr;
  }

  /* CTA BANNER */
  .cta-banner-inner {
    padding: 48px 24px;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  /* CONTACT FORM */
  .contact-form-container {
    padding: 32px 24px;
  }

  /* PLEDGE */
  .pledge-card {
    padding: 36px 24px;
    text-align: left;
  }

  /* FILTER BAR */
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* LEGAL TOC */
  .legal-toc {
    flex-direction: column;
  }
}

/* ─── MOBILE PORTRAIT (≤ 480px) ─── */
@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

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

  .trust-links-grid {
    grid-template-columns: 1fr;
  }

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

  .atlas-window {
    padding: 24px 20px;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .pledge-card {
    padding: 28px 20px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .hero-visual-img {
    height: 260px;
  }

  .dest-feature-img,
  .featured-story-img {
    height: 280px;
  }

  .footer-form {
    flex-direction: column;
  }

  .footer-btn {
    width: 100%;
  }

  .continent-nav {
    gap: 8px;
  }

  .continent-btn {
    font-size: 0.8rem;
    padding: 7px 16px;
  }

  .filter-chips {
    gap: 8px;
  }

  .filter-chip {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
}

/* ─── LARGE DESKTOP (≥ 1440px) ─── */
@media (min-width: 1440px) {
  .hero-headline {
    font-size: 5.5rem;
  }

  .hero-visual-img {
    height: 620px;
  }
}

/* ─── HIGH CONTRAST / REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-visual-frame {
    animation: none;
  }

  .hero-bg-gradient {
    animation: none;
  }

  .atlas-window {
    animation: none;
  }

  .eyebrow-dot {
    animation: none;
  }

  .scroll-line {
    animation: none;
  }
}