/* ============================================================
   JATAYU RISE — RESPONSIVE STYLESHEET
   responsive.css
   Mobile-first fluid breakpoints 320px → 4K
   ============================================================ */

/* ── BREAKPOINT REFERENCE ──────────────────────────────────────
   xs:  320px  (very small phones)
   sm:  480px  (phones landscape)
   md:  768px  (tablets portrait)
   lg:  1024px (tablets landscape / small laptops)
   xl:  1280px (desktops)
   2xl: 1440px (large desktops)
   3xl: 1920px (wide screens)
──────────────────────────────────────────────────────────────── */

/* ── HEADER ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-right {
    gap: 0.85rem;
  }

  .header-right .lang-switcher {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 62px; }

  .site-logo-text { display: none; }
  .site-logo-icon { width: 30px; height: 30px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* ── GRID UTILITIES ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── CONTAINER ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ── SECTION PADDING ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 1.5rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 2.5rem 1.25rem;
  }
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    min-height: 36vh;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }
}

/* ── HOME HERO ───────────────────────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero-image {
    height: 45vw;
    min-height: 260px;
    max-height: 420px;
    order: -1;
  }

  .home-hero-content {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .home-hero-image {
    height: 56vw;
  }

  .hero-cta-group,
  .founder-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn,
  .founder-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── FEATURED COLLECTIONS ────────────────────────────────────── */
@media (max-width: 900px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FOUNDER SPLIT ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .founder-split {
    grid-template-columns: 1fr;
  }

  .founder-split-img {
    max-height: 380px;
  }
}

/* ── LIBRARY PATHWAY CARDS ───────────────────────────────────── */
@media (max-width: 900px) {
  .library-pathways {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: 280px;
  }
}

/* ── VIDEO CARDS GRID ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PUBLICATIONS ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }

  .pub-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── CONTACT ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* ── PARTNERS GRID ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .partners-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MODAL ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .modal-body {
    padding: 1.75rem 1.25rem;
  }

  .inquiry-modal-card {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 90vh;
  }

  .inquiry-modal-header {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .inquiry-modal-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .inquiry-modal-title {
    font-size: 1.4rem;
  }
}

/* ── TOAST ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* ── ADMIN RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .pub-table {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .pub-table-wrap {
    overflow-x: auto;
  }
}

/* ── 320px MINIMUM SUPPORT ───────────────────────────────────── */
@media (max-width: 360px) {
  :root { font-size: 14px; }

  .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.72rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ── LARGE SCREEN ENHANCEMENTS ────────────────────────────────── */
@media (min-width: 1920px) {
  :root {
    --max-w: 1440px;
  }

  body {
    font-size: 17px;
  }
}
