/* ═══════════════════════════════════════════════════════════════════
   MYISSUES CHARITY — MOBILE RESPONSIVE CSS
   ═════════════════════════════════════════════════════════════════
   Strategy: CSS-First Override (same approach as TechFix mobile)
   
   This file is loaded AFTER the inline <style> blocks, so it can 
   override them. Uses !important where needed to beat specificity.
   
   Breakpoints:
   - 1024px: Tablets / small desktops
   - 768px:  Phones + small tablets (primary mobile breakpoint)
   - 480px:  Small phones (iPhone SE, etc.)
   
   Created: June 23, 2026
   Author: Antigravity AI
═══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   PHASE 1: FOUNDATION — Global Grid, Flex & Width Overrides
   ────────────────────────────────────────────────────────────── */

/* iOS zoom prevention on form focus */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── Desktop: Hide mobile-only injected elements ───────────── */
.mobile-nav-actions {
  display: none !important;
}
.mobile-cta-bar {
  display: none !important;
}
.mobile-menu-toggle {
  display: none !important;
}

/* ── Tablet Breakpoint (1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  /* Force all multi-column grids to 2 columns max */
  .services-grid,
  .impact-metrics,
  .team-grid,
  .partner-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Reduce section padding */
  section, .section {
    padding: 56px 0 !important;
  }

  /* Container breathing room */
  .container {
    padding: 0 20px !important;
  }

  /* Nav actions — hide text labels, keep icons */
  .btn-senior-access span,
  .nav-voice-btn span {
    display: none;
  }
}

