/* ========================================
   MOBILE OPTIMIZATION FOR DALANA.HTML
   Hero Section & Mobile Menu Fixes
   ======================================== */

/* CRITICAL: Preserve animation setup from main CSS */
/* Content starts hidden (opacity: 0) and animates in with .loaded class */

/* Mobile Menu Toggle Button - Hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Responsive Fixes - ONLY APPLY ON MOBILE */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        z-index: 100001;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.3s ease;
        pointer-events: auto;
        touch-action: manipulation;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .header.scrolled .mobile-menu-toggle {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
    }
    
    .header.scrolled .mobile-menu-toggle span {
        background: #10b981;
    }
    
    /* CRITICAL: Hide duplicate CSS menu icon that blocks clicks */
    .header-content::after {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    /* Mobile Menu Overlay */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: flex-start;
        z-index: 100000;
        overflow-y: auto;
        pointer-events: none;
    }
    
    .header-nav.active {
        right: 0;
        pointer-events: auto;
    }
    
    .header-nav a {
        color: #1e293b !important;
        text-shadow: none !important;
        font-size: 1.125rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
        pointer-events: auto;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .header-nav a:hover,
    .header-nav a:active {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981 !important;
        transform: translateX(5px);
    }
    
    .btn-get-started {
        width: 100%;
        margin-top: 1rem;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        border: none !important;
        text-shadow: none;
        pointer-events: auto;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Section Mobile Optimizations */
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-container {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-slide {
        min-height: 100vh;
        height: auto;
        padding: 120px 1.5rem 80px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    /* Hero Icon Badge - Fix positioning */
    .hero-icon-badge,
    .hero-icon-badge-img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }
    
    .hero-icon-badge-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Hero Title - Responsive sizing */
    .hero-main-title {
        font-size: 2.25rem !important;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
        margin: 0.5rem 0;
    }
    
    /* Hero Tagline */
    .hero-tagline {
        font-size: 1rem !important;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    /* Hero Description */
    .hero-description {
        font-size: 0.95rem !important;
        text-align: center;
        max-width: 100%;
        line-height: 1.6;
        margin: 0.5rem 0;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        justify-content: center;
    }
    
    /* Hero Stats - Fix overlapping */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 400px;
        margin: 1.5rem 0 0 0;
    }
    
    .hero-stat-card {
        padding: 0.75rem 0.5rem;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(15px);
    }
    
    .hero-stat-card .stat-number {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem;
        line-height: 1;
    }
    
    .hero-stat-card .stat-text {
        font-size: 0.7rem !important;
        line-height: 1.2;
        text-align: center;
    }
    
    /* Full Content Layout */
    .hero-full-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Mobile: Faster animations - Override desktop timing */
    .hero-slide.loaded .hero-icon-badge,
    .hero-slide.loaded .hero-icon-badge-img {
        animation: fadeInUp 0.5s ease-out 0.2s forwards !important;
    }
    
    .hero-slide.loaded .hero-main-title {
        animation: fadeInUp 0.5s ease-out 0.35s forwards !important;
    }
    
    .hero-slide.loaded .hero-tagline {
        animation: fadeInUp 0.5s ease-out 0.5s forwards !important;
    }
    
    .hero-slide.loaded .hero-description {
        animation: fadeInUp 0.5s ease-out 0.65s forwards !important;
    }
    
    .hero-slide.loaded .hero-buttons {
        animation: fadeInUp 0.5s ease-out 0.8s forwards !important;
    }
    
    .hero-slide.loaded .hero-stats {
        animation: fadeInUp 0.5s ease-out 0.95s forwards !important;
    }
    
    /* Scroll Indicator - Hide on mobile devices */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Slide Indicators - Mobile positioning - smaller and less intrusive */
    .slide-indicators {
        right: 8px;
        gap: 6px;
        opacity: 0.4;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slide-indicators.visible {
        opacity: 0.6;
    }
    
    .slide-dot {
        width: 5px;
        height: 12px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .slide-dot.active {
        width: 5px;
        height: 20px;
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

/* Small phones - Extra optimizations */
@media (max-width: 480px) {
    .hero-slide {
        padding: 100px 1rem 60px !important;
    }
    
    .hero-icon-badge,
    .hero-icon-badge-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .hero-main-title {
        font-size: 1.875rem !important;
    }
    
    .hero-tagline {
        font-size: 0.9rem !important;
    }
    
    .hero-description {
        font-size: 0.875rem !important;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        max-width: 100%;
        gap: 0.4rem;
    }
    
    .hero-stat-card {
        padding: 0.625rem 0.375rem;
        min-height: 70px;
    }
    
    .hero-stat-card .stat-number {
        font-size: 1.25rem !important;
    }
    
    .hero-stat-card .stat-text {
        font-size: 0.65rem !important;
    }
    
    .slide-indicators {
        right: 6px;
        gap: 5px;
    }
    
    .slide-dot {
        width: 4px;
        height: 10px;
    }
    
    .slide-dot.active {
        width: 4px;
        height: 16px;
    }
}

/* Extra Small phones */
@media (max-width: 375px) {
    .hero-slide {
        padding: 90px 0.75rem 50px !important;
    }
    
    .hero-main-title {
        font-size: 1.625rem !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    
    .hero-stat-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        min-height: auto;
    }
    
    .hero-stat-card .stat-number {
        font-size: 1.5rem !important;
    }
    
    .hero-stat-card .stat-text {
        font-size: 0.75rem !important;
        text-align: right;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slide {
        min-height: auto;
        padding: 100px 2rem 60px !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-full-content {
        gap: 0.75rem;
    }
}


/* ========================================
   ADVANCED INVENTORY MANAGEMENT MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix inventory CTA section on mobile */
    .inventory-cta-content {
        padding: 0 1rem;
        gap: 1.25rem;
    }
    
    .inventory-cta-content h2 {
        font-size: 1.75rem !important;
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .inventory-cta-content p {
        font-size: 1rem !important;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    /* Fix feature grid - make single column on mobile */
    .inventory-features-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.875rem;
        font-size: 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-item span {
        font-size: 0.875rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
    }
    
    .feature-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    /* Fix button */
    .btn-inventory {
        width: 100% !important;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Ensure container has proper padding */
    .inventory-cta-wrapper {
        padding: 0 1rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .inventory-cta-content h2 {
        font-size: 1.5rem !important;
    }
    
    .inventory-cta-content p {
        font-size: 0.9375rem !important;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-item span {
        font-size: 0.8125rem !important;
    }
}


/* ========================================
   WHO WE SERVE SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix Who We Serve section */
    .who-we-serve-section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    
    /* Fix audience grid - ensure single column */
    .audience-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix audience cards */
    .audience-card {
        padding: 1.75rem 1.25rem !important;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        overflow: visible;
        min-height: auto;
    }
    
    /* Fix icon size */
    .audience-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    /* Fix card title */
    .audience-card h3 {
        font-size: 1.125rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }
    
    /* Fix card description */
    .audience-card p {
        font-size: 0.9375rem !important;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        color: #64748b;
    }
    
    /* Fix cycle badges */
    .cycle-badge {
        font-size: 0.8125rem !important;
        padding: 0.5rem 1rem;
        display: inline-block;
        word-wrap: normal;
        white-space: nowrap;
    }
    
    /* Ensure container doesn't cause overflow */
    .who-we-serve-section .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    /* Fix section header */
    .who-we-serve-section .section-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .who-we-serve-section .section-title {
        font-size: 2rem !important;
    }
    
    .who-we-serve-section .section-subtitle {
        font-size: 1rem !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .audience-card {
        padding: 1.5rem 1rem !important;
    }
    
    .audience-icon {
        font-size: 2.25rem !important;
    }
    
    .audience-card h3 {
        font-size: 1.0625rem !important;
    }
    
    .audience-card p {
        font-size: 0.875rem !important;
    }
    
    .cycle-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.875rem;
    }
    
    .who-we-serve-section .section-title {
        font-size: 1.75rem !important;
    }
}


/* ========================================
   TESTIMONIALS / SUCCESS STORIES - MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix testimonials section */
    .success-section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    
    /* Fix testimonials slider */
    .testimonials-slider {
        overflow-x: hidden;
        padding: 0;
    }
    
    
    
    
    
    /* Fix testimonial content */
    .testimonial-content {
        padding: 2rem 1.5rem !important;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix quote icon */
    .quote-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Fix testimonial text */
    .testimonial-text {
        font-size: 1rem !important;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Fix rating */
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .rating-text {
        font-size: 0.8125rem;
    }
    
    /* Fix author */
    .author-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.8125rem;
    }
    
    .testimonial-author h4 {
        font-size: 1rem !important;
    }
    
    .testimonial-author p {
        font-size: 0.8125rem !important;
    }
    
    /* Fix testimonial metrics section */
    .testimonial-metrics {
        padding: 2rem 1.5rem !important;
        gap: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-metrics h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem;
    }
    
    /* Fix metric items */
    .metric-item {
        padding: 1.25rem 1rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .metric-value {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
    }
    
    .metric-label {
        font-size: 0.8125rem !important;
        width: 100%;
    }
    
    .metric-icon {
        font-size: 1.25rem;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Fix section header */
    .success-section .section-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .success-section .section-title {
        font-size: 2rem !important;
    }
    
    .success-section .section-subtitle {
        font-size: 1rem !important;
    }
    
    /* Fix testimonial indicators */
    .testimonial-indicators {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .testimonial-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(148, 163, 184, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .testimonial-dot.active {
        background: #10b981;
        width: 24px;
        border-radius: 4px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .testimonial-content {
        padding: 1.75rem 1.25rem !important;
        gap: 1.25rem;
    }
    
    .quote-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    .testimonial-text {
        font-size: 0.9375rem !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
        max-height: none !important;
        height: auto !important;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .testimonial-metrics {
        padding: 1.75rem 1.25rem !important;
    }
    
    .metric-item {
        padding: 1.125rem 0.875rem !important;
    }
    
    .metric-value {
        font-size: 1.375rem !important;
    }
    
    .success-section .section-title {
        font-size: 1.75rem !important;
    }
}





/* ========================================
   SUPPLIER NETWORK SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix supplier card */
    .supplier-card {
        padding: 1.5rem !important;
        gap: 1.5rem;
    }
    
    /* Fix supplier info */
    .supplier-info {
        width: 100%;
    }
    
    .supplier-info h4 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .supplier-price {
        font-size: 1.125rem !important;
        margin: 0.5rem 0;
    }
    
    .supplier-description {
        font-size: 0.9375rem !important;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix supplier features - CRITICAL FIX */
    .supplier-features {
        gap: 0.75rem;
        width: 100%;
    }
    
    .supplier-features .feature-item {
        padding: 0.875rem 1rem !important;
        gap: 0.75rem;
        font-size: 0.9375rem !important;
        width: 100%;
        box-sizing: border-box;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .supplier-features .feature-item span:not(.feature-check) {
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    .supplier-features .feature-check {
        background: #10b981 !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    /* Fix button */
    .btn-supplier {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    /* Ensure supplier icon is properly sized */
    .supplier-icon {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .supplier-card {
        padding: 1.25rem !important;
    }
    
    .supplier-info h4 {
        font-size: 1.375rem !important;
    }
    
    .supplier-price {
        font-size: 1.0625rem !important;
    }
    
    .supplier-description {
        font-size: 0.875rem !important;
    }
    
    .supplier-features .feature-item {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    .supplier-features .feature-check {
        background: #10b981 !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 0.6875rem !important;
        font-weight: 700 !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    .btn-supplier {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    .supplier-icon {
        font-size: 2.5rem;
    }
}


/* ========================================
   CONTACT US SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix contact section */
    .contact-section {
        padding: 3rem 0;
    }
    
    /* Fix contact grid */
    .contact-grid {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    /* Fix contact form container */
    .contact-form-container {
        padding: 2rem 1.5rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container h3 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-form-container > p {
        font-size: 0.9375rem !important;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix form - CRITICAL: Single column on mobile */
    .contact-form .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        grid-template-columns: none !important;
        width: 100%;
    }
    
    /* Fix form groups */
    .contact-form .form-group {
        margin-bottom: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form .form-group label {
        font-size: 0.9375rem !important;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    /* Fix inputs */
    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .contact-form .form-group select {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
    }
    
    .contact-form .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Fix submit button */
    .contact-form .btn-submit {
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* Fix contact info */
    .contact-info {
        padding: 2rem 1.5rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info h3 {
        font-size: 1.5rem !important;
    }
    
    .contact-info > p {
        font-size: 0.9375rem !important;
    }
    
    /* Fix contact cards grid */
    .contact-cards-grid {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-card {
        width: 100%;
        padding: 1.5rem !important;
        box-sizing: border-box;
    }
    
    .contact-card h4 {
        font-size: 1.125rem !important;
    }
    
    .contact-link {
        font-size: 1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix hidden field */
    .hidden-field {
        display: none;
    }
    
    .hidden-field.show {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.75rem 1.25rem !important;
    }
    
    .contact-form-container h3 {
        font-size: 1.375rem !important;
    }
    
    .contact-form .form-group {
        margin-bottom: 1.125rem;
    }
    
    .contact-form .form-group label {
        font-size: 0.875rem !important;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .contact-form .form-group select {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9375rem !important;
    }
    
    .contact-info {
        padding: 1.75rem 1.25rem !important;
    }
    
    .contact-card {
        padding: 1.25rem !important;
    }
}


/* ========================================
   NEWSLETTER / SUBSCRIBE SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 768px) {
    /* Fix newsletter section */
    .newsletter-section {
        padding: 3rem 1rem;
    }
    
    /* Fix newsletter container */
    .newsletter-container {
        padding: 2.5rem 1.5rem !important;
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix newsletter header */
    .newsletter-section h2,
    .newsletter-container h2 {
        font-size: 1.75rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-section p,
    .newsletter-container > p {
        font-size: 0.9375rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    /* Fix newsletter form - CRITICAL: Single column layout */
    .newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix form inputs */
    .newsletter-form input[type="text"],
    .newsletter-form input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 8px;
        word-wrap: normal;
        overflow-wrap: normal;
    }
    
    /* Fix submit button */
    .newsletter-form button[type="submit"],
    .newsletter-form .btn-newsletter {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        justify-content: center;
        text-align: center;
        margin-top: 0.25rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .newsletter-section {
        padding: 2.5rem 0.875rem;
    }
    
    .newsletter-container {
        padding: 2rem 1.25rem !important;
    }
    
    .newsletter-section h2,
    .newsletter-container h2 {
        font-size: 1.5rem !important;
    }
    
    .newsletter-section p,
    .newsletter-container > p {
        font-size: 0.875rem !important;
    }
    
    .newsletter-form input[type="text"],
    .newsletter-form input[type="email"] {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9375rem !important;
    }
    
    .newsletter-form button[type="submit"],
    .newsletter-form .btn-newsletter {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
}


/* ========================================
   TESTIMONIAL SCROLL ANIMATIONS - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Testimonial cards - Always visible on mobile/tablet */
    .testimonial-card {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure testimonial content is readable */
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .testimonial-metrics {
        padding: 15px;
        margin-top: 15px;
    }
    
    .metric-item {
        margin-bottom: 10px;
    }
}

/* Tablet screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 20px;
        width: 100%;
    }
    
    
}


/* ========================================
   TABLET / LANDSCAPE MODE - HERO TITLE FIX
   Screens 769px - 1024px (iPad, landscape phones)
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Fix hero title overflow on tablets */
    .hero-main-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    /* Adjust tagline */
    .hero-tagline {
        font-size: 1.125rem !important;
        max-width: 90%;
        margin: 0.5rem auto;
    }
    
    /* Adjust description */
    .hero-description {
        font-size: 1rem !important;
        max-width: 85%;
        margin: 0.5rem auto;
        line-height: 1.6;
    }
    
    /* Adjust icon badge */
    .hero-icon-badge,
    .hero-icon-badge-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Adjust buttons */
    .hero-buttons {
        max-width: 450px;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

/* Extra adjustment for smaller tablets/large phones in landscape */
@media (min-width: 769px) and (max-width: 900px) {
    .hero-main-title {
        font-size: 2.25rem !important;
    }
    
    .hero-tagline {
        font-size: 1.0625rem !important;
    }
    
    .hero-description {
        font-size: 0.9375rem !important;
    }
}

/* Very narrow landscape (like 769x904 portrait-ish) */
@media (min-width: 769px) and (max-width: 850px) {
    .hero-main-title {
        font-size: 2rem !important;
        max-width: 100%;
    }
}


/* ========================================
   ABOUT SECTION - TEXT OVERFLOW FIX
   ======================================== */

/* Fix for all screen sizes */
.about-section .section-subtitle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

.about-section .section-header {
    padding: 0 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.about-section .section-title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Tablet and mobile specific */
@media (max-width: 1024px) {
    .about-section .section-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
        padding: 0 1.5rem !important;
    }
    
    .about-section .section-header {
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .about-section .section-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .about-section .section-header {
        padding: 0 1rem !important;
    }
}


/* ========================================
   CONTACT FORM - HIDDEN FIELD FIX
   ======================================== */

/* Hide the "Specify Business Type" field by default */
.hidden-field,
#contactOtherBusinessType {
    display: none !important;
}

/* Show when JavaScript sets display: block */
.hidden-field[style*="display: block"],
#contactOtherBusinessType[style*="display: block"] {
    display: block !important;
}
/* Additional mobile fixes for supplier section */
@media (max-width: 768px) {
    .supplier-section {
        margin-top: 2rem !important;
        padding: 0 !important;
    }
    
    .supplier-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .supplier-header h3 {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem;
    }
    
    .supplier-header p {
        font-size: 1rem !important;
    }
    
    .supplier-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Ensure no horizontal overflow */
    .supplier-features,
    .supplier-card,
    .supplier-info {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .supplier-header h3 {
        font-size: 1.5rem !important;
    }
    
    .supplier-header p {
        font-size: 0.9375rem !important;
    }
}
/* Fix for "Receive & Sell Products" step card on mobile */
@media (max-width: 768px) {
    .step-card-special {
        padding: 1.5rem !important;
    }
    
    .step-features-special {
        gap: 0.75rem;
        width: 100%;
    }
    
    .step-features-special .feature-item {
        padding: 0.875rem 1rem !important;
        gap: 0.75rem;
        font-size: 0.9375rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .step-features-special .feature-check {
        background: #10b981 !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step-icon {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .step-card-special {
        padding: 1.25rem !important;
    }
    
    .step-features-special .feature-item {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    .step-features-special .feature-check {
        background: #10b981 !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 0.6875rem !important;
        font-weight: 700 !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    .step-icon {
        font-size: 2.5rem !important;
    }
}
