/* ==========================================================================
   TRIYURAA - Premium B2B Website
   File: responsive.css
   Description: Media queries for fluid responsiveness across all devices.
   ========================================================================== */

/* -----------------------------------------
   LARGE DESKTOP (Max-width: 1400px)
----------------------------------------- */
@media (max-width: 1400px) {
  :root {
    --section-pad: 5.5rem 5%;
  }
  .hero-title {
    font-size: 3.4rem;
  }
  .section-heading {
    font-size: 2.75rem;
  }
}

/* -----------------------------------------
   LAPTOP / SMALL DESKTOP (Max-width: 1200px)
----------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --section-pad: 5rem 5%;
  }

  .section-heading {
    font-size: 2.6rem;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  /* Footer: 4-col → 2-col */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }

  .process-grid,
  .process-grid--four {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Products: 4-col → 3-col */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .about-stat-badge {
    right: -0.5rem;
  }
}

/* -----------------------------------------
   TABLET LANDSCAPE (Max-width: 992px)
----------------------------------------- */
@media (max-width: 992px) {
  :root {
    --section-pad: 4.5rem 5%;
  }

  .section-heading {
    font-size: 2.4rem;
  }

  /* Top bar — hide hours on tablet */
  .top-bar-left span:first-child {
    display: none;
  }

  /* Header nav adjust */
  .desktop-nav {
    margin-right: 1rem;
  }
  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  /* Hero */
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-content {
    max-width: 600px;
  }

  /* Features: 4-col → 2-col on tablet */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-section .section-heading {
    font-size: 2.8rem;
  }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .about-image {
    order: 2;
  }
  .about-content {
    order: 1;
  }
  .about-img-frame img {
    height: 420px;
  }
  .about-stat-badge {
    right: 1rem;
  }
  .about-highlights {
    align-items: center;
  }
  .about-highlights li {
    justify-content: center;
  }

  /* Process: 4-col → 2-col on tablet */
  .process-grid,
  .process-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products: 4-col → 2-col */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services: 3-col → 1-col */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-container {
    padding: 3rem 2.5rem;
  }
  .contact-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-list li > div {
    text-align: left;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -----------------------------------------
   TABLET PORTRAIT / MOBILE LARGE (Max-width: 768px)
----------------------------------------- */
@media (max-width: 768px) {

  /* Top Bar: collapse */
  .top-bar-left span:first-child,
  .top-bar-left span:nth-child(2) {
    display: none;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Desktop Nav → slide-in drawer */
  .desktop-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 78%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    transition: left 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    margin: 0;
    border-right: 1px solid var(--border-color);
  }

  .desktop-nav.nav-active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.05em;
  }
  .nav-link::after {
    display: none;
  }

  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }

  /* Header */
  .brand-logo {
    font-size: 1.5rem;
  }
  .brand-icon {
    height: 46px;
  }
  .header-icons .btn {
    display: none; /* Hide CTA button in header on mobile */
  }

  /* Hero */
  .hero-section {
    height: 100vh;
    min-height: 580px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-pills {
    gap: 0.5rem;
  }
  .hero-cta-group {
    flex-direction: row;
    gap: 0.75rem;
  }

  /* Features: 2-col → 1-col */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Process: 2-col → 1-col */
  .process-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Products: 2-col → 1-col */
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Services: 2-col → 1-col */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-container {
    padding: 2.5rem 1.75rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .legal-links {
    justify-content: center;
  }
}

/* -----------------------------------------
   MOBILE SMALL (Max-width: 576px)
----------------------------------------- */
@media (max-width: 576px) {
  :root {
    --section-pad: 4rem 5%;
  }

  /* Top bar: minimal */
  .top-bar-left {
    display: none;
  }
  .top-bar-inner {
    justify-content: flex-end;
  }

  /* Hero */
  .hero-section {
    height: 100vh;
    min-height: 560px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-cert-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.9rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-group .btn {
    width: auto;
    justify-content: center;
  }
  .hero-cta-group .btn {
    width: auto;
  }
  @media (max-width: 400px) {
    .hero-cta-group {
      flex-direction: column;
    }
    .hero-cta-group .btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* Section headings */
  .section-heading {
    font-size: 2.1rem;
  }

  /* Filter tabs */
  .product-filters {
    flex-wrap: wrap;
    border-radius: var(--border-radius);
    padding: 0.4rem;
  }
  .filter-btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.9rem;
  }

  /* About badge */
  .about-stat-badge {
    right: 0.5rem;
    bottom: 1rem;
    padding: 0.8rem 1rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .about-img-frame img {
    height: 340px;
  }

  /* Contact list */
  .contact-list li {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .contact-list li > div {
    text-align: center;
  }

  /* Footer brand */
  .footer-brand {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links-group {
    text-align: center;
  }
}

/* -----------------------------------------
   VERY SMALL MOBILE (Max-width: 380px)
----------------------------------------- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .brand-logo {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }
  .brand-icon {
    height: 38px;
  }
  .section-heading {
    font-size: 1.85rem;
  }
}

/* -----------------------------------------
   SHORT VIEWPORT HEIGHT — Ensure hero CTAs always visible
----------------------------------------- */
@media (max-height: 820px) {
  .hero-cert-badge {
    font-size: 0.62rem;
    padding: 0.32rem 0.9rem;
    margin-bottom: 0.8rem;
  }
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
  }
  .hero-description {
    font-size: 0.93rem;
    margin-bottom: 1rem;
    max-width: 480px;
  }
  .hero-pills {
    margin-bottom: 1.1rem;
    gap: 0.4rem;
  }
  .hero-pill {
    padding: 0.32rem 0.9rem;
    font-size: 0.68rem;
  }
  .hero-cta-group {
    gap: 0.7rem;
  }
  .btn {
    padding: 0.7rem 1.65rem;
  }
  .btn-lg {
    padding: 0.8rem 2rem;
  }
  .hero-slide-dots {
    bottom: 1.5rem;
  }
}

@media (max-height: 680px) {
  .hero-cert-badge {
    display: none; /* hide badge on very short screens */
  }
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }
  .hero-pills {
    display: none; /* hide pills on very short screens */
  }
}