/* ── Primary Mobile Breakpoint (768px) ───────────────────────── */
@media (max-width: 768px) {

  /* ── GLOBAL GRID OVERRIDE ──
     Force ALL grid layouts to single column on mobile.
     This catches .services-grid, .feature-section .container, 
     .stories-grid, .global-section, .donation-inner, etc. */
  .services-grid,
  .stories-grid,
  .impact-metrics,
  .partner-grid,
  .team-grid,
  .resources-grid,
  .benefits-grid,
  .stats-grid,
  .feature-grid,
  .programs-grid,
  .feature-section .container,
  .global-section .container,
  .donation-inner,
  .companion-section .container,
  .footer-main .container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Force ALL 2-column grids to single column */
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: 1.6fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ── GLOBAL FLEX WRAP ── */
  .topbar .container,
  .stats-strip .container,
  .nav-actions,
  .footer-bottom .container {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* ── CONTAINER ── */
  .container {
    padding: 0 16px !important;
  }

  /* ── SECTION PADDING ── */
  section, .section {
    padding: 40px 0 !important;
  }

  /* ── TYPOGRAPHY SCALING ── */
  h1, .hero-headline {
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
  }
  h2, .section-headline {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }
  h3 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }
  body {
    font-size: 14px !important;
  }

  /* ── OVERFLOW PREVENTION ── */
  html, body {
    overflow-x: hidden !important;
  }
  * {
    max-width: 100vw;
  }
  img, video, iframe, svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── TOUCH TARGETS — minimum 44x44px ── */
  a, button, input[type="submit"], input[type="button"],
  .btn-nav-primary, .btn-nav-secondary, .nav-voice-btn,
  .btn-senior-access, .nav-dd-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Small Phone Breakpoint (480px) ──────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 12px !important;
  }
  section, .section {
    padding: 32px 0 !important;
  }
  h1, .hero-headline {
    font-size: 1.45rem !important;
  }
  h2, .section-headline {
    font-size: 1.2rem !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 2: TOP BAR — Simplify for Mobile
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .topbar {
    height: auto !important;
    min-height: 32px;
    padding: 4px 0 !important;
  }
  .topbar .container {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .topbar-left {
    display: none !important;
  }
  .topbar-center {
    display: none !important;
  }
  .topbar-right {
    width: 100%;
    justify-content: center !important;
  }
  /* Keep language switcher and status dot visible */
  .topbar-divider {
    display: none !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 3: NAVIGATION — Mobile Hamburger + Drawer
   ────────────────────────────────────────────────────────────── */

/* Hamburger button — hidden on desktop, shown on mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  position: relative;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite, #1e293b);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 3px 0;
}
/* Hamburger → X animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Navbar layout */
  .navbar {
    height: 56px !important;
    position: sticky;
    top: 0;
    z-index: 900;
  }
  .navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100%;
    flex-wrap: nowrap !important;
  }

  /* Logo — keep visible, slightly smaller */
  .nav-logo {
    flex-shrink: 0 !important;
    margin-right: 0 !important;
  }
  .nav-logo-text-sub {
    display: none !important;
  }

  /* Hide desktop navigation links */
  .nav-main {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--white, #fff);
    z-index: 1000;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 72px 16px 100px !important;
    gap: 0 !important;
  }
  .nav-main.mobile-open {
    display: flex !important;
  }

  /* Mobile nav items — accordion style */
  .nav-main .nav-item {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--border, #dde3ee);
  }
  .nav-main .nav-item > .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px !important;
    font-size: 1rem !important;
    font-weight: 600;
    width: 100%;
    color: var(--graphite, #1e293b);
  }
  .nav-main .nav-arrow {
    font-size: 0.75rem !important;
    transition: transform 0.3s ease;
  }
  /* Override desktop hover-to-show dropdowns */
  .nav-main .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 0 8px 12px !important;
    display: none;
    background: var(--soft-white, #f7f9fc) !important;
  }
  /* Show dropdown when item is toggled */
  .nav-main .nav-item.mobile-expanded .nav-dropdown {
    display: block !important;
  }
  .nav-main .nav-item.mobile-expanded .nav-arrow {
    transform: rotate(180deg);
  }

  /* Dropdown items — mobile touch friendly */
  .nav-mega-columns {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .nav-dropdown-wide {
    min-width: 0 !important;
  }
  .nav-dd-item {
    padding: 12px 10px !important;
    min-height: 44px;
  }
  .nav-dd-text-sub {
    display: none !important;
  }

  /* Nav actions — dock at bottom of drawer */
  .nav-actions {
    display: none !important;
  }
  /* We create a mobile-nav-actions inside the drawer via JS */
  .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    border-top: 1px solid var(--border, #dde3ee);
    margin-top: auto;
  }
  .mobile-nav-actions a,
  .mobile-nav-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    min-height: 48px;
  }
  .mobile-nav-actions .btn-nav-primary {
    background: var(--warm-accent, #c4a052);
    color: var(--midnight-navy, #08152b);
  }
  .mobile-nav-actions .nav-voice-btn {
    border: 2px solid var(--navy, #0d2444);
    color: var(--navy, #0d2444);
    background: var(--white, #fff);
  }
  .mobile-nav-actions .btn-senior-access {
    background: linear-gradient(135deg, #EA580C, #C2410C);
    color: #fff;
    border-radius: 8px;
  }

  /* Body scroll lock when menu is open */
  body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 4: HERO SECTION — Stack Layout
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 32px !important;
  }
  .hero .container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .hero-headline {
    font-size: 1.6rem !important;
    letter-spacing: -0.01em !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .hero-mosaic {
    display: none !important;
  }
  .hero-cta-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .hero-cta-group a,
  .hero-cta-group button {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    font-size: 0.95rem !important;
    min-height: 48px;
  }
  .hero-trust-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 5: ANNOUNCEMENT BAR — Mobile Compact
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .announcement-bar {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
    text-align: center !important;
  }
  .announcement-bar .container {
    flex-direction: column !important;
    gap: 8px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 6: STATS STRIP — 2-Column on Mobile
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .stats-strip {
    padding: 24px 0 !important;
  }
  .stats-strip .container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .stat-item {
    text-align: center;
    border-right: none !important;
    padding: 12px 8px !important;
  }
  .stat-number {
    font-size: 1.6rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .stats-strip .container {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 7: SERVICES GRID — Full Width Cards
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .service-card {
    padding: 20px !important;
  }
  .service-card-title {
    font-size: 1rem !important;
  }
  .service-card-desc {
    font-size: 0.85rem !important;
  }
  .service-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 8: FEATURE SECTIONS — Stack Side-by-Side Layouts
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .feature-section .container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Reverse direction fix — always text first on mobile */
  .feature-section.reverse .container {
    direction: ltr !important;
  }

  .feature-visual {
    order: 2 !important;
    max-height: 280px;
    overflow: hidden;
    border-radius: 12px;
  }
  .feature-content {
    order: 1 !important;
  }

  /* Companion section */
  .companion-section .container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .companion-badges {
    display: none !important;
  }
  .companion-visual {
    max-width: 280px;
    margin: 0 auto;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 9: STORIES / TESTIMONIALS — Scroll or Stack
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .stories-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .story-card {
    padding: 20px !important;
  }
  .story-quote {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  .story-name {
    font-size: 0.85rem !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 10: DONATION SECTION — Full Width CTA
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .donation-section {
    padding: 40px 0 !important;
  }
  .donation-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px !important;
    text-align: center;
  }
  .donation-headline {
    font-size: 1.3rem !important;
  }
  .donation-cta-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .donation-cta-group a,
  .donation-cta-group button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px;
  }
  /* Amount buttons */
  .donation-amounts {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .donation-amount-btn {
    padding: 12px 8px !important;
    font-size: 0.9rem !important;
    min-height: 44px;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 11: GLOBAL MAP / REACH SECTION
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .global-section .container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .global-map {
    max-height: 240px;
    overflow: hidden;
    border-radius: 12px;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 12: FOOTER — Stack All Columns
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0 24px !important;
  }
  .footer-main .container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .footer-col h4 {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }
  .footer-col a {
    font-size: 0.85rem !important;
    display: block;
    padding: 6px 0 !important;
    min-height: 36px;
    line-height: 36px;
  }
  .footer-bottom {
    text-align: center !important;
    padding: 16px 0 !important;
  }
  .footer-bottom .container {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .footer-social {
    justify-content: center !important;
    gap: 16px !important;
  }
  .footer-social a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 13: FORMS — Full Width Inputs & Better Touch
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  textarea,
  select {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 12px !important;
    border-radius: 8px !important;
  }
  .form-group, .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* Registration/login forms */
  .login-form, .signup-form, .registration-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 14: BUTTONS — Full Width on Mobile
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .cta-group,
  .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .cta-group a,
  .cta-group button,
  .btn-group a,
  .btn-group button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
    padding: 14px 20px !important;
    min-height: 48px;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 15: TABLES — Horizontal Scroll Wrapper
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }
  th, td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    white-space: normal;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 16: PAGE-SPECIFIC OVERRIDES
   ────────────────────────────────────────────────────────────── */

/* ── Food Access / Food Bank Pages ── */
@media (max-width: 768px) {
  .food-program-grid,
  .food-features-grid,
  .food-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .food-hero .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .food-map-container {
    height: 300px !important;
  }
}

/* ── Donate Page — Payment Form ── */
@media (max-width: 768px) {
  .donate-form-container {
    padding: 20px !important;
  }
  .payment-methods {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .payment-method-btn {
    width: 100% !important;
    min-height: 48px;
  }
}

/* ── Senior Services / Companion Pages ── */
@media (max-width: 768px) {
  .senior-features-grid,
  .companion-features-grid {
    grid-template-columns: 1fr !important;
  }
  .senior-hero .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

/* ── Education / Classroom Pages ── */
@media (max-width: 768px) {
  .course-grid,
  .instructor-grid {
    grid-template-columns: 1fr !important;
  }
  .classroom-sidebar {
    display: none !important;
  }
  .classroom-main {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── Career Page ── */
@media (max-width: 768px) {
  .career-listings-grid {
    grid-template-columns: 1fr !important;
  }
  .career-card {
    padding: 20px !important;
  }
}

/* ── Trust & Transparency Page ── */
@media (max-width: 768px) {
  .trust-metrics-grid,
  .trust-pillars-grid,
  .annual-report-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── TechFix Pathway Page ── */
@media (max-width: 768px) {
  .techfix-hero .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .techfix-services-grid,
  .techfix-process-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Troubleshooting Page ── */
@media (max-width: 768px) {
  .troubleshoot-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
  }
  .troubleshoot-sidebar {
    display: none !important;
  }
}

/* ── Partner Portal Page ── */
@media (max-width: 768px) {
  .partner-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .partner-sidebar {
    display: none !important;
  }
}

/* ── Language Access Page ── */
@media (max-width: 768px) {
  .language-grid,
  .translation-grid {
    grid-template-columns: 1fr !important;
  }
  .language-search {
    width: 100% !important;
  }
}

/* ── Community Hub Page ── */
@media (max-width: 768px) {
  .community-grid,
  .event-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 17: LARISSA WIDGET — Mobile Optimized
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Make Larissa panel full-width on mobile */
  #larissa-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 85vh !important;
    height: 85dvh !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 10000 !important;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.3) !important;
  }

  /* FAB position */
  #larissa-fab {
    bottom: 20px !important;
    right: 16px !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 9999 !important;
  }

  /* Voice card adjustments */
  .larissa-voice-card {
    border-radius: 16px !important;
    padding: 24px 16px 20px !important;
  }
  .lvc-mic-orb {
    width: 72px !important;
    height: 72px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 18: STICKY MOBILE CTA BAR
   ────────────────────────────────────────────────────────────── */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white, #fff);
  border-top: 1px solid var(--border, #dde3ee);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 8000;
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
  }

  .mobile-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary, #5a6d85);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s;
    flex: 1;
    min-height: 48px;
    gap: 3px;
  }
  .mobile-cta-item:hover,
  .mobile-cta-item:active {
    color: var(--navy, #0d2444);
    background: var(--silver-light, #eef2f8);
  }
  .mobile-cta-item svg {
    width: 20px;
    height: 20px;
  }
  .mobile-cta-item.donate-btn {
    background: var(--warm-accent, #c4a052);
    color: var(--midnight-navy, #08152b);
    border-radius: 10px;
    font-weight: 700;
  }

  /* Add padding to body so content isn't hidden behind the bar */
  body {
    padding-bottom: 72px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 19: CARD LAYOUTS — Ensure Full Width
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .card, .info-card, .service-card, .story-card, 
  .metric-card, .partner-card, .resource-card,
  .benefit-card, .feature-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 20: ACCORDION / FAQ — Touch Friendly
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .accordion-header,
  .faq-question {
    padding: 16px 12px !important;
    font-size: 0.95rem !important;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .accordion-body,
  .faq-answer {
    padding: 12px !important;
    font-size: 0.88rem !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 21: MODALS & OVERLAYS — Full Screen on Mobile
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .modal-content, .overlay-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .modal-close, .overlay-close {
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 22: PRINT STYLES — Clean Output
   ────────────────────────────────────────────────────────────── */

@media print {
  .topbar,
  .navbar,
  .mobile-cta-bar,
  .mobile-menu-toggle,
  #larissa-fab,
  #larissa-panel,
  .footer-main,
  .footer-bottom,
  .announcement-bar {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
    font-size: 12pt !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 23: REDUCED MOTION — Accessibility
   ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ──────────────────────────────────────────────────────────────────
   PHASE 24: SAFE AREA INSETS — Notch Devices
   ────────────────────────────────────────────────────────────── */

@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .mobile-cta-bar {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}
