/* Mobile Optimizations for Threads for iKasi Foundation */
/* Enhanced mobile experience without affecting desktop */

/* ===== MOBILE-FIRST OPTIMIZATIONS ===== */

/* Touch-friendly interactions */
@media (max-width: 991px) {

  /* Ensure all interactive elements meet minimum touch target size */
  button,
  .btn,
  .button,
  a,
  input[type="submit"],
  input[type="button"],
  .nav-link,
  .dropdown-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Enhanced form elements for mobile */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    min-height: 44px;
    padding: 0.875rem 1rem;
    font-size: 16px;
    /* Prevents zoom on iOS */
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  textarea:focus,
  select:focus {
    border-color: var(--primary-purple, #0fbfbe);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 191, 190, 0.1);
  }

  /* Mobile-optimized typography */
  body {
    font-size: 16px;
    /* Prevents zoom on iOS */
    line-height: 1.6;
  }

  h1,
  .h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  h2,
  .h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h3,
  .h3 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }

  p,
  .p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  /* Mobile container spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  /* Enhanced button styles for mobile */
  .btn,
  .button {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    min-height: 48px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn:active,
  .button:active {
    transform: scale(0.98);
  }

  /* Mobile-optimized grid layouts */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-split,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .feature-container,
  .feature-container.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Mobile-optimized cards */
  .card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Mobile-optimized stats section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item {
    text-align: center;
    padding: 1.25rem;
  }

  .stat-number {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ===== SMALLER MOBILE DEVICES (480px and below) ===== */
@media (max-width: 480px) {

  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .section {
    padding: 2rem 0;
  }

  /* Single column layouts for very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .involvement-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Smaller typography for very small screens */
  h1,
  .h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  h2,
  .h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .btn,
  .button {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }
}

/* ===== MOBILE-SPECIFIC ENHANCEMENTS ===== */

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-purple, #0fbfbe);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-purple, #0fbfbe);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Mobile-optimized image handling */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .hero-image,
  .feature-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
}

/* ===== INITIATIVE PAGES MOBILE OPTIMIZATIONS ===== */

/* Mobile-optimized hero sections for initiative pages */
@media (max-width: 991px) {
  .initiative-hero {
    padding: 3rem 0;
  }

  .initiative-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
    /* Put image first on mobile */
  }

  .hero-video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-video-container iframe {
    width: 100%;
    height: 225px;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .initiative-hero {
    padding: 2rem 0;
  }

  .hero-video-container iframe {
    height: 200px;
  }
}

/* Mobile-optimized FAQ sections */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
    min-height: 44px;
    /* Touch-friendly */
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
  }

  .faq-question:hover {
    background: #F9FAFB;
  }

  .faq-question:active {
    background: #F3F4F6;
    transform: scale(0.98);
    transition: all 0.1s ease;
  }

  .faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    min-width: 24px;
    text-align: center;
  }

  .faq-answer {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #F3F4F6;
  }

  .faq-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.75rem;
  }

  .faq-category h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
}

/* Mobile-optimized stats and features for initiative pages */
@media (max-width: 768px) {
  .initiative-stats {
    padding: 2.5rem 0;
  }

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

  .stat-card {
    padding: 1.25rem;
    text-align: center;
  }

  .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }
}

/* Mobile-optimized process sections */
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-step {
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
  }

  .process-number {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Mobile-optimized testimonial sections */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    text-align: center;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
  }

  .testimonial-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
  }
}

/* Mobile-optimized call-to-action sections */
@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 0;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* Mobile-optimized video sections */
@media (max-width: 768px) {
  .video-section {
    padding: 2.5rem 0;
  }

  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .video-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
  }

  .mute-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    border-radius: 6px !important;
  }
}

/* Mobile-optimized contact forms */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }

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

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

/* Performance optimizations for mobile */
@media (max-width: 768px) {

  /* Reduce animations on mobile for performance */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Re-enable essential animations */
  .navbar6_menu,
  .navbar6_dropdown-list,
  .navbar6_component {
    transition-duration: 0.3s !important;
  }

  /* Disable parallax effects on mobile for performance */
  .parallax-section {
    background-attachment: scroll !important;
  }
}

