html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #7fcd29;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Logo & brand */
.logo-brand {
    display: inline-block;
    line-height: 0;
}

.logo-brand__image {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Hide legacy tagline if cached views still render it */
.logo-brand__tagline,
#header .header-logo .logo-brand__tagline {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    visibility: hidden !important;
}

#header .header-logo {
    font-size: 0;
    line-height: 0;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

#header .header-logo__link {
    display: inline-block;
    line-height: 0;
}

#header .header-logo img,
#header .header-logo .logo-brand__image {
    border: 5px double #7fcd29;
    display: block;
    position: relative;
    top: 0;
    transform: none;
}

.side-panel-wrapper .logo-brand__image {
    border: 5px double #7fcd29;
    max-width: 160px;
}

/* Contact CTAs — brand button colours */
.btn.btn-whatsapp,
a.btn.btn-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus,
a.btn.btn-whatsapp:hover,
a.btn.btn-whatsapp:focus {
    background-color: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

.btn.btn-facebook,
a.btn.btn-facebook {
    background-color: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #fff !important;
}

.btn.btn-facebook:hover,
.btn.btn-facebook:focus,
a.btn.btn-facebook:hover,
a.btn.btn-facebook:focus {
    background-color: #166fe5 !important;
    border-color: #166fe5 !important;
    color: #fff !important;
}

.btn.btn-whatsapp i,
.btn.btn-facebook i {
    color: #fff !important;
}

.contact-cta-btn {
    align-items: center;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.contact-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Call button — white pill (overrides html.dark .btn-light / .btn-secondary) */
.btn.btn-call,
a.btn.btn-call,
#overview .col-lg-5 .d-flex a[href^="tel:"],
html.dark #overview .col-lg-5 .d-flex a.btn[href^="tel:"] {
    align-items: center !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    color: #36459b !important;
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.btn.btn-call:hover,
.btn.btn-call:focus,
a.btn.btn-call:hover,
a.btn.btn-call:focus,
#overview .col-lg-5 .d-flex a[href^="tel:"]:hover,
#overview .col-lg-5 .d-flex a[href^="tel:"]:focus,
html.dark #overview .col-lg-5 .d-flex a.btn[href^="tel:"]:hover {
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
    color: #36459b !important;
}

.btn.btn-call i,
#overview .col-lg-5 .d-flex a[href^="tel:"] i,
html.dark #overview .col-lg-5 .d-flex a.btn[href^="tel:"] i {
    color: #36459b !important;
}

.home-intro .btn.btn-call,
.home-intro a.btn.btn-call,
.home-intro .d-flex a[href^="tel:"] {
    background-color: #fff !important;
    color: #212529 !important;
}

.home-intro .btn.btn-call i,
.home-intro .d-flex a[href^="tel:"] i {
    color: #212529 !important;
}

/* Overview — Call now / WhatsApp / Facebook buttons wrap */
#overview .overview-cta-buttons {
    flex-wrap: nowrap !important;
    gap: 0.75rem;
    max-width: 36rem;
    width: 100%;
}

#overview .overview-cta-buttons .contact-cta-btn {
    flex: 1 1 0;
    font-size: 1rem !important;
    justify-content: center;
    min-width: 8rem;
    padding-left: calc(1.85rem + 16px) !important;
    padding-right: calc(1.85rem + 16px) !important;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    #overview .overview-cta-buttons {
        justify-content: center !important;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}

#home-intro.home-intro {
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    padding: 0;
    position: static;
}

/* Three explicit rows — prevents theme inline-block overlap */
#home-intro .home-intro__layout {
    display: grid !important;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    text-align: left;
    width: 100%;
}

#home-intro .home-intro__headline,
#home-intro .home-intro__subtext,
#home-intro .home-intro__buttons {
    float: none !important;
    grid-column: 1;
    margin: 0 !important;
    position: static !important;
    width: 100%;
}

#home-intro .home-intro__headline {
    grid-row: 1;
}

#home-intro .home-intro__subtext {
    grid-row: 2;
}

#home-intro .home-intro__buttons {
    grid-row: 3;
}

#home-intro.home-intro p.home-intro__headline {
    display: block !important;
}

#home-intro .home-intro__buttons {
    align-items: center;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.65rem;
    justify-content: flex-start;
    padding-top: 0.15rem;
}

@media (max-width: 767.98px) {
    #home-intro .home-intro__layout {
        text-align: center;
    }

    #home-intro .home-intro__subtext {
        justify-content: center;
    }

    #home-intro .home-intro__buttons {
        justify-content: center;
    }
}

.home-intro .home-intro__icon {
    color: #000 !important;
}

#home-intro .home-intro__headline {
    color: #fff !important;
    display: block !important;
    font-size: 1.75rem !important;
    line-height: 1.35 !important;
    white-space: normal;
}

@media (min-width: 992px) {
    #home-intro .home-intro__headline {
        font-size: 2rem !important;
    }
}

