/* ========================================
   MOBILE RESPONSIVE STYLES
   TritonFilters Website
   Cross-browser compatible (Chrome, Safari,
   Firefox, Edge, Samsung Internet, iOS Safari)
   ======================================== */

/* ==========================================
   GLOBAL CROSS-BROWSER FIXES
   ========================================== */

/* Fix iOS Safari 100vh issue (address bar) */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Smooth scrolling with fallback */
@supports (scroll-behavior: smooth) {
    html { scroll-behavior: smooth; }
}

/* Fix iOS tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Phone links: not clickable on desktop */
@media (min-width: 769px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
        text-decoration: none;
    }
}

/* Fix image rendering across browsers */
img {
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
}

/* Fix box-sizing for all browsers */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* ==========================================
   TABLET STYLES (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {

    /* --- SHARED HEADER (all pages) --- */
    .header-phone > span,
    .header-phone span.font-medium,
    .header-phone span {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    a.header-phone,
    .header-phone {
        padding: 0.625rem !important;
        background: #193462 !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        font-size: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .header-phone i,
    .header-phone svg {
        color: white !important;
        margin: 0 !important;
        margin-right: 0 !important;
        width: 20px !important;
        height: 20px !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        font-size: 20px !important;
    }
    body:has(#hero) .header:not(.scrolled) a.header-phone,
    body:has(#hero) .header:not(.scrolled) .header-phone {
        background: rgba(255,255,255,0.25) !important;
    }
    body:has(#hero) .header:not(.scrolled) .header-phone i,
    body:has(#hero) .header:not(.scrolled) .header-phone svg {
        color: white !important;
    }

    /* --- INDEX.HTML: Hero --- */
    .hero-container { padding: 5rem 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-text { font-size: 1.25rem !important; }

    /* --- Cross-browser video base (tablet) --- */
    video,
    .hero-video,
    .full-video {
        width: 100% !important;
        height: 100% !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        /* Hardware acceleration for smooth playback */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* iOS Safari: prevent video from going fullscreen */
    video::-webkit-media-controls-start-playback-button {
        display: none !important;
        -webkit-appearance: none;
    }
    video::-webkit-media-controls {
        display: none !important;
    }

    /* Hero video section — fix height on mobile browsers */
    .hero-wrapper {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-height: -webkit-fill-available !important;
    }
    .hero-bg {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
    }
    .hero-bg video,
    .hero-bg .hero-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        -webkit-transform: translate(-50%, -50%) !important;
        transform: translate(-50%, -50%) !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: auto !important;
        height: auto !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
    }

    /* Second video section — proper sizing for tablet/mobile */
    .second-video-section {
        position: relative !important;
        width: 100% !important;
        min-height: 70vh !important;
        min-height: 70dvh !important;
        height: auto !important;
        overflow: hidden !important;
    }
    .second-video-section .video-bg {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
        z-index: 0 !important;
    }
    .second-video-section .full-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        -webkit-transform: translate(-50%, -50%) !important;
        transform: translate(-50%, -50%) !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: auto !important;
        height: auto !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
    }
    .second-video-section .video-overlay {
        position: relative !important;
        z-index: 10 !important;
        min-height: 70vh !important;
        min-height: 70dvh !important;
    }



    /* --- INDEX.HTML: Video Section Layout --- */
    .video-content-wrapper {
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 2rem !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }
    .second-video-section .video-text {
        text-align: center !important;
        font-size: 1.5rem !important;
        max-width: 100% !important;
    }
    .video-features-list {
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .video-feature-item {
        -webkit-flex: 1 1 calc(50% - 1rem) !important;
        flex: 1 1 calc(50% - 1rem) !important;
        min-width: 180px !important;
        max-width: calc(50% - 0.5rem) !important;
    }

    /* --- INDEX.HTML: Features & Layout --- */
    .features-grid { grid-template-columns: 1fr; gap: 2rem; }
    .features-image { -webkit-order: -1; order: -1; max-height: 300px; }
    .features-list { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }

    /* --- FOOTER: Tablet — reduce gap between columns --- */
    .footer-columns {
        gap: 2rem !important;
    }

    /* --- SECONDARY PAGES: Content area --- */
    .blog-layout,
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-sidebar {
        -webkit-order: 2;
        order: 2;
    }

    /* --- SECONDARY PAGES: FAQ --- */
    .faq-container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    /* --- SECONDARY PAGES: Price table --- */
    .price-table {
        font-size: 0.9rem;
    }
    .price-table th,
    .price-table td {
        padding: 0.75rem 1rem;
    }
}


/* ==========================================
   MOBILE STYLES (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

    /* --- SHARED: Section defaults --- */
    .section { padding-top: 3rem; padding-bottom: 3rem; }
    .section-header { margin-bottom: 2rem; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* --- Water Comparison Section (compact mobile) --- */
    #water-comparison {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        background-image: none !important;
        background-color: #0a0a0a !important;
    }
    #water-comparison .section-header {
        margin-bottom: 0.6rem !important;
    }
    #water-comparison .section-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }
    #water-comparison .section-title {
        font-size: 1rem !important;
        margin-bottom: 0.15rem !important;
    }
    #water-comparison .section-subtitle {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }
    #water-comparison .comparison-grid {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        grid-template-columns: 1fr 1fr !important;
    }
    #water-comparison .comparison-grid > div {
        padding: 0.6rem 0.5rem !important;
        border-radius: 0.6rem !important;
    }
    #water-comparison .comparison-grid h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0.15rem !important;
    }
    #water-comparison .comparison-grid p,
    #water-comparison .comparison-grid span {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
    }
    #water-comparison .comparison-grid p[id="bottled-yearly"],
    #water-comparison .comparison-grid p[id="filter-yearly"] {
        font-size: 1.15rem !important;
    }
    #water-comparison .comparison-grid p[id="bottled-count"],
    #water-comparison .comparison-grid p[id="filter-type"] {
        font-size: 0.75rem !important;
    }
    #water-comparison .comparison-grid p[id="plastic-kg"] {
        font-size: 0.7rem !important;
    }
    #water-comparison .comparison-grid > div > div {
        margin-bottom: 0.2rem !important;
    }
    #water-comparison #savings-banner {
        padding: 0.4rem 0.5rem !important;
    }
    #water-comparison #savings-banner p:first-child {
        font-size: 0.65rem !important;
        margin-bottom: 0.15rem !important;
        letter-spacing: 0.1em !important;
    }
    #water-comparison #savings-amount {
        font-size: 1.75rem !important;
    }
    #water-comparison #savings-banner p:last-child {
        font-size: 0.65rem !important;
        margin-top: 0.15rem !important;
    }
    #water-comparison .animate-on-scroll > div:first-child {
        padding: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }
    #water-comparison .animate-on-scroll > div:first-child label {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    #water-comparison .animate-on-scroll > p:last-child {
        font-size: 0.55rem !important;
        margin-top: 0.35rem !important;
    }

    /* --- SHARED: Header Mobile (ALL pages) --- */
    .header-inner {
        height: 3.5rem !important;
        padding: 0.25rem 0 !important;
    }
    .logo {
        gap: 0.5rem !important;
    }
    .header-logo-img {
        height: 32px !important;
        width: auto !important;
    }
    .logo-text {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    .logo-text span {
        font-size: 1.1rem !important;
    }

    /* Header Right */
    .header-right {
        gap: 0.5rem !important;
    }
    .header-actions {
        gap: 0.5rem !important;
    }
    a.header-phone,
    .header-phone {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0.4rem !important;
    }
    .header-phone i,
    .header-phone svg {
        width: 16px !important;
        height: 16px !important;
    }
    .mobile-menu-btn {
        -webkit-transform: scale(0.9) !important;
        -ms-transform: scale(0.9) !important;
        transform: scale(0.9) !important;
        padding: 0.25rem !important;
    }
    .mobile-menu-btn i,
    .mobile-menu-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Header CTA - hide on mobile */
    .header-cta {
        display: none !important;
    }


    /* --- SHARED: Mobile Menu (ALL pages) --- */
    .mobile-menu-panel {
        width: 100% !important;
        max-width: 100% !important;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-menu-header { -webkit-flex-shrink: 0; flex-shrink: 0; }
    .mobile-nav {
        -webkit-flex: 1;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav-link,
    .mobile-nav a {
        font-size: 1rem;
        padding: 0.75rem 0;
        min-height: 44px;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
    }
    .mobile-menu-cta {
        margin-top: 1rem;
    }

    /* ============================================
       FOOTER MOBILE - Complete rewrite
       Problem: desktop uses position:absolute overlay
       on SVG wave. On mobile stacked layout that
       causes overlapping. Fix: switch to relative
       positioning with solid black background so
       content flows naturally.
       ============================================ */

    /* Footer wrapper */
    .footer {
        min-height: auto !important;
        padding: 2rem 0 0 !important;
        background-size: cover !important;
        background-position: center top !important;
        background-color: #020405 !important;
    }
    .footer::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: rgba(2, 4, 5, 0.92) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    .footer > .container,
    .footer-wave-wrapper,
    .footer-content-overlay {
        position: relative !important;
        z-index: 2 !important;
    }

    /* Logo + tagline area above the wave */
    .footer > .container {
        padding-bottom: 1rem !important;
    }
    .footer > .container > div[style*="margin-bottom: 3rem"] {
        margin-bottom: 0.5rem !important;
    }
    .footer-logo img {
        height: 30px !important;
    }
    .footer .testimonial-content {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* Wave wrapper — remove overflow:hidden so relative
       content can flow, and reset line-height */
    .footer-wave-wrapper {
        overflow: visible !important;
        line-height: normal !important;
    }

    /* Make the SVG wave shorter — just the decorative part */
    .footer-wave-svg {
        height: 60px !important;
        min-height: 60px !important;
    }

    /* KEY FIX: switch from absolute to relative position
       so the content flows naturally below the wave.
       Give it a solid black background to continue
       the wave's gradient seamlessly. */
    .footer-content-overlay {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        background: transparent !important;
        padding: 2rem 1rem 1.5rem !important;
        line-height: 1.5 !important;
    }

    /* Single column grid */
    .footer-columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    /* Footer section titles */
    .footer-title {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.75rem !important;
    }

    /* Footer links list — proper spacing */
    .footer-links {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        gap: 0 !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-links li {
        margin-bottom: 0.6rem !important;
        padding: 0 !important;
        line-height: 1.6 !important;
    }

    .footer-link,
    .footer-links a {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        display: block !important;
        padding: 0.2rem 0 !important;
        text-decoration: none !important;
    }

    .footer-links span,
    .footer-links .stat-label {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        display: block !important;
        padding: 0.1rem 0 !important;
    }

    /* Footer contact items */
    .footer-contact-item {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        gap: 0.6rem !important;
        margin-bottom: 0.4rem !important;
    }
    .footer-contact-icon {
        width: 1.1rem !important;
        height: 1.1rem !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Footer bottom bar */
    .footer-bottom {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255,255,255,0.15) !important;
    }
    .footer-copyright {
        font-size: 0.8rem !important;
        text-align: center !important;
    }

    /* --- INDEX.HTML: Hero Mobile --- */
    .hero-wrapper {
        min-height: 70vh !important;
        min-height: 70dvh !important;
    }
    .hero-container {
        padding: 3.5rem 1rem 3rem 1rem !important;
        -webkit-justify-content: flex-end !important;
        justify-content: flex-end !important;
    }
    .hero-content {
        text-align: left !important;
        padding: 0 0.5rem !important;
    }
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    .hero-text {
        font-size: 1.15rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.5 !important;
    }
    .hero-buttons {
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-align-items: stretch;
        align-items: stretch;
        -webkit-justify-content: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
        margin-top: 3.5rem !important;
    }
    .hero-buttons .btn {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        width: 100% !important;
        max-width: none !important;
        text-align: center !important;
        border-radius: 9999px !important;
    }
    .hero-stats {
        -webkit-justify-content: center;
        justify-content: center;
        gap: 1rem;
    }
    .hero-stat-number { font-size: 1.25rem; }
    .hero-stat-divider { padding-left: 1rem; }

    /* --- INDEX.HTML: Brands Mobile --- */
    .brands-section {
        padding: 3rem 0 !important;
        min-height: 180px !important;
    }
    .brands-title {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .brand-logo {
        height: 3rem !important;
    }
    .brands-list {
        gap: 2.5rem !important;
        padding: 0 1rem !important;
    }
    .brands-container {
        padding: 0 !important;
    }

    /* --- INDEX.HTML: Hero Video Mobile --- */
    .hero-wrapper {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-height: -webkit-fill-available !important;
    }
    .hero-bg video,
    .hero-bg .hero-video {
        /* Center-crop for portrait screens */
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        -webkit-transform: translate(-50%, -50%) !important;
        transform: translate(-50%, -50%) !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: 177.78vh !important; /* 16:9 ratio for portrait coverage */
        height: auto !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
    }

    /* --- INDEX.HTML: Second Video Section Mobile --- */
    .second-video-section {
        position: relative !important;
        height: auto !important;
        min-height: 60vh !important;
        min-height: 60dvh !important;
        overflow: hidden !important;
    }
    .second-video-section .video-bg {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
    }
    .second-video-section .full-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        -webkit-transform: translate(-50%, -50%) !important;
        transform: translate(-50%, -50%) !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: 177.78vh !important;
        height: auto !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
    }
    .second-video-section .video-overlay {
        position: relative !important;
        inset: auto !important;
        padding: 2rem 0 !important;
        z-index: 10 !important;
        min-height: 60vh !important;
        min-height: 60dvh !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
    }
    .video-content-wrapper {
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        padding: 1.5rem 1rem !important;
        gap: 1.5rem !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }
    .second-video-section .video-text {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    .second-video-section .video-text p {
        font-size: 0.85rem !important;
    }
    .second-video-section h2.video-text {
        font-size: 1.1rem !important;
    }
    .video-features-list {
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .video-feature-item {
        -webkit-flex: none !important;
        flex: none !important;
        width: auto !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 0.6rem 1.2rem !important;
        -webkit-backdrop-filter: blur(8px) !important;
        backdrop-filter: blur(8px) !important;
        text-align: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
    }
    .video-feature-icon {
        width: 2rem !important;
        height: 2rem !important;
    }
    .video-feature-icon i,
    .video-feature-icon svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    .video-feature-title {
        font-size: 0.8rem !important;
    }
    .video-feature-text {
        font-size: 0.7rem !important;
    }

    /* --- INDEX.HTML: Promo Bar --- */
    .promo-bar { font-size: 0.75rem; padding: 0.5rem 2.5rem 0.5rem 0.5rem; }
    .promo-bar p { line-height: 1.4; }
    .promo-bar a { display: block; margin-left: 0; margin-top: 0.25rem; }

    /* --- INDEX.HTML: Features --- */
    .features-bar { padding: 2.5rem 0; }
    .features-list { grid-template-columns: 1fr; gap: 1.25rem; }
    .feature-item { gap: 0.75rem; }
    .feature-item-icon { width: 3rem; height: 3rem; }
    .feature-item-icon i { width: 1.5rem; height: 1.5rem; }
    .feature-item-title { font-size: 0.9rem; }
    .feature-item-text { font-size: 0.75rem; }
    .features-image { max-height: 250px; }

    /* --- INDEX.HTML: Services Cards --- */
    .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
    .card { padding: 1.25rem; }
    .card img { height: 200px !important; }
    .card-title { font-size: 1.1rem; }


    .card-text { font-size: 0.85rem; }
    .card ul li { font-size: 0.8rem !important; }

    /* --- EIDI-VRYSIS.HTML: Faucets Page --- */
    .faucet-hero { height: 220px !important; }
    .faucet-hero h1 { font-size: 1.75rem !important; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    .product-card-img { height: 180px !important; padding: 1rem !important; }
    .product-card-flip .product-card-img-back { padding: 1rem !important; }

    /* --- INDEX.HTML: Parallax Section - Keep parallax on mobile --- */
    .parallax-section {
        min-height: 300px !important;
        padding: 3rem 0 !important;
    }
    .parallax-section h3 {
        font-size: 1.25rem !important;
    }
    .parallax-section li {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    .parallax-section p {
        font-size: 1rem !important;
    }
    .parallax-section > .container > div {
        padding: 1.5rem 1rem !important;
    }

    /* --- INDEX.HTML: Process Steps (Left-aligned Stepper) --- */
    #process .grid-4 {
        gap: 0 !important;
    }

    #process .grid-4 > .text-center {
        display: -ms-grid;
        display: grid;
        grid-template-columns: 3rem 1fr;
        -ms-grid-columns: 3rem 1fr;
        grid-template-rows: auto auto;
        gap: 0.15rem 1rem;
        text-align: left !important;
        position: relative;
        padding-bottom: 2rem;
    }

    #process .grid-4 > .text-center:last-child {
        padding-bottom: 0;
    }

    /* Step number - left column, spans both rows */
    #process .grid-4 > .text-center .step-number {
        grid-column: 1;
        -ms-grid-column: 1;
        grid-row: 1 / 3;
        -ms-grid-row-span: 2;
        -webkit-align-self: start;
        align-self: start;
        margin: 0 !important;
        position: relative;
        z-index: 1;
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        font-size: 1.25rem;
    }

    /* Title - right column, row 1 */
    #process .grid-4 > .text-center .step-title {
        grid-column: 2;
        -ms-grid-column: 2;
        grid-row: 1;
        -ms-grid-row: 1;
        font-size: 1rem;
        margin-top: 0.35rem;
    }

    /* Text - right column, row 2 */
    #process .grid-4 > .text-center .step-text {
        grid-column: 2;
        -ms-grid-column: 2;
        grid-row: 2;
        -ms-grid-row: 2;
        font-size: 0.8rem;
    }

    /* Vertical connecting line between step numbers */
    #process .grid-4 > .text-center:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 1.5rem; /* center of 3rem step-number */
        top: 3rem; /* bottom of step-number circle */
        bottom: 0;
        width: 2px;
        background: rgba(25, 52, 98, 0.25);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        z-index: 0;
    }

    /* --- INDEX.HTML: About Section - Mobile background --- */
    #about {
        background-image: url('images/about-mobile.webp') !important;
        background-position: center !important;
        background-size: cover !important;
    }

    /* --- INDEX.HTML: Why Us / Stats --- */
    .why-title { font-size: 1.5rem; }
    .why-text { font-size: 0.9rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-box { padding: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }

    /* --- INDEX.HTML: Pricing Section --- */
    #pricing .section-header h2 { font-size: 1.5rem; }
    #pricing .grid-4 .card { padding: 1.25rem !important; }
    #pricing .card h3 { font-size: 1rem; }
    .installation-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    .installation-grid > div {
        padding: 1rem !important;
    }
    .installation-grid img {
        height: 60px !important;
    }
    .installation-grid h4 {
        font-size: 0.85rem !important;
    }
    .installation-grid p[style*="font-size: 1.5rem"] {
        font-size: 1.1rem !important;
    }
    .installation-grid > div > p:last-child {
        padding-bottom: 0.75rem !important;
    }

    /* --- INDEX.HTML: Contact Section --- */
    #contact { padding: 3rem 0 !important; background-color: #020405 !important; }
    #contact .grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    #contact h2 { font-size: 1.5rem !important; }
    #contact p { font-size: 0.9rem; }
    #contact form { padding: 1.5rem !important; }
    #contact form input,
    #contact form textarea { padding: 0.75rem !important; font-size: 0.9rem; }
    #contact form button { padding: 0.875rem !important; font-size: 0.9rem; }

    /* ===========================================
       SECONDARY PAGES - Mobile Styles
       (FAQ, Blog, Οδηγός, Τιμοκατάλογος, Όροι)
       =========================================== */

    /* --- SECONDARY: Page Hero/Banner --- */
    .page-hero,
    .hero-mini {
        padding: 5rem 1rem 2rem !important;
        min-height: auto !important;
    }
    .page-hero h1,
    .hero-mini h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    .page-hero p,
    .hero-mini p {
        font-size: 0.9rem !important;
    }

    /* --- SECONDARY: FAQ & Guide Hero (image-based) --- */
    .faq-hero,
    .guide-hero {
        height: 220px !important;
    }
    .faq-hero-title {
        font-size: 1.75rem !important;
    }
    .faq-hero-text {
        font-size: 0.9rem !important;
    }

    /* --- SECONDARY: Breadcrumb --- */
    .breadcrumb {
        font-size: 0.75rem !important;
        padding: 0.5rem 0 !important;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    /* --- SECONDARY: Content containers --- */
    .content-container,
    .page-content,
    .article-content {
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
    }

    /* --- FAQ CAROUSEL (index.html) --- */
    .faq-slide {
        flex: 0 0 calc((100% - 2rem) / 2) !important;
        height: 240px !important;
    }
    .faq-carousel-container {
        padding: 0 1rem !important;
    }
    .faq-carousel-track {
        gap: 1rem !important;
    }
    .faq-slide-content {
        padding: 1.25rem !important;
    }
    .faq-slide-content h3 {
        font-size: 1.05rem !important;
    }
    .faq-slide-content p {
        font-size: 0.8rem !important;
    }

    /* --- FAQ PAGE --- */
    .faq-container {
        padding: 0 0.75rem !important;
    }
    .faq-item,
    .faq-card {
        margin-bottom: 0.75rem !important;
    }
    .faq-question {
        font-size: 0.95rem !important;
        padding: 1rem !important;
    }
    .faq-question h3,
    .faq-question span {
        font-size: 0.95rem !important;
    }
    .faq-answer {
        padding: 0 !important;
    }
    .faq-answer-content {
        font-size: 0.85rem !important;
        padding: 0 1rem 1rem !important;
        line-height: 1.6 !important;
    }
    .faq-category-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* --- BLOG PAGES --- */
    .blog-layout,
    .blog-grid,
    .article-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .blog-sidebar,
    .article-sidebar {
        -webkit-order: 2;
        order: 2;
    }
    .blog-hero,
    .article-hero {
        padding: 5rem 1rem 2rem !important;
        min-height: auto !important;
    }
    .blog-hero h1,
    .article-hero h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    .blog-meta,
    .article-meta {
        font-size: 0.75rem !important;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    .blog-content h2,
    .article-content h2 {
        font-size: 1.25rem !important;
        margin-top: 1.5rem !important;
    }
    .blog-content h3,
    .article-content h3 {
        font-size: 1.1rem !important;
    }
    .blog-content p,
    .article-content p {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }
    .blog-content img,
    .article-content img {
        border-radius: 0.75rem !important;
        margin: 1rem 0 !important;
    }
    .blog-content ul li,
    .article-content ul li,
    .blog-content ol li,
    .article-content ol li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.35rem !important;
    }

    /* Blog cards (guide cards) */
    .guide-card,
    .blog-card {
        padding: 1.25rem !important;
        border-radius: 0.875rem !important;
    }
    .guide-card-title {
        font-size: 1.05rem !important;
    }
    .guide-card-content p {
        font-size: 0.85rem !important;
    }
    .guide-card-content h4 {
        font-size: 1rem !important;
    }
    .guide-card-content ul li {
        font-size: 0.85rem !important;
    }

    /* TOC - Table of Contents */
    .toc-section,
    .toc-box {
        padding: 1.25rem !important;
    }
    .toc-list {
        grid-template-columns: 1fr !important;
    }
    .toc-list li a {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Related links */
    .related-links,
    .related-articles {
        grid-template-columns: 1fr !important;
    }

    /* --- PRICE LIST PAGE --- */
    .price-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }
    .price-table {
        min-width: 500px;
        font-size: 0.8rem !important;
    }
    .price-table th {
        font-size: 0.75rem !important;
        padding: 0.75rem 0.5rem !important;
        white-space: nowrap;
    }
    .price-table td {
        font-size: 0.8rem !important;
        padding: 0.625rem 0.5rem !important;
    }
    .price-table th:first-child,
    .price-table td:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }
    .price-note,
    .price-disclaimer {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
    }

    /* --- TERMS PAGE --- */
    .content-box,
    .terms-content {
        padding: 1.25rem !important;
        border-radius: 0.875rem !important;
    }
    .content-box h2,
    .terms-content h2 {
        font-size: 1.2rem !important;
        margin-top: 1.25rem !important;
    }
    .content-box h3,
    .terms-content h3 {
        font-size: 1.05rem !important;
    }
    .content-box p,
    .terms-content p {
        font-size: 0.85rem !important;
        line-height: 1.7 !important;
    }
    .content-box ul li,
    .terms-content ul li,
    .content-box ol li,
    .terms-content ol li {
        font-size: 0.85rem !important;
        margin-bottom: 0.35rem !important;
    }

    /* --- SECONDARY: CTA boxes --- */
    .cta-box,
    .cta-section {
        padding: 1.5rem 1rem !important;
        border-radius: 0.875rem !important;
        text-align: center !important;
    }
    .cta-box h2,
    .cta-section h2 {
        font-size: 1.25rem !important;
    }
    .cta-box p,
    .cta-section p {
        font-size: 0.85rem !important;
    }
    .cta-box .btn,
    .cta-section .btn {
        font-size: 0.85rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* --- SECONDARY: Author/Info boxes --- */
    .author-box,
    .info-box,
    .highlight-box {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    .author-box img {
        width: 50px !important;
        height: 50px !important;
    }

    /* --- SECONDARY PAGES: Footer (site-footer) --- */
    .site-footer {
        padding: 2rem 0 0 !important;
    }
    .site-footer .footer-columns,
    .site-footer [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .site-footer [style*="max-width: 1000px"] {
        padding: 0 1rem !important;
    }
    .site-footer .footer-title,
    .site-footer h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    .site-footer a {
        font-size: 0.9rem !important;
    }
    .site-footer .footer-bottom,
    .site-footer [style*="border-top"] {
        margin-top: 1.5rem !important;
        padding: 1rem 0 !important;
        text-align: center !important;
    }
    .site-footer .footer-copyright,
    .site-footer [style*="font-size: 0.875rem"] {
        font-size: 0.8rem !important;
    }
    /* Reposition footer watermark on mobile */
    .site-footer > div[style*="position: absolute"] {
        display: block !important;
        right: auto !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 280px !important;
        height: 280px !important;
        opacity: 0.06 !important;
    }

    /* --- SECONDARY PAGES: Sidebars on mobile --- */
    .guide-sidebar,
    .faq-sidebar {
        display: none !important;
    }
    .guide-layout,
    .faq-layout {
        grid-template-columns: 1fr !important;
    }

}


/* ==========================================
   SMALL MOBILE STYLES (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }

    .header-logo-img { height: 38px; }
    .logo-text { font-size: 1.25rem; }

    /* Index Hero */
    .hero-title { font-size: 1.85rem !important; }
    .hero-text { font-size: 1.05rem !important; }
    .hero-buttons .btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.25rem !important;
    }

    /* Brands */
    .brand-logo { height: 2.5rem !important; }
    .brands-list { gap: 2rem !important; }

    /* Sections */
    .section-title { font-size: 1.25rem; }
    .section-badge { font-size: 0.75rem; padding: 0.375rem 0.75rem; }

    /* --- EIDI-VRYSIS.HTML: Faucets - Small Mobile --- */
    .faucet-hero { height: 180px !important; }
    .faucet-hero h1 { font-size: 1.4rem !important; }
    .product-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
    .product-card-img { height: 220px !important; }

    /* Pricing - Installation cards on small mobile */
    .installation-grid {
        gap: 0.5rem !important;
    }
    .installation-grid > div {
        min-height: 160px !important;
    }
    .installation-grid h4 {
        font-size: 0.8rem !important;
    }
    .installation-grid p[style*="font-size: 1.5rem"] {
        font-size: 1rem !important;
    }
    .installation-grid p[style*="font-size: 0.8rem"] {
        font-size: 0.7rem !important;
    }

    /* Video - Small Mobile */
    .hero-wrapper {
        min-height: 85vh !important;
        min-height: 85dvh !important;
    }
    .second-video-section {
        min-height: 50vh !important;
        min-height: 50dvh !important;
    }
    .second-video-section .video-overlay {
        min-height: 50vh !important;
        min-height: 50dvh !important;
    }
    .video-content-wrapper { padding: 1rem !important; gap: 1rem !important; }
    .second-video-section h2.video-text { font-size: 0.95rem !important; }
    .second-video-section .video-text { font-size: 0.85rem !important; }
    .second-video-section .video-text p { font-size: 0.75rem !important; }
    .video-feature-item { padding: 0.5rem 0.6rem !important; gap: 0.5rem !important; }
    .video-feature-icon { width: 1.5rem !important; height: 1.5rem !important; }
    .video-feature-icon i,
    .video-feature-icon svg { width: 0.75rem !important; height: 0.75rem !important; }
    .video-feature-title { font-size: 0.7rem !important; }
    .video-feature-text { font-size: 0.6rem !important; }

    /* Cards */
    .card img { height: 120px !important; }
    .card-title { font-size: 1rem; }

    /* Stats */
    .stats-grid { gap: 0.5rem; }
    .stat-number { font-size: 1.25rem; }
    .stat-box { padding: 0.75rem; }

    /* Contact */
    #contact .grid { gap: 1.5rem !important; }
    #contact form { padding: 1rem !important; }

    /* Why Us */
    .why-item {
        -webkit-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    .why-item-icon { margin: 0 auto; }

    /* Footer - even smaller screens */
    .footer-content-overlay {
        padding: 1.5rem 0.75rem 1rem !important;
    }
    .footer-columns {
        gap: 1.5rem !important;
        padding: 0 0.75rem !important;
    }
    .footer-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    .footer-links li {
        margin-bottom: 0.45rem !important;
    }
    .footer-link,
    .footer-links a {
        font-size: 0.85rem !important;
    }
    .footer-links span,
    .footer-links .stat-label {
        font-size: 0.85rem !important;
    }
    .footer-copyright {
        font-size: 0.7rem !important;
    }

    /* --- SECONDARY PAGES: Smaller screens --- */
    .faq-hero,
    .guide-hero {
        height: 180px !important;
    }
    .faq-hero-title {
        font-size: 1.4rem !important;
    }
    .faq-hero-text {
        font-size: 0.8rem !important;
    }
    .page-hero h1,
    .hero-mini h1,
    .blog-hero h1,
    .article-hero h1 {
        font-size: 1.25rem !important;
    }
    /* FAQ Carousel */
    .faq-slide {
        flex: 0 0 calc(100% - 0.5rem) !important;
        height: 220px !important;
    }
    .faq-carousel-track {
        gap: 0.75rem !important;
    }
    .faq-slide-content {
        padding: 1rem !important;
    }
    .faq-slide-content h3 {
        font-size: 0.95rem !important;
    }
    .faq-slide-content p {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
    }

    /* FAQ Page */
    .faq-question {
        font-size: 0.85rem !important;
        padding: 0.85rem !important;
    }
    .faq-question h3,
    .faq-question span {
        font-size: 0.85rem !important;
    }
    .faq-answer {
        padding: 0 !important;
    }
    .faq-answer-content {
        font-size: 0.8rem !important;
        padding: 0 0.85rem 0.85rem !important;
    }
    .blog-content h2,
    .article-content h2 {
        font-size: 1.1rem !important;
    }
    .blog-content p,
    .article-content p {
        font-size: 0.85rem !important;
    }
    .content-box h2,
    .terms-content h2 {
        font-size: 1.1rem !important;
    }
    .content-box p,
    .terms-content p {
        font-size: 0.8rem !important;
    }
    .price-table {
        font-size: 0.75rem !important;
    }
    .price-table th {
        font-size: 0.7rem !important;
    }

    /* Guide page: smaller cards */
    .guide-card-content { padding: 0 1rem 1rem !important; }
    .guide-card-content h4 { font-size: 0.95rem !important; margin: 1rem 0 0.5rem !important; }
    .guide-card-content p { font-size: 0.8rem !important; }
    .guide-card-content ul li { font-size: 0.8rem !important; padding-left: 1.25rem !important; }
    .guide-card-icon { width: 2.5rem !important; height: 2.5rem !important; }

    /* Content box - smaller screens */
    .content-box { padding: 1rem !important; }
    .content-box h2 { font-size: 1rem !important; }
    .content-box h3 { font-size: 0.95rem !important; }
    .content-box p { font-size: 0.8rem !important; }
    .content-box ul li { padding-left: 1.25rem !important; }

    /* FAQ - smaller screens */
    .faq-answer-content ul li { font-size: 0.8rem !important; }
    .faq-answer-content ul ul { margin-left: 0.75rem !important; }

    /* Disclaimer box */
    .disclaimer-box { padding: 1rem !important; font-size: 0.8rem !important; }

    /* Related links */
    .related-link { padding: 1rem !important; }
    .related-link-icon { width: 2.5rem !important; height: 2.5rem !important; }
    .related-link-text { font-size: 0.85rem !important; }
    .related-link-desc { font-size: 0.7rem !important; }
}


/* ==========================================
   VERY SMALL MOBILE STYLES (max-width: 320px)
   ========================================== */
@media (max-width: 320px) {
    .container { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .section-title { font-size: 1.1rem !important; }
    .section-subtitle { font-size: 0.8rem !important; }

    .page-hero h1,
    .hero-mini h1 {
        font-size: 1.1rem !important;
    }
    .page-hero,
    .hero-mini {
        padding: 4.5rem 0.75rem 1.5rem !important;
    }

    /* Header even more compact */
    .header-logo-img { height: 28px !important; }
    .logo-text { font-size: 1rem !important; }
    a.header-phone, .header-phone {
        width: 32px !important; height: 32px !important;
        min-width: 32px !important; max-width: 32px !important;
    }

    /* Guide page */
    .guide-card-header { padding: 0.75rem !important; }
    .guide-card-title { font-size: 0.85rem !important; }
    .guide-card-icon { width: 2.25rem !important; height: 2.25rem !important; }

    /* FAQ page */
    .faq-question { padding: 0.75rem !important; font-size: 0.8rem !important; }
    .faq-answer { padding: 0 !important; }
    .faq-answer-content { padding: 0 0.75rem 0.75rem !important; font-size: 0.75rem !important; }

    /* Price table */
    .price-table { min-width: 400px !important; font-size: 0.7rem !important; }
    .price-table th { font-size: 0.65rem !important; padding: 0.4rem !important; }
    .price-table td { padding: 0.4rem !important; }

    /* Content box */
    .content-box { padding: 0.75rem !important; }

    /* Footer */
    .footer-content-overlay { padding: 1rem 0.5rem !important; }
    .footer-columns { gap: 1rem !important; padding: 0 0.5rem !important; }
    .footer-title { font-size: 0.85rem !important; }
    .footer-link, .footer-links a { font-size: 0.8rem !important; }
    .footer-copyright { font-size: 0.65rem !important; }

    /* Site footer (secondary pages) */
    .site-footer .footer-columns,
    .site-footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Faucets page */
    .faucet-hero { height: 150px !important; }
    .faucet-hero h1 { font-size: 1.2rem !important; }
    .product-card-img { height: 180px !important; }
}


/* ==========================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Minimum tap targets (44px per WCAG) */
    .btn,
    .header-cta,
    .mobile-menu-cta,
    button,
    .faq-question,
    .guide-card-header,
    .mobile-nav a,
    .mobile-nav-link {
        min-height: 44px;
    }

    /* Prevent iOS input zoom on all touch devices */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Animation optimization for touch devices */
    .faq-answer,
    .guide-card-body {
        will-change: max-height;
    }
    .mobile-menu-panel {
        will-change: transform;
    }

    /* Prevent text selection on clickable cards */
    .guide-card-header,
    .faq-question {
        -webkit-user-select: none;
        user-select: none;
    }
    .mobile-nav-link,
    .mobile-nav a,
    .footer-links a {
        min-height: 44px;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
    }

    /* Faucet flip cards: tap to toggle on touch devices */
    .product-card-flip .product-card-img-back {
        -webkit-transition: opacity 0.4s ease;
        transition: opacity 0.4s ease;
    }
    .product-card-flip.tapped .product-card-img-back {
        opacity: 1 !important;
    }
    .product-card-flip.tapped .product-card-img {
        opacity: 0 !important;
    }
    .product-card:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }

    /* Disable hover transforms on touch devices */
    .card-hover:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
    .icon-hover:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
    .btn-animated:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    .testimonial-card::before {
        display: none;
    }
    .step-number-animated:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    /* Active states instead of hover for touch */
    .btn:active,
    .card-hover:active {
        opacity: 0.9;
        -webkit-transform: scale(0.98);
        -ms-transform: scale(0.98);
        transform: scale(0.98);
    }
}


/* ==========================================
   SAFE AREA INSETS (Notch phones)
   ========================================== */
@supports (padding: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .footer,
    .footer-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .mobile-menu-panel {
        padding-top: max(1.5rem, env(safe-area-inset-top));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}


/* ==========================================
   iOS SAFARI SPECIFIC FIXES
   ========================================== */

/* Fix iOS background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    [style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }

    /* Fix iOS 100vh including address bar */
    .hero-wrapper {
        min-height: -webkit-fill-available;
    }

    /* Fix iOS momentum scrolling */
    .mobile-menu-panel,
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix iOS input zoom (prevent zoom on focus) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}


/* ==========================================
   FIREFOX SPECIFIC FIXES
   ========================================== */
@-moz-document url-prefix() {
    /* Fix Firefox scrollbar width */
    .mobile-menu-panel,
    .mobile-nav {
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.2) transparent;
    }
}


/* ==========================================
   REDUCED MOTION (Accessibility)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll {
        opacity: 1 !important;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
    }
    .brands-track {
        -webkit-animation: none !important;
        animation: none !important;
    }
    .float-animation {
        -webkit-animation: none !important;
        animation: none !important;
    }
    /* Pause videos for users who prefer reduced motion */
    video {
        animation: none !important;
    }
}


