/**
 * House of Hearing - Responsive Styles
 * Mobile-first responsive overrides
 *
 * @package House_of_Hearing
 */

/* ─── Skip Link ─────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #E84444;
    color: #fff;
    padding: 10px 20px;
    z-index: 99999;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
}

/* ─── Preloader ─────────────────────────────────────────────────── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader img {
    max-width: 80px;
}

/* ─── Mobile Navigation ─────────────────────────────────────────── */
.mobile-nav-contact {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }

    .top-header {
        font-size: 13px;
    }

    .top-header .list-inline-item {
        display: inline-block;
        text-align: center;
        margin: 2px 5px;
    }

    .top-header .list-inline {
        margin-bottom: 0;
    }
}

/* ─── Hero Slider Responsive ────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-slider-item,
    .hero-slider-item2 {
        min-height: 400px;
        background-position: center center;
    }

    .hero-slider-item .hero-content h1,
    .hero-slider-item2 .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .hero-slider-item .hero-content h4,
    .hero-slider-item2 .hero-content h4 {
        font-size: 14px;
    }

    .hero-slider-item .hero-content p,
    .hero-slider-item2 .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-slider .slick-dots {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .hero-slider-item,
    .hero-slider-item2 {
        min-height: 350px;
    }

    .hero-slider-item .hero-content h1,
    .hero-slider-item2 .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .hero-slider-item .hero-content h4,
    .hero-slider-item2 .hero-content h4 {
        font-size: 12px;
    }

    .hero-slider-item .hero-content p,
    .hero-slider-item2 .hero-content p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 15px !important;
    }

    .hero-slider-item .hero-content .btn,
    .hero-slider-item2 .hero-content .btn {
        font-size: 12px;
        padding: 8px 20px;
    }

    .hero-slider-item .hero-content,
    .hero-slider-item2 .hero-content {
        max-width: 65%;
    }

    .py-160 {
        padding: 60px 0 !important;
    }
}

/* ─── Section Spacing ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .section {
        padding: 50px 0;
    }

    .section-sm {
        padding: 30px 0;
    }

    .py-100 {
        padding: 50px 0 !important;
    }

    .mb-100 {
        margin-bottom: 50px !important;
    }
}

/* ─── Cards Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .card .card-title {
        font-size: 18px;
    }

    .card .card-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ─── About / Who We Are Section ────────────────────────────────── */
@media (max-width: 767.98px) {
    .about .bg-secondary {
        padding: 20px !important;
    }

    .about .bg-secondary h3 {
        font-size: 22px;
    }
}

/* ─── Team Section ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .about2 .bg-secondary {
        padding: 20px !important;
    }

    .about2 .bg-gray {
        margin-bottom: 30px !important;
    }
}

/* ─── Reviews Grid ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .review-gridPage {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .review-cardPage {
        padding: 15px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .review-gridPage {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ─── Contact Page ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .map iframe {
        height: 350px !important;
    }

    .box-shadow {
        padding: 20px !important;
    }
}

/* ─── Footer Responsive ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    footer .py-100 {
        padding: 40px 0 !important;
    }

    footer h4 {
        font-size: 18px;
        margin-top: 20px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }
}

/* ─── WhatsApp Float ────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}

/* ─── Back to Top ───────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #E84444;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
}
.back-to-top:hover {
    transform: scale(1.1);
}

/* ─── Product Page ──────────────────────────────────────────────── */
.hearing-brands-section {
    padding: 40px 0;
}
.hearing-brands {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .promo-videoTest .h4 {
        font-size: 16px !important;
    }

    .promo-videoTest h1 {
        font-size: 24px !important;
    }
}

/* ─── Breadcrumbs ───────────────────────────────────────────────── */
.hoh-breadcrumbs {
    padding: 10px 0;
    font-size: 14px;
}
.hoh-breadcrumbs .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.hoh-breadcrumbs .breadcrumb-item a {
    color: #E84444;
}

/* ─── Admin Bar Fix ─────────────────────────────────────────────── */
@media (max-width: 782px) {
    .admin-bar .navigation {
        top: 46px;
    }
}

/* ─── Print Styles ──────────────────────────────────────────────── */
@media print {
    .top-header,
    .navigation,
    .search-form,
    .whatsapp-float,
    .back-to-top,
    footer {
        display: none !important;
    }

    .section {
        padding: 20px 0;
    }
}
