/* ==========================================================================
   responsive.css — Breakpoints & mobile navigation
   ========================================================================== */

/* Large tablet / small desktop */
@media (max-width: 1024px) {
  :root { --space-xl: 4rem; --space-2xl: 5.5rem; }
  .hero { padding-bottom: 2.75rem; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero-visual { max-width: 400px; margin-inline: auto; }
  .hero-badge.badge-top { left: 0; }
  .hero-badge.badge-bottom { right: 0; }
  .hero-home {
    min-height: 680px;
    background-position: 66% center;
    background-image: linear-gradient(90deg, rgba(18, 7, 5, 0.88) 0%, rgba(31, 10, 6, 0.72) 55%, rgba(31, 10, 6, 0.30) 82%),
                      url("../images/index-hero-ayurveda-v2.jpg");
  }
  :root[data-theme="dark"] .hero-home {
    background-image: linear-gradient(90deg, rgba(11, 4, 3, 0.92) 0%, rgba(20, 7, 5, 0.78) 58%, rgba(20, 7, 5, 0.38) 86%),
                      url("../images/index-hero-ayurveda-v2.jpg");
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .testimonial-card { flex-basis: calc(50% - var(--space-md)); }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: grid; }
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Mobile drawer nav */
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #FAFAF7;
    padding: calc(var(--header-h) + 1.25rem) 1.25rem 2rem;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-menu::before {
    content: "Menu";
    display: block;
    margin: 0 0 0.75rem;
    padding: 0 0.25rem 0.8rem;
    border-bottom: 1px solid #DDE2DA;
    color: #526057;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .mobile-menu-logo {
    order: -1;
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0 0 0.9rem;
    border-bottom: 1px solid #DDE2DA !important;
  }
  .mobile-menu-logo a { display: inline-flex; width: auto; padding: 0; background: transparent !important; box-shadow: none !important; }
  .mobile-menu-logo img { width: auto; height: 62px; object-fit: contain; }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li { width: 100%; border-bottom: 1px solid #E6E9E3; }
  .nav-menu > li > a { width: 100%; justify-content: space-between; padding: 1rem 0.3rem; color: #2F3732; font-size: 1rem; font-weight: 600; border-radius: 0; background: transparent; }
  .nav-menu > li > a:hover,
  .nav-menu > li > a[aria-current="page"] { padding-left: 0.8rem; color: var(--color-primary); background: #EDF2EC; box-shadow: inset 4px 0 0 var(--color-primary); }
  .nav-menu > .nav-cta { display: inline-flex; margin-top: var(--space-sm); }

  /* Accordion-style dropdown on mobile */
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    width: auto; min-width: 0;
    box-shadow: none; border: none; border-left: 2px solid var(--color-border);
    background: transparent;
    border-radius: 0; margin: 0 0 0.65rem 0.35rem; padding: 0 0 0 0.8rem;
    min-width: auto; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
  }
  .nav-item.expanded .nav-dropdown { max-height: 760px; }
  .nav-dropdown a { padding: 0.7rem 0.6rem; color: #445047; font-size: 0.92rem; }
  .nav-dropdown li, .nav-dropdown a { width: 100%; }
  .nav-dropdown li + li { border-top: 1px solid #E7EAE5; }
  .nav-dropdown a span { font-size: 0.75rem; line-height: 1.35; }
  .nav-item > a .caret { transition: transform 0.3s var(--ease); }
  .nav-item.expanded > a .caret { transform: rotate(180deg); }

  .nav-overlay { position: fixed; inset: 0; background: rgba(15,22,19,0.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; z-index: 998; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .menu-toggle { position: relative; z-index: 1001; }
  .menu-toggle[aria-expanded="true"] { color: #263129; border-color: #D5DCD4; background: #FFFFFF; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split .media-frame { order: -1; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --space-xl: 3.25rem; --header-h: 74px; }
  .hero { padding: calc(var(--header-h) + 1.25rem) 0 2.25rem; }
  .hero-home {
    min-height: auto;
    background-position: 64% center;
    background-image: linear-gradient(90deg, rgba(18, 7, 5, 0.94) 0%, rgba(31, 10, 6, 0.88) 72%, rgba(31, 10, 6, 0.65) 100%),
                      url("../images/index-hero-ayurveda-v2.jpg");
  }
  :root[data-theme="dark"] .hero-home {
    background-image: linear-gradient(90deg, rgba(11, 4, 3, 0.96) 0%, rgba(20, 7, 5, 0.91) 72%, rgba(20, 7, 5, 0.72) 100%),
                      url("../images/index-hero-ayurveda-v2.jpg");
  }
  .page-hero {
    min-height: 430px;
    background-position: 62% center;
    background-image: linear-gradient(90deg, rgba(17, 6, 4, 0.96) 0%, rgba(36, 10, 7, 0.90) 70%, rgba(36, 10, 7, 0.68) 100%), var(--page-hero-image, var(--gradient-hero));
  }
  .approach-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-card { flex-basis: calc(100% - 0px); }
  .btn-group .btn { width: 100%; }
  .hero-actions.btn-group { flex-direction: column; }
  .site-header .brand { flex-basis: auto; }
  .site-header .brand { gap: 10px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-name { font-size: 1.2rem; }
  .site-header .brand-name small { display: none; }
  .nav { width: min(100% - 1.25rem, var(--container)); gap: 0.5rem; }
  .nav-actions { gap: 0.4rem; }
  .header-whatsapp { width: 44px; min-width: 44px; padding: 0; font-size: 0; border-radius: 50%; }
  .header-whatsapp svg { width: 19px; height: 19px; }
  .journey { grid-template-columns: 1fr; gap: 0.9rem; }
  .journey-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.2rem;
    align-items: center;
    padding: 1.1rem;
    text-align: left;
  }
  .journey-num { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; }
  .journey-step h3 { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
  .journey-step p { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; overflow-wrap: anywhere; }
  .back-to-top { bottom: 88px; right: 18px; }
  .whatsapp-float { right: 18px; bottom: 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .hero-trust { gap: var(--space-sm); }
  .brand-name small { display: none; }
}

/* Print */
@media print {
  .site-header, .whatsapp-float, .back-to-top, .scroll-progress, .preloader, .cursor-dot, .cursor-ring, .hero-decor, .nav-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
