/* ==========================================================================
   CHIDRUPA RESEARCH INSTITUTE FOUNDATION (CRIF)
   Responsive Refinements & Breakpoint Overrides
   ========================================================================== */

/* --- 1. Extra Large Desktops & Ultrawide (> 1440px) --- */
@media (min-width: 1440px) {
  .container, .container-lg, .container-xl, .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4.8rem;
    line-height: 1.05;
  }
}

@media (min-width: 1920px) {
  .container, .container-lg, .container-xl, .container-xxl {
    max-width: 1480px;
  }

  .hero-crif {
    min-height: 85vh;
  }
}

/* --- 2. Desktops & Laptops (992px - 1199px) --- */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.4rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.825rem;
  }
  
  .credibility-item {
    padding: 0.4rem 0.6rem;
  }
  
  .credibility-item-value {
    font-size: 0.85rem;
  }
}

/* --- 3. Tablets (768px - 991px) --- */
@media (max-width: 991px) {
  .hero-crif {
    min-height: 80vh;
    padding-top: 130px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2.85rem;
  }
  
  .navbar-crif {
    background-color: var(--crif-white) !important;
  }
  
  .navbar-crif-transparent {
    position: relative;
    background-color: var(--crif-white) !important;
  }
  
  .navbar-crif-transparent .nav-link {
    color: var(--crif-text-main) !important;
  }
  
  .navbar-crif-transparent .brand-acronym {
    color: var(--crif-primary) !important;
  }
  
  .navbar-crif-transparent .brand-fullname {
    color: var(--crif-text-muted) !important;
  }
  
  .navbar-collapse {
    background-color: var(--crif-white);
    padding: 1.25rem 1rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 0.75rem;
    border: 1px solid var(--crif-border-subtle);
  }
  
  .navbar-nav .nav-link {
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid rgba(7, 71, 110, 0.08);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  
  .credibility-strip .row > div {
    margin-bottom: 1rem;
  }
  
  .credibility-strip .row > div:last-child {
    margin-bottom: 0;
  }
  
  .pipeline-track .col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* --- 4. Mobile Devices (< 768px) --- */
@media (max-width: 767px) {
  .hero-crif {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }
  
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  
  .hero-eyebrow {
    font-size: 0.675rem;
    padding: 0.3rem 0.75rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .section-desc {
    font-size: 1rem;
    margin-bottom: 1.85rem;
  }
  
  .credibility-item {
    border-left: none;
    border-top: 2px solid var(--crif-accent);
    padding: 0.65rem 0.25rem;
  }
  
  .btn-crif, .btn-crif-outline, .btn-crif-accent {
    width: 100%;
    margin-bottom: 0.6rem;
  }
  
  .hero-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card-crif, .domain-card, .ai-card, .pipeline-step {
    padding: 1.5rem;
  }
  
  .cta-monument {
    padding: 4rem 1rem;
  }
  
  .cta-monument h2 {
    font-size: 1.85rem;
  }
  
  .footer-crif {
    padding-top: 3.5rem;
  }
  
  .btn-back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .top-announcement-bar {
    display: none;
  }
}

/* --- 5. Small Mobile Screens (< 375px e.g. 320px) --- */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .navbar-brand-crif .brand-logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .navbar-brand-crif .brand-acronym {
    font-size: 1rem;
  }
  
  .navbar-brand-crif .brand-fullname {
    font-size: 0.58rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .card-crif, .domain-card, .ai-card {
    padding: 1.25rem;
  }
}
