/* ============================================
   Kumi Hospital - Responsive Stylesheet
   Mobile-First Media Queries
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .hero__content {
    padding: var(--space-2xl) 0;
  }

  .hero__slider-btn {
    display: none;
  }

  .hero__stats {
    max-width: 500px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 350px;
  }

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

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

  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  /* Show Mobile Menu Toggle */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right var(--transition-slow);
    align-items: stretch;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    color: var(--gray-700);
    padding: 0.8rem var(--space-md);
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav__link:hover,
  .nav__link.active {
    color: var(--primary);
    background: rgba(10,110,92,0.05);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

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

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* --- Mobile Large (max-width: 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-lg);
  }

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

  .hero {
    min-height: auto;
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .hero__badge {
    font-size: 0.8rem;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .hero__stat {
    padding: var(--space-md);
  }

  .hero__stat-number {
    font-size: 1.8rem;
  }

  .hero__stat-label {
    font-size: 0.75rem;
  }

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

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

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

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

  .stat-item__number {
    font-size: 2.2rem;
  }

  .about-image img {
    height: 280px;
  }

  .page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .quote-block {
    padding: var(--space-2xl);
  }

  .quote-block p {
    font-size: 1rem;
  }

  .section-header h2::after {
    bottom: -6px;
    width: 40px;
    height: 3px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .tabs {
    gap: var(--space-xs);
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .partner-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
  }

  .donate-card {
    padding: var(--space-2xl);
  }

  .map-container {
    height: 300px;
  }

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

  .team-card__image {
    height: 220px;
  }

  .video-card__title {
    font-size: 0.85rem;
  }
}

/* --- Mobile Small (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .btn--lg {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }

  .icon-card {
    padding: var(--space-lg);
  }

  .icon-card__icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .dept-card {
    flex-direction: column;
    text-align: center;
  }

  .value-card {
    padding: var(--space-lg);
  }

  .download-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-info__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav {
    width: 100%;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

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

/* --- Print Styles --- */
@media print {
  .header,
  .footer,
  .scroll-top,
  .menu-toggle,
  .nav-overlay,
  .preloader {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
  }

  .hero {
    min-height: auto;
    background: none;
    color: #000;
  }

  .hero__title,
  .page-header h1 {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