/* ===== TOUCH GESTURES AND INTERACTIONS ===== */

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {

  /* This targets touch devices */
  .btn,
  .button,
  .nav-link,
  .dropdown-toggle {
    min-height: 48px;
    min-width: 48px;
  }

  /* Enhanced hover states for touch */
  .btn:hover,
  .button:hover,
  .card:hover {
    transform: none;
  }

  .btn:active,
  .button:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

/* ===== HOMEPAGE MOBILE OPTIMIZATIONS ===== */

/* Mobile-optimized hero section */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-video iframe {
    height: 250px !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

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

@media (max-width: 768px) {
  .hero-video iframe {
    height: 200px !important;
  }

  .hero-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile-optimized impact section with parallax fix */
@media (max-width: 768px) {
  .section-impact-bg {
    background-attachment: scroll !important;
    min-height: auto !important;
    padding: 4rem 0;
  }

  .impact-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)) !important;
  }

  .feature-card {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile-optimized initiatives grid */
@media (max-width: 991px) {
  .initiatives-quick-nav {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .initiative-nav-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
  }

  .initiative-nav-card .btn {
    margin-top: 1rem;
    border-radius: 8px !important;
  }
}

/* Mobile-optimized stats section */
@media (max-width: 768px) {
  .stats-section {
    padding: 3rem 0;
  }

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

  .stat-number {
    font-size: 2rem;
    font-weight: 800;
  }

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }
}

/* Mobile-optimized support section */
@media (max-width: 768px) {
  .support-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .support-card {
    padding: 1.5rem;
    text-align: center;
  }

  .support-price {
    font-size: 1.75rem;
  }

  .support-card .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ===== ENHANCED SUPPORT SECTION MOBILE ===== */

/* Support section mobile optimizations */
@media (max-width: 991px) {
  .support-nav-container {
    margin-bottom: 2rem;
  }

  .support-nav-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .support-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .support-plan {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .support-nav-wrapper {
    padding: 2px;
  }

  .support-tab {
    padding: 12px 16px;
    min-width: 80px;
    font-size: 0.875rem;
  }

  .support-tab .tab-text {
    display: none;
  }

  .support-plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .support-plan {
    padding: 1.25rem 1rem;
  }

  .section-subtitle {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 8px;
  }

  .section-subtitle::before {
    width: 30px;
    height: 3px;
    margin: 0 auto;
  }

  .plan-button {
    font-size: 0.875rem;
    padding: 12px;
  }
}

/* ===== PREMIUM UI ENHANCEMENTS ===== */

/* Hover micro-interactions (Desktop only) */
@media (hover: hover) {

  .card:hover,
  .support-plan:hover,
  .feature-card:hover,
  .initiative-nav-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .btn:hover,
  .button:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
  }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  /* Hide on desktop */
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    /* Show on mobile */
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .sticky-mobile-cta.visible {
    transform: translateY(0);
  }

  .sticky-mobile-cta .btn {
    width: 100%;
    max-width: 400px;
    margin: 0;
  }

  /* Add padding to footer to ensure sticky CTA doesn't cover content */
  footer {
    padding-bottom: 5rem !important;
  }
}

/* Enhanced Container Padding for Readability */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  p,
  .lead-text,
  .section-description {
    line-height: 1.8;
  }
}

/* Color Contrast Fixes */
:root {
  --accent-teal-dark: #0D9488;
  /* Darker than #14B8A6 for better contrast */
}

.feature-icon,
.nav-card-icon .material-icons {
  color: var(--accent-teal-dark) !important;
}


/* ===== INITIATIVES PAGE MOBILE ENHANCEMENTS ===== */

@media (max-width: 991px) {
  .core-programs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .core-programs-header {
    position: static !important;
  }

  .programs-info {
    max-width: 500px;
    margin: 0 auto;
  }

  .core-programs-cards {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .core-programs-section {
    padding: 3rem 0;
  }

  .core-programs-layout {
    gap: 1.5rem;
  }

  .core-programs-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .program-card {
    padding: 1.5rem 1rem;
  }

  .program-card-header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .program-features {
    justify-content: center;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .program-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===== FEATURE TAGS MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {
  .feature-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    padding-left: 22px;
  }

  .feature-tag:before {
    left: 7px;
    font-size: 0.75rem;
  }
}

/* ===== IMAGE OPTIMIZATION AND RESPONSIVENESS ===== */

/* Universal image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive images for different contexts */
@media (max-width: 991px) {
  .navbar6_logo {
    height: 28px !important;
    width: auto;
  }

  .hero-image,
  .feature-image,
  .initiative-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Background images on mobile - switch to scroll for performance */
  .section-impact-bg {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Testimonial images optimization */
  .video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
  }

  .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 1rem;
    color: white;
    transition: all 0.3s ease;
  }

  .play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@media (max-width: 768px) {
  .navbar6_logo {
    height: 24px !important;
  }

  .video-thumbnail {
    max-width: 100%;
    border-radius: 8px;
  }

  .video-thumbnail img {
    border-radius: 8px;
  }

  /* Optimize background images for mobile */
  .hero,
  .section-impact-bg {
    background-attachment: scroll !important;
  }

  /* Initiative page images */
  .initiative-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
  }

  /* Program card images */
  .program-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* ===== VIDEO AND MEDIA RESPONSIVENESS ===== */

@media (max-width: 991px) {
  .hero-video iframe {
    height: 250px !important;
    max-height: 40vh;
    border-radius: 12px;
  }

  .hero-video {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-video iframe {
    height: 200px !important;
    border-radius: 8px;
  }

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

  .testimonial-card {
    padding: 1.25rem;
  }

  /* Video container responsiveness */
  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

  .mute-toggle {
    width: 36px !important;
    height: 36px !important;
    bottom: 0.75rem !important;
    right: 0.75rem !important;
  }
}

/* ===== ENHANCED NAVIGATION MOBILE ===== */

@media (max-width: 991px) {
  .navbar6_menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar6_nav {
    padding: 1rem 0;
  }

  .navbar6_link {
    font-size: 1.125rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar6_dropdown-list {
    position: static;
    background: rgba(0, 0, 0, 0.02);
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
    margin-left: 1rem;
  }

  .navbar6_dropdown-link {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}

/* ===== MOBILE UTILITIES ===== */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Show only on mobile */
.show-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .show-mobile {
    display: block !important;
  }
}

/* Mobile text alignment */
@media (max-width: 767px) {
  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-text-left {
    text-align: left !important;
  }
}

/* ===== COMPREHENSIVE SPACING FIXES ===== */

/* Consistent section padding across breakpoints */
@media (max-width: 991px) and (min-width: 769px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .hero {
    padding: 4rem 0;
    min-height: 70vh;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .hero {
    padding: 3rem 0;
    min-height: 60vh;
  }

  /* Tighter spacing for small screens */
  .section-title {
    margin-bottom: 1rem;
  }

  .section-subtitle {
    margin-bottom: 0.75rem;
  }

  .lead-text {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0;
  }

  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 2.5rem 0;
    min-height: 50vh;
  }
}

/* ===== ENHANCED FORM AND BUTTON SPACING ===== */

@media (max-width: 768px) {

  /* Consistent button spacing */
  .btn {
    margin-bottom: 0.75rem;
  }

  .btn+.btn {
    margin-left: 0;
  }

  .hero-buttons,
  .cta-buttons,
  .button-group {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  /* Form spacing improvements */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    margin-bottom: 0.5rem;
  }

  /* Card spacing improvements */
  .card+.card {
    margin-top: 1rem;
  }

  .card-header {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .card-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
  }
}

/* ===== FEATURE GRID ENHANCEMENTS ===== */

@media (max-width: 991px) and (min-width: 769px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

@media (max-width: 768px) {

  .feature-grid,
  .stats-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {

  .feature-grid,
  .stats-grid,
  .testimonials-grid {
    gap: 1rem;
  }
}

/* ===== PERFORMANCE AND UX IMPROVEMENTS ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced focus styles for better accessibility */
@media (max-width: 768px) {
  *:focus {
    outline: 3px solid var(--primary-purple, #0fbfbe);
    outline-offset: 2px;
  }

  .btn:focus,
  .button:focus {
    outline-offset: 4px;
  }
}

/* Safe area adjustments for notched devices */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .container {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }

    .navbar6_component {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* ===== NAVIGATION BRAND TEXT ===== */
.navbar6_logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar6_brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #4A5568;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.navbar6_component.scrolled .navbar6_brand-text {
  font-size: 1.1rem;
}

@media screen and (max-width: 991px) {
  .navbar6_brand-text {
    font-size: 1.1rem;
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .navbar6_brand-text {
    font-size: 1rem;
    gap: 8px;
  }
}

@media screen and (max-width: 480px) {
  .navbar6_brand-text {
    font-size: 0.85rem;
    max-width: 15rem;
    /* Using rem for better scaling */
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==============================================
   MOBILE NAVIGATION - PREMIUM REDESIGN
   ============================================== */

@media screen and (max-width: 991px) {

  /* Menu Container - Full Screen Overlay */
  .navbar6_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 40px;
    z-index: 998;

    /* Animation State: Closed */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Reset Webflow defaults */
    float: none;
    max-height: none;
    overflow-y: auto;
  }

  /* Menu State: Open */
  .navbar6_menu.w--open {
    display: flex;
    /* Ensure flex is maintained */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Menu Layout */
  .navbar6_menu-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 0 2rem 0;
    gap: 0;
  }

  .navbar6_menu-right {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  /* Nav Links - Large & Tappable */
  .navbar6_link {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .navbar6_link:active,
  .navbar6_link:hover {
    color: var(--primary-purple);
    background: rgba(15, 191, 190, 0.05);
  }

  /* Mobile Dropdown Styling */
  .navbar6_dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar6_dropdown-toggle {
    width: 100%;
    justify-content: center;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .navbar6_dropdown.w--open .navbar6_dropdown-toggle {
    color: var(--primary-purple);
  }

  .navbar6_dropdown-list {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(248, 250, 252, 0.5);
    /* Slight grey background */
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: none;
    /* Reset desktop transform */
  }

  /* Open state is handled by JS toggling .w--open */
  .navbar6_dropdown.w--open .navbar6_dropdown-list {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }

  .navbar6_dropdown-link {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-align: center;
  }

  /* Menu Button (Hamburger) */
  .navbar6_menu-button {
    z-index: 1001;
    /* Above menu overlay */
    padding: 0;
    margin-left: 1rem;
    box-shadow: none;
  }

  .navbar6_menu-button.w--open {
    background-color: transparent;
    /* Remove grey bg */
  }

  /* Fix for the CTA in menu */
  .navbar6_menu-right .button {
    width: 90%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    text-align: center;
    justify-content: center;
  }
}

/* ==============================================
   GENERAL UI POLISH & REFINEMENTS
   ============================================== */

/* Better Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 4px;
}

/* Smooth Image Loading Placeholder */
img {
  transition: opacity 0.3s ease;
}

/* Refined Typography Spacing */
p {
  margin-bottom: 1.5rem;
}

/* Card Hover Uplift (Desktop & Tablet) */
@media (min-width: 768px) {

  .initiative-nav-card,
  .feature-card,
  .support-plan {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .initiative-nav-card:hover,
  .feature-card:hover,
  .support-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
  }
}

/* Mobile Typography Hierarchy Sharpening */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem !important;
    /* Force readable size */
    line-height: 1.1;
  }

  .lead-text {
    font-size: 1.125rem;
  }
}

/* ==============================================
   HAMBURGER MENU ANIMATION
   ============================================== */
.navbar6_menu-button .menu-icon1_line-top,
.navbar6_menu-button .menu-icon1_line-middle,
.navbar6_menu-button .menu-icon1_line-bottom {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.navbar6_menu-button.w--open .menu-icon1_line-top {
  transform: translateY(7px) rotate(45deg);
}

.navbar6_menu-button.w--open .menu-icon1_line-middle {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar6_menu-button.w--open .menu-icon1_line-bottom {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================
   MOBILE BOTTOM NAVIGATION SYSTEM
   ============================================== */

/* Hidden by default (Desktop) */
@media (min-width: 992px) {

  .mobile-bottom-nav,
  .mobile-menu-drawer,
  .drawer-overlay {
    display: none !important;
  }
}

/* Move mobile bottom nav higher on Android devices to accommodate system navigation bar */
.is-android .mobile-bottom-nav {
  bottom: 48px !important; /* Raise above Android's system navigation bar */
}

.is-android .mobile-menu-drawer {
  bottom: 48px !important; /* Match the bottom nav position */
  max-height: calc(85vh - 48px) !important;
}

/* Adjust footer padding on Android to account for raised bottom nav */
@media screen and (max-width: 991px) {
  .is-android footer.footer-minimal,
  .is-android .footer-minimal {
    padding-bottom: calc(80px + 48px) !important; /* Extra space for raised nav */
  }
}

/* Visible on Mobile */
@media screen and (max-width: 991px) {

  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--primary-purple);
  }

  .mobile-nav-item .material-icons {
    font-size: 24px;
    transition: transform 0.2s ease;
  }

  .mobile-nav-item:active .material-icons {
    transform: scale(0.9);
  }

  /* All nav items now have consistent styling - FAB removed */

  /* Drawer Overlay */
  .drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Menu Drawer */
  .mobile-menu-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Ensure full width */
    background: #ffffff;
    z-index: 1001;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + 70px + env(safe-area-inset-bottom, 20px));
    /* Add safe area for Android nav */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-drawer.open {
    transform: translateY(0);
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .drawer-close {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .drawer-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
  }

  .drawer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .drawer-link:active {
    background: #f8fafc;
  }

  .drawer-link.indent {
    padding-left: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 2rem;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 8px 8px 0;
  }

  .drawer-divider {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
  }

  /* Add padding to footer to avoid overlap with bottom nav */
  footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px)) !important;
  }

  /* Hide the old sticky CTA */
  .sticky-mobile-cta {
    display: none !important;
  }

  /* Prevent background scrolling when drawer is open */
  body.drawer-open {
    overflow: hidden;
  }
}

/* ===== GENERAL MOBILE FIXES ===== */

/* Ensure play buttons are perfect circles */
@media (max-width: 991px) {
  .play-button {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Center Align CTAs on Mobile - Enhanced */
@media (max-width: 768px) {

  /* Button container layouts - stack vertically and center */
  .hero-buttons,
  .cta-buttons,
  .card-actions,
  .plan-button-container,
  .programs-actions,
  .button-group,
  .action-buttons,
  .initiative-actions,
  .support-actions,
  .form-actions,
  .modal-actions,
  .card-footer,
  .tier-actions,
  [class*="buttons"],
  [class*="actions"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  /* Target all button variations - Primary buttons */
  .btn,
  .button,
  .btn-primary,
  .btn-outline,
  .btn-secondary,
  .btn-tertiary,
  .btn-link,
  a[class*="btn"],
  button[class*="btn"],
  .w-button,
  input[type="submit"],
  input[type="button"] {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Secondary/Link style buttons that appear below primary */
  .btn-outline,
  .btn-secondary,
  .btn-link,
  .btn-text,
  a.text-link,
  .learn-more-link {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Cards with buttons - ensure buttons are centered and stacked */
  .card,
  .feature-card,
  .initiative-card,
  .pricing-card,
  .tier-card,
  .program-card,
  .support-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .card .btn,
  .card .button,
  .card a[class*="btn"],
  .feature-card .btn,
  .initiative-card .btn,
  .pricing-card .btn,
  .tier-card .btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0.5rem auto !important;
  }

  /* Ensure text is centered in containers */
  .hero-text,
  .section-header,
  .feature-card,
  .initiative-nav-card,
  .card-content,
  .card-body {
    text-align: center !important;
  }

  .hero-text p,
  .section-header p {
    margin-left: auto;
    margin-right: auto;
  }

  /* CTA sections - full width centered buttons */
  .cta-section .btn,
  .hero-section .btn,
  .support-section .btn,
  [class*="cta"] .btn {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0.5rem auto !important;
  }

  /* Inline link buttons styled as text - center them too */
  .info-link,
  .read-more,
  .view-more,
  [class*="link-btn"] {
    display: block !important;
    text-align: center !important;
    margin: 0.75rem auto !important;
  }
}

/* Mobile Bottom Nav - Uniform styling for all items */

/* ==============================================
   VIDEO MODAL OPTIMIZATION - ALL BREAKPOINTS
   ============================================== */

/* Desktop video modal optimization (992px and above) */
@media screen and (min-width: 992px) {
  .video-modal {
    padding: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Only apply flex when modal is shown (display: flex is set by JS) */
  .video-modal[style*="display: flex"] {
    display: flex !important;
  }

  .video-modal-content {
    max-width: 450px !important;
    width: 100% !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  .vertical-video-container {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    padding-bottom: 0 !important;
    aspect-ratio: 9 / 16 !important;
    max-height: calc(90vh - 150px) !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
  }

  .vertical-video-container video {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .close-modal {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    font-size: 36px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10002 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
  }

  .close-modal:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
  }

  .video-modal-title {
    font-size: 1.25rem !important;
    margin-top: 20px !important;
    text-align: center !important;
    color: white !important;
  }

  .modal-close-button {
    margin-top: 20px !important;
    padding: 14px 36px !important;
    font-size: 1rem !important;
    border-radius: 30px !important;
    min-width: 160px !important;
    background: var(--primary-purple) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
  }

  .modal-close-button:hover {
    background: var(--primary-purple-dark, #6b21a8) !important;
    transform: translateY(-2px) !important;
  }
}

/* Make video modal fit comfortably on mobile screens */
@media screen and (max-width: 991px) {
  .video-modal {
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Only apply flex when modal is shown (display: flex is set by JS) */
  .video-modal[style*="display: flex"] {
    display: flex !important;
  }

  .video-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 60px 16px 100px !important;
    box-sizing: border-box !important;
  }

  .vertical-video-container {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    padding-bottom: 0 !important;
    aspect-ratio: 9 / 16 !important;
    max-height: calc(100vh - 200px) !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  }

  .vertical-video-container video {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .close-modal {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    font-size: 32px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10002 !important;
  }

  .video-modal-title {
    font-size: 1.1rem !important;
    margin-top: 16px !important;
    padding: 0 16px !important;
    max-width: 320px !important;
  }

  .modal-close-button {
    margin-top: 16px !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    border-radius: 25px !important;
    min-width: 140px !important;
  }
}

@media screen and (max-width: 480px) {
  .video-modal-content {
    padding: 50px 12px 90px !important;
  }

  .vertical-video-container {
    max-width: 280px !important;
    max-height: calc(100vh - 180px) !important;
    border-radius: 12px !important;
  }

  .vertical-video-container video {
    border-radius: 12px !important;
  }

  .video-modal-title {
    font-size: 1rem !important;
    margin-top: 12px !important;
  }

  .modal-close-button {
    margin-top: 12px !important;
    padding: 12px 28px !important;
  }
}

/* ==============================================
   MOBILE TOP SPACING FOR FIXED NAVBAR
   ============================================== */

/* Add padding-top to content below fixed navbar on mobile */
@media screen and (max-width: 991px) {
  .desktop-spacer,
  section.hero.desktop-spacer {
    padding-top: 110px !important;
  }
}

@media screen and (max-width: 768px) {
  .desktop-spacer,
  section.hero.desktop-spacer {
    padding-top: 100px !important;
  }
}

@media screen and (max-width: 480px) {
  .desktop-spacer,
  section.hero.desktop-spacer {
    padding-top: 90px !important;
  }
}

/* ==============================================
   CRITICAL DESKTOP FIXES
   ============================================== */

/* Ensure Mobile Bottom Nav is HIDDEN on Desktop */
@media screen and (min-width: 992px) {

  .mobile-bottom-nav,
  .mobile-menu-drawer,
  .drawer-overlay,
  #mobile-menu-trigger,
  .mobile-nav-item,
  #stickyCTA {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
  }

  /* Reset footer padding on desktop */
  footer {
    padding-bottom: 0 !important;
  }

  /* Footer bottom alignment fix - center social icons vertically */
  footer.footer-minimal .footer-bottom,
  .footer-minimal .footer-bottom {
    align-items: center !important;
    padding-bottom: 2rem !important;
  }

  footer.footer-minimal .footer-content,
  .footer-minimal .footer-content {
    padding-bottom: 1.5rem !important;
  }

  footer.footer-minimal .footer-social,
  .footer-minimal .footer-social {
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

/* ==============================================
   FOOTER BOTTOM ALIGNMENT - TABLET & MOBILE
   ============================================== */

/* Tablet breakpoint (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  footer.footer-minimal .footer-bottom,
  .footer-minimal .footer-bottom {
    align-items: center !important;
    padding-bottom: 1.5rem !important;
  }

  footer.footer-minimal .footer-content,
  .footer-minimal .footer-content {
    padding-bottom: 1.25rem !important;
  }

  footer.footer-minimal .footer-social,
  .footer-minimal .footer-social {
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Mobile breakpoint (below 768px) */
@media screen and (max-width: 767px) {
  footer.footer-minimal .footer-bottom,
  .footer-minimal .footer-bottom {
    align-items: center !important;
    padding-bottom: 1.25rem !important;
    text-align: center !important;
  }

  footer.footer-minimal .footer-content,
  .footer-minimal .footer-content {
    padding-bottom: 1rem !important;
  }

  footer.footer-minimal .footer-social,
  .footer-minimal .footer-social {
    align-items: center !important;
    justify-content: center !important;
  }
}