#home-intro .home-intro__subtext,
.home-intro__subtext {
    align-items: center;
    color: #000 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    font-size: 1rem !important;
    font-weight: 500 !important;
    gap: 0.5rem 1.25rem;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    #home-intro .home-intro__subtext,
    .home-intro__subtext {
        flex-wrap: nowrap;
    }
}

/* Theme stacks spans inside .home-intro p — our banner uses a div instead */
#home-intro .home-intro__subtext .home-intro__detail {
    display: inline-flex !important;
}

#home-intro .home-intro__subtext .home-intro__detail-label {
    display: inline !important;
}

.home-intro__detail {
    align-items: center;
    color: #000 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-shrink: 0;
    gap: 0.4rem;
}

.home-intro__detail .home-intro__icon,
.home-intro__detail .icons {
    align-items: center;
    color: #000 !important;
    display: inline-flex !important;
    flex-shrink: 0;
    line-height: 1;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    vertical-align: middle;
}

.home-intro__detail .icons:before {
    display: block;
    line-height: 1;
}

.home-intro__detail-label {
    color: #000 !important;
    display: inline !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    line-height: 1.4;
    opacity: 1 !important;
    padding: 0 !important;
    white-space: nowrap;
}

#home-intro .home-intro__maps-link {
    color: #000 !important;
    font-weight: 500 !important;
    text-decoration: underline;
}

#home-intro .home-intro__maps-link:hover {
    opacity: 0.85;
}

.usp-card__address-link {
    color: inherit !important;
    text-decoration: underline;
}

.usp-card__address-link:hover {
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .home-intro__subtext {
        justify-content: center;
    }

    .home-intro__detail-label {
        white-space: normal;
    }
}

#home-intro .home-intro__buttons .contact-cta-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Price list */
.price-card {
    background: #fff;
    border: 1px solid rgba(127, 205, 41, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.price-card__header {
    background: linear-gradient(135deg, #7fcd29 0%, #6bb822 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.price-card--earwax .price-card__header {
    background: linear-gradient(135deg, #36459b 0%, #2c387f 100%);
}

.price-card__intro {
    color: #555;
    font-size: 0.95rem;
}

.price-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #7fcd29;
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.price-table tbody td {
    border-color: #eee;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    vertical-align: middle;
}

.price-table tbody tr:hover {
    background: rgba(127, 205, 41, 0.06);
}

.price-table__highlight td {
    background: rgba(127, 205, 41, 0.1);
    font-weight: 600;
}

.price-card--earwax .price-table thead th {
    border-bottom-color: #36459b;
}

.price-card--earwax .price-table tbody tr:hover {
    background: rgba(54, 69, 155, 0.06);
}

.price-card--earwax .price-table__highlight td {
    background: rgba(54, 69, 155, 0.08);
}

/* USP cards */
.usp-card {
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.usp-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.featured-boxes-style-9 .usp-card .usp-card__title,
.featured-boxes-style-9 .usp-card.featured-box-primary h4,
.featured-boxes-style-9 .usp-card.featured-box-secondary h4,
.featured-boxes-style-9 .usp-card.featured-box-tertiary h4,
html.dark .featured-boxes-style-9 .usp-card .box-content h4 {
    color: var(--primary, #7fcd29) !important;
}

.featured-boxes-style-9 .usp-card .usp-card__text,
html.dark .featured-boxes-style-9 .usp-card .box-content p {
    color: #fff !important;
    opacity: 1;
}

/* Floating contact — stacked above scroll-to-top */
.floating-contact {
    align-items: center;
    bottom: 4.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    z-index: 1041;
}

.floating-contact.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.floating-contact__btn {
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    font-size: 1.35rem;
    height: 52px;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 52px;
}

.floating-contact__btn:hover {
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    transform: scale(1.06);
}

.floating-contact__btn--whatsapp {
    background: #25d366;
}

.floating-contact__btn--phone {
    background: #7fcd29;
}

html.dark .thumb-info {
    background-color: #000;
}

html.dark .thumb-info:hover {
    background-color: #000;
}

@media (min-width: 1200px) and (max-width: 1630px) {
    html.dark .thumb-info-inner {
        display: block;
    }

    html.dark .thumb-info:hover .thumb-info-title .anim-hover-inner-translate-bottom-20px {
        display: none !important;
    }
}

@media (max-width: 991px) {
    #header .header-nav-main:not(.header-nav-main-mobile-dark) nav > ul > li > a {
        color: #7fcd29 !important;
    }

    #header .header-nav-main:not(.header-nav-main-mobile-dark) nav > ul > li > a.active {
        background: inherit;
        color: #7fcd29 !important;
    }

    /* Scroll-to-top hidden on small screens — no extra offset needed */
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
}

.modal-header {
    position: relative;
}

.modal-content .btn-modal-close {
    color: #7fcd29;
    position: absolute;
    right: 20px;
    top: 10px;
}

.modal-content .btn-modal-close:hover {
    color: #258cfb;
}