/* --- INDEX.HTML: Second Video Section - Mobile feature order --- */
@media (max-width: 768px) {
    .video-features-list .video-feature-item:nth-child(1) { order: 2; } /* Δωρεάν έλεγχος -> 2nd */
    .video-features-list .video-feature-item:nth-child(2) { order: 3; } /* Εγγύηση 2 ετών -> 3rd */
    .video-features-list .video-feature-item:nth-child(3) { order: 1; } /* Άμεση εξυπηρέτηση -> 1st */
    .video-features-list .video-feature-item:nth-child(4) { order: 4; } /* Πιστοποιημένα -> 4th */
}

/* --- INDEX.HTML: Guide Grid Bento - Mobile Carousel --- */
@media (max-width: 768px) {
    .guide-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        position: relative !important;
        min-height: 420px !important;
    }
    .guide-grid .guide-grid-card {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 120px !important;
        opacity: 0 !important;
        position: absolute !important;
        width: 100% !important;
        pointer-events: none !important;
        transition: opacity 0.5s ease !important;
    }
    .guide-grid .guide-grid-card.mobile-visible {
        opacity: 1 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    .guide-grid .guide-grid-card h3 {
        font-size: 1rem !important;
    }
    /* Dots indicator */
    .guide-grid-dots {
        display: flex !important;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .guide-grid-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        border: 1px solid rgba(13, 42, 82, 0.3);
        transition: all 0.3s ease;
    }
    .guide-grid-dot.active {
        background: #0d2a52;
        transform: scale(1.3);
    }
}


/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .footer,
    .mobile-menu-panel,
    .mobile-menu-btn,
    .promo-bar,
    .cta-box,
    .cta-section {
        display: none !important;
    }
    body {
        font-size: 12pt !important;
        color: #000 !important;
        background: white !important;
    }
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}
