/* ==========================================================================
   LYCUS PHARMA PVT. LTD. — Design System
   responsive.css · Media Queries
   ========================================================================== */

/* Breakpoints:
   sm: 640px
   md: 768px
   lg: 1024px
   xl: 1200px (container max)
*/

/* ─── SIDEBAR LAYOUT ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .navbar__nav,
  .navbar__actions .btn {
    display: none;
  }

  .navbar__mobile-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .navbar__mobile-toggle {
    display: none;
  }

  /* Ensure fullscreen menu cannot open on desktop */
  .navbar__mobile-menu {
    display: none !important;
  }
}

/* ─── HERO SLIDER ────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .hero-slider,
  .hero-slide.is-active {
    min-height: 60vh;
  }

  .hero-slide__title {
    font-size: 32px;
  }

  .hero-slide__subtitle {
    font-size: var(--text-body);
  }

  .hero-slide__actions {
    flex-direction: column;
  }

  .hero-slide__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-slide__bg {
    padding: 30% 8% 8%;
    object-position: center top;
    opacity: 0.45;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .hero-nav--prev {
    left: 8px;
  }

  .hero-nav--next {
    right: 8px;
  }
}

@media (max-width: 480px) {

  .hero-slider,
  .hero-slide.is-active {
    min-height: 75vh;
  }

  .hero-slide__title {
    font-size: var(--text-h3);
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* .footer__top handled by Bootstrap col grid */
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer__top {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .footer__brand {
    margin-bottom: var(--space-2);
  }

  .footer__brand-desc {
    max-width: 100%;
  }

  /* Stack bottom bar vertically and center on tiny screens */
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  /* Wrap legal links onto multiple lines gracefully */
  .footer__bottom-links {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
  }

  .footer__cert-badges {
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-2);
  }

  /* Give link columns breathing room and full-width headings */
  .footer__col-title {
    margin-bottom: var(--space-2);
  }
}

/* Force the two col-6 link columns to full-width on xs screens */
@media (max-width: 576px) {
  .footer .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Ensure Bootstrap row gap is consistent on footer columns */
  .footer .row {
    --bs-gutter-y: 1.5rem;
  }
}

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

  .masonry-grid__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  :root {
    --section-padding-y: 48px;
  }

  /* Section flex header */
  .section-flex-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .process-step__content {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .masonry-grid__item--tall {
    grid-row: span 1;
  }

  .info-card--row {
    flex-direction: column;
  }

  .info-card--row .info-card__media {
    width: 100%;
  }

  /* About ops grid */
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-grid--2col {
    grid-template-columns: 1fr !important;
  }

  .info-card--row-media {
    flex-direction: column;
  }

  .info-card--row-media .info-card__side-media {
    width: 100%;
  }

  .info-card__overlay-body {
    width: 100%;
  }

  .info-card__overlay-deco {
    display: none;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: var(--text-h2);
  }

  /* 32px */
  h2 {
    font-size: var(--text-h3);
  }

  /* 24px */
  h3 {
    font-size: var(--text-h4);
  }

  /* 20px */



  .quote-card {
    padding: var(--space-4);
  }

  .quote-card__text {
    font-size: var(--text-body);
  }

  .btn-lg {
    padding: var(--space-2) var(--space-3);
  }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .process-track__line {
    display: none;
  }

  .process-step {
    flex-direction: column;
  }
}

/* ─── PRODUCT DETAIL ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-info-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ─── PRODUCTS GRID ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ─── PAGE HERO (mobile) ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-hero {
    min-height: 320px;
    padding: var(--space-8) 0 var(--space-6);
  }

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

  .page-header {
    padding-top: var(--space-8);
  }
}

/* ─── HERO TILE GRID ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tile-card {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr !important;
  }

  .tile-card {
    height: 260px;
  }
}