/* ==========================================================================
   ANAVA CLINICS — Responsive
   responsive.css — Breakpoints (mobile-first approach)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (< 1024px) — hide desktop nav, show toggle
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {

  :root { --nav-height: 64px; }

  .nav__links,
  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  /* Floating nav with gap from top edge */
  .nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--nav-height);
    padding: 0;
    border-radius: var(--radius-md);
    background-color: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
  }

  .nav--scrolled {
    background-color: rgba(244, 241, 234, 0.95);
  }

  /* Founder */
  .founder__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .founder__quote-float {
    position: relative;
    bottom: auto; right: auto;
    max-width: 100%;
    margin-top: var(--space-4);
  }

  .founder__frame-accent { display: none; }

  /* Steps — wrap to 3 col */
  .steps-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .steps-track::before { display: none; }

  /* Journey */
  .journey__item {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    direction: ltr !important;
  }

  .journey__item:nth-child(even) { direction: ltr; }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Mobile CTA bar */
  .mobile-cta-bar { display: flex; }
  .footer { padding-bottom: 76px; }

  /* Hero */
  .hero {
    min-height: 0;
  }
  .hero__left {
    max-width: 100%;
    min-height: 56vh;
    padding: calc(var(--nav-height) + var(--space-12)) var(--space-8) var(--space-10) var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   Small Tablet (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

  :root {
    --space-24: 4.5rem;
    --space-32: 5.5rem;
  }

  .section { padding: var(--space-20) 0; }
  .section--lg { padding: var(--space-24) 0; }
  .trust-bar { display: none; }

  .hero {
    display: block;
    min-height: 0;
  }

  /* Conditions grid */
  .conditions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Steps single column wrap */
  .steps-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  /* Treatments */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Clinics */
  .clinics__grid {
    grid-template-columns: 1fr;
  }

  .clinic-card__actions {
    flex-direction: column;
  }
  .clinic-card__actions .btn {
    justify-content: center;
    width: 100%;
  }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Form grid */
  .form-grid { grid-template-columns: 1fr; }

  /* Hero trust */
  .hero__trust {
    gap: var(--space-5);
  }

  .hero__trust-item { font-size: var(--text-xs); }
}

/* --------------------------------------------------------------------------
   Mobile (< 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 639px) {

  :root {
    --space-24: 3.5rem;
    --space-32: 4.5rem;
    --space-20: 3.5rem;
  }

  .container,
  .container--narrow,
  .container--wide {
    padding: 0 var(--space-5);
  }

  /* Hero — mobile: full-screen, text in bottom 25% */
  .hero {
    height: 100dvh;
    min-height: 100dvh;
    position: relative;
    background:
      linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.75) 20%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 65%),
      url('../assets/images/hero.jpg') center center / cover no-repeat;
  }

  .hero__left {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    min-height: 40dvh;
    justify-content: flex-start;
    padding: var(--space-8) var(--space-6) var(--space-10) var(--space-6);
  }

  .hero__eyebrow { display: none; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero__trust { display: none; }
  .hero__scroll-indicator { display: none; }

  /* Conditions */
  .conditions__grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps-track { grid-template-columns: 1fr; gap: var(--space-6); }

  /* Journey */
  .journey__spine { display: none; }
  .journey__items { padding-left: 0; }
  .journey__dot { display: none; }

  .journey__num {
    font-size: 4rem;
  }

  /* Final CTA */
  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta__actions .btn { justify-content: center; }

  /* Mobile CTA bar */
  .mobile-cta-bar { display: flex; }

  .mobile-cta-bar .btn {
    flex: 1;
    justify-content: center;
    padding: var(--space-4) var(--space-4);
    font-size: 11px;
  }

  .footer { padding-bottom: 72px; }

  /* Page hero */
  .page-hero__title { font-size: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Narrow Mobile (< 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {

  .container,
  .container--narrow,
  .container--wide {
    padding: 0 var(--space-4);
  }

  .hero__headline {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .hero__subheadline {
    font-size: 0.98rem;
    line-height: 1.68;
    margin-bottom: var(--space-8);
  }

  .hero__trust {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    gap: var(--space-3);
  }

  .hero__trust-item {
    flex-basis: 100%;
  }

  .hero__mobile-model { height: 240px; }

  .hero__brain-model {
    width: 92%;
    min-height: 220px;
  }
}

/* --------------------------------------------------------------------------
   Large Desktop (> 1400px)
   -------------------------------------------------------------------------- */

@media (min-width: 1400px) {

  :root {
    --container-max: 1360px;
  }

  .hero__headline { font-size: 5.2rem; }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {

  .nav,
  .mobile-cta-bar,
  .hero__scroll-indicator,
  .final-cta,
  .footer__social { display: none; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 2rem 0;
  }
  .hero__right { display: none; }

  .hero__headline { color: #000; font-size: 2rem; }
}
