/* ===== RESPONSIVE STYLESYSTEM ===== */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 1.875rem;
    --fs-2xl: 1.5rem;
  }

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

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

  .nav-links {
    gap: var(--space-md);
  }

  /* Heroes Tablet */
  .home-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 1rem;
    gap: 1.5rem;
  }

  .home-hero-content .hero-text {
    max-width: 100%;
    width: 100%;
    order: 1;
    padding-bottom: 0.5rem;
    text-align: center;
  }

  .home-hero-content .hero-buttons {
    justify-content: center;
  }

  .home-hero-content .hero-image {
    order: 2;
    flex: 0 1 auto;
    width: 320px;
    max-width: 75%;
    margin: 0.5rem auto 0;
  }

  .home-hero-content .hero-image img {
    max-height: 440px;
  }

  .home-hero-content .hero-quote {
    order: 3;
    max-width: 480px;
    width: 100%;
    text-align: center;
    margin: 1rem auto 0;
    padding-bottom: 1rem;
  }

  .hero-portrait-merged {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero-portrait-merged .hero-text {
    max-width: 100%;
    width: 100%;
    order: 1;
    padding-bottom: 0.5rem;
    text-align: center;
  }

  .hero-portrait-merged .hero-buttons {
    justify-content: center;
  }

  .hero-portrait-merged .hero-image {
    order: 2;
    flex: 0 1 auto;
    width: 320px;
    max-width: 75%;
    margin: 0.5rem auto 0;
  }

  .hero-portrait-merged .hero-image img {
    max-height: 440px;
  }

  .hero-trust-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
  }

  .hero-trust-content .hero-text {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .hero-trust-content .hero-buttons {
    justify-content: center;
  }

  .trust-hero-badge {
    width: 220px;
    height: 220px;
  }

  /* Grids Tablet */
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .pillars-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .achievements-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .medals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .family-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .event-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .event-detail-grid .prize-pool {
    grid-column: 1 / -1;
  }

  .mission-split-banner {
    flex-direction: column;
  }

  .mission-split-image {
    min-height: 250px;
    flex: none;
  }

  .mission-split-image::after {
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, var(--color-cream) 100%);
  }
}

/* ===== LARGE MOBILE & TABLET PORTRAIT (max-width: 768px) ===== */
@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
    --header-height: 64px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

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

  /* Header mobile */
  .header-inner {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-logo img {
    height: 42px;
  }

  .header-logo-text .trust-name {
    font-size: 11px;
  }

  .header-logo-text .trust-tagline {
    font-size: 9px;
  }

  .header-donate {
    display: none;
  }

  .top-bar {
    display: none;
  }

  /* Heroes Mobile */
  .hero {
    min-height: auto;
  }

  .home-hero-content,
  .hero-portrait-merged,
  .hero-trust-content {
    padding: 2rem 1rem 0.5rem;
    gap: 1.25rem;
  }

  .home-hero-content .hero-image,
  .hero-portrait-merged .hero-image {
    width: 260px;
    max-width: 85%;
    margin-top: 0.5rem;
  }

  .home-hero-content .hero-image img,
  .hero-portrait-merged .hero-image img {
    max-height: 380px;
  }

  .hero-quote {
    margin-top: 1rem;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .trust-hero-badge {
    width: min(200px, 60vw);
    height: min(200px, 60vw);
    padding: 1.25rem;
  }

  .trust-hero-badge img {
    width: 100%;
    height: 100%;
  }

  /* Grids Mobile */
  .donation-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .donation-center {
    padding: 1.75rem 1.25rem !important;
  }

  .donation-center > div {
    padding: 1.25rem 1rem !important;
  }

  .donation-center code {
    word-break: break-all;
    font-size: 0.95rem;
  }

  .quote-block {
    padding: 1.25rem 1rem !important;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .impact-item {
    padding: 1.75rem 1rem !important;
  }

  .achievements-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .pillars-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: var(--space-xl) 0 !important;
  }

  .pillar-item {
    padding: 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-info-card {
    padding: var(--space-lg) !important;
  }

  .contact-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .medals-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .objectives-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .events-listing-grid,
  .upcoming-events-grid,
  .upcoming-event-card,
  .event-about-grid,
  .event-detail-grid,
  .intl-career-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .event-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .event-info-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .family-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .values-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .mission-icons-row {
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
  }

  .mission-icon-item {
    flex: 1 1 45%;
  }

  /* Footer Mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

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

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-banner-right {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-right .btn {
    width: 100%;
    justify-content: center;
  }

  .governance-inner {
    flex-direction: column;
    text-align: center;
  }

  .medal-filters {
    gap: 0.5rem;
  }

  .medal-filter-btn {
    padding: 6px 14px;
    font-size: var(--fs-xs);
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  :root {
    --fs-5xl: 1.75rem;
    --fs-4xl: 1.5rem;
    --fs-3xl: 1.25rem;
    --fs-2xl: 1.15rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .header-inner {
    padding: 0 0.75rem;
  }

  .header-logo img {
    height: 36px;
  }

  .header-logo-text .trust-name {
    font-size: 10px;
    letter-spacing: 0.25px;
  }

  .header-logo-text .trust-tagline {
    font-size: 8px;
  }

  .home-hero-content .hero-image,
  .hero-portrait-merged .hero-image {
    width: 210px;
    max-width: 85%;
  }

  .home-hero-content .hero-image img,
  .hero-portrait-merged .hero-image img {
    max-height: 320px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  /* Single Column on narrow screens */
  .impact-grid {
    grid-template-columns: 1fr !important;
  }

  .pillars-row {
    grid-template-columns: 1fr !important;
  }

  .medals-grid {
    grid-template-columns: 1fr !important;
  }

  .family-grid {
    grid-template-columns: 1fr !important;
  }

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

  .event-info-bar {
    grid-template-columns: 1fr !important;
  }

  .values-row {
    grid-template-columns: 1fr !important;
  }

  .trust-hero-badge {
    width: 160px;
    height: 160px;
    padding: 1rem;
  }
}
