/* ==========================================================================
   AKSHAY OORJA — RESPONSIVE STYLESHEET
   Comprehensive Breakpoints: 320px -> 1920px
   ========================================================================== */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
    --section-py: 7rem;
  }
}

/* Laptops & Standard Desktops (under 1200px) */
@media (max-width: 1200px) {
  :root {
    --section-py: 5.5rem;
  }

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

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

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .nav-mobile-contact-social {
    display: none;
  }
}

/* Tablets & Small Laptops (under 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 114px;
    --header-height-scrolled: 68px;
    --section-py: 4.5rem;
  }

  /* Navigation Drawer for Mobile/Tablet */
  .mobile-toggle-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    background-color: var(--pure-white);
    box-shadow: -10px 0 35px rgba(16, 28, 50, 0.15);
    z-index: 999;
    padding: 6rem 1.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }

  .main-nav.nav-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
  }

  /* Mobile Dropdown Accordion */
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    border: none;
    background-color: var(--soft-cream);
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    display: none;
  }

  .nav-item.has-dropdown.accordion-open .dropdown-menu {
    display: block;
  }

  .nav-item.has-dropdown.accordion-open .chevron-icon {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 0.65rem 0.85rem;
  }

  .header-actions .nav-cta-btn {
    display: none;
  }

  .nav-mobile-footer-cta {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
  }

  .nav-mobile-footer-cta .btn {
    width: 100%;
  }

  /* Mobile Nav Contact & Social Media */
  .nav-mobile-contact-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
  }

  .nav-mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-navy);
    padding: 0.55rem 0.85rem;
    background-color: var(--soft-cream);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    text-decoration: none;
    word-break: break-all;
  }

  .nav-mobile-contact-link:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
  }

  .nav-mobile-contact-link svg {
    color: var(--primary-orange);
    flex-shrink: 0;
  }

  .nav-mobile-social-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-mobile-social-label {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }

  .nav-mobile-social-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .nav-mobile-social-links .social-icon-btn {
    width: 36px;
    height: 36px;
    background-color: var(--soft-cream);
    color: var(--dark-navy);
    border-color: var(--border);
  }

  .nav-mobile-social-links .social-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Mobile Nav Overlay Backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 28, 50, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section Stack */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-floating-card {
    left: 10px;
    bottom: 10px;
    max-width: 250px;
    padding: 1rem;
  }

  .hero-floating-badge {
    right: 10px;
    top: 10px;
  }

  /* Story Section Stack */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-media {
    order: 2;
  }

  .story-text-content {
    order: 1;
  }

  /* Project Grid 2 columns */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery Grid 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  /* Team Grid 2 columns */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Support Grid Stack */
  .support-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .support-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .support-cta-card-preview {
    max-width: 420px;
    margin: 0 auto;
  }

  /* Contact Stack */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
  :root {
    --section-py: 3.75rem;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .impact-strip-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .newspaper-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-direct-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Compact Topbar on Mobile Phones */
  .topbar-contact-item.topbar-phone,
  .topbar-divider,
  .topbar-social-label {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }

  .topbar-contact-item {
    font-size: 0.78rem;
  }

  .site-topbar .social-icon-btn {
    width: 25px;
    height: 25px;
  }

  .site-topbar .social-icon-btn svg {
    width: 12px;
    height: 12px;
  }

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

  .hero-img {
    height: 340px;
  }

  .story-img {
    height: 320px;
  }

  .hero-floating-card {
    position: static;
    margin-top: 1.25rem;
    max-width: 100%;
    transform: none !important;
  }

  .story-caption-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Extra Small Phones (under 420px) */
@media (max-width: 420px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .hero-btn-group .btn {
    width: 100%;
  }

  .bank-detail-row {
    padding: 0.75rem;
  }

  .copy-btn {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    width: fit-content;
  }
}