/* =========================================================================
// == style.css -- Custom Styles for Dexta Hearing Website
// ========================================================================= */

:root {
    --primary-color: #8F11D9;
    --secondary-color: #f35f2a;
    --accent-color: #E20419;
    --light-gray: #f8f9fa;
    --dark-text: #333;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    line-height: 1.7;
}

/* Helper Classes */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #7a0db5;
    border-color: #7a0db5;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #e05220;
    border-color: #e05220;
    transform: translateY(-2px);
}


/* --- Header --- */
.top-bar {
    background-color: var(--primary-color); /* Restored brand color */
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar a, .top-bar span {
    color: #fff; /* Changed text to white for contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: #e9ecef;
}
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /* Makes header sticky */
    top: 0;
    z-index: 1020; /* Ensures header is above other content */
}
.navbar-brand img {
    max-height: 60px;
}
.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color);
}
.navbar-nav .nav-link i {
    margin-right: 8px;
    width: 20px; /* Consistent icon width */
    text-align: center;
}
.nav-icon-home { color: #2a9d8f; }
.nav-icon-about { color: #e9c46a; }
.nav-icon-services { color: #f4a261; }
.nav-icon-why { color: #e76f51; }
.nav-icon-testimonials { color: #264653; }
.nav-icon-contact { color: #8F11D9; }
.nav-icon-book { color: #f35f2a; }

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 15px;
        border-top: 1px solid #eee;
    }
    .navbar-nav .nav-item {
        text-align: left; /* Align to left on mobile */
    }
}


/* --- WOW Slider --- */
.slider-wrapper {
    position: relative;
    color: white;
    text-align: center;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
}
.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .carousel-caption {
        padding: 1.5rem;
    }
}


/* --- Why Choose Us Section (Homepage) --- */
.feature-box {
    padding: 30px;
    border-radius: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}


/* --- What Makes Us Different --- */
#different.bg-light, .why-us-section.bg-light {
    background-color: var(--light-gray) !important;
}
.different-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.different-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* --- Services Section --- */
.services-sticky-column {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 120px; /* Adjust based on header height */
    align-self: flex-start; /* Aligns the item to the start of the flex container */
}
.service-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.service-box p {
    font-size: 0.9rem;
    flex-grow: 1; /* Allows paragraph to take up space */
}
.service-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.service-icon {
    font-size: 2.5rem; /* Slightly smaller for balance */
    margin-bottom: 15px;
}
.service-icon i {
    transition: transform 0.3s ease;
}
.service-box:hover .service-icon i {
    transform: scale(1.1);
}

/* Icon Colors for Services */
#services .col-md-7 .row > .col-md-6:nth-child(1) .service-icon { color: #d00000; }
#services .col-md-7 .row > .col-md-6:nth-child(2) .service-icon { color: #ffba08; }
#services .col-md-7 .row > .col-md-6:nth-child(3) .service-icon { color: #3f88c5; }
#services .col-md-7 .row > .col-md-6:nth-child(4) .service-icon { color: #032b43; }
#services .col-md-7 .row > .col-md-6:nth-child(5) .service-icon { color: #136f63; }
#services .col-md-7 .row > .col-md-6:nth-child(6) .service-icon { color: #e76f51; }
#services .col-md-7 .row > .col-md-6:nth-child(7) .service-icon { color: #8338ec; }
#services .col-md-7 .row > .col-md-6:nth-child(8) .service-icon { color: #00b4d8; }
#services .col-md-7 .row > .col-md-6:nth-child(9) .service-icon { color: #6a9n4e; }
#services .col-md-7 .row > .col-md-6:nth-child(10) .service-icon { color: #f72585; }
#services .col-md-7 .row > .col-md-6:nth-child(11) .service-icon { color: #3a0ca3; }


/* --- Listen & Testimonial Section (REVISED) --- */
.listen-section {
    padding: 100px 0;
    padding-bottom: 150px; /* Creates space for the testimonial to overlap into */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.testimonials-overlap {
    margin-top: -150px; /* Pulls the testimonial section up */
    position: relative; /* Required for z-index */
    z-index: 2;
}
.testimonial-card-replicated {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--dark-text);
    border-radius: 50%;
}

/* --- Our Process --- */
#process {
    /* No margin-top needed with the new testimonial layout */
}
.process-container {
    position: relative;
}
.process-step {
    position: relative;
}
.process-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--secondary-color);
}
.process-container::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 20%;
    right: 20%;
    border-top: 2px dotted #ccc; /* Restored to dotted line */
    z-index: -1;
}

/* --- Appointment Form --- */
.contact-info-block p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.contact-info-block i {
    color: var(--primary-color);
}
#appointment .card {
    border: none;
    border-radius: 15px;
}

/* CAPTCHA Styles */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.captcha-wrapper img {
    border-radius: 5px;
    border: 1px solid #ced4da;
}
.captcha-wrapper input {
    flex-grow: 1;
}


/* --- Review & Map Section --- */
.review-card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
}
.review-card .stars {
    color: #ffc107;
    font-size: 1.5rem;
}

/* --- Mombasa Branch Section (Single Row Layout) --- */
.mombasa-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.mombasa-gallery-item {
    /* No specific styles needed here, parent handles layout */
}
.mombasa-gallery-item img {
    height: 400px; /* Set a consistent height */
    width: auto; /* Allow width to scale based on aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow on small screens if it wraps */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* --- Footer --- */
footer.main-footer {
    background-color: #212529 !important; /* Increased specificity */
    color: #f8f9fa;
    padding: 60px 0 0;
}
.main-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #e9ecef; /* Lighter color for better contrast */
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contact-info i {
    color: var(--secondary-color); /* Use secondary color for accents */
    margin-right: 10px;
}
.social-icons a {
    color: #e9ecef;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* --- About Page Specific --- */
.about-hero {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
}
.team-card {
    text-align: center;
}
.team-card img {
    border: 5px solid var(--light-gray);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Why Choose Us Page (NEW REPLICATED STYLE) --- */
.why-us-section h3 {
    margin-bottom: 1.5rem;
}
.why-us-section p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* --- Services Page Specific --- */
.service-detail-card {
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

/* --- Services Page Image Sound Wave Effect --- */
.image-sound-effect {
    position: relative;
    overflow: hidden; /* Keeps the effect contained */
    border-radius: 15px; /* Match the image's border-radius */
}
.image-sound-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all 0.5s ease-out;
}
.image-sound-effect:hover::after {
    animation: soundwave 1.5s ease-out forwards;
}
@keyframes soundwave {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}


/* --- Mobile Footer Nav Bar --- */
.mobile-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}
.mobile-nav-item {
    flex-grow: 1;
}
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
}
.mobile-nav-link i {
    font-size: 1.5rem; /* Bigger Icon */
    margin-bottom: 4px;
}
.mobile-nav-link span {
    font-size: 0.7rem; /* Smaller Text */
    font-weight: 500;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-color);
}
@media (max-width: 767.98px) {
    .mobile-nav {
        display: block;
    }
    body {
        padding-bottom: 70px; /* Add padding to prevent content from being hidden by the nav bar */
    }
}

/* Icon Colors for Mobile Nav */
.mobile-nav-icon-home { color: #2a9d8f; }
.mobile-nav-icon-about { color: #e9c46a; }
.mobile-nav-icon-services { color: var(--secondary-color); }
.mobile-nav-icon-appoint { color: var(--primary-color); }

/* Honeypot Spam Protection */
.honeypot-field {
    position: absolute;
    left: -5000px;
    top: -5000px;
}

