/* ============================================
   CureHome Physiotherapy - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #198754;
    --accent: #0dcaf0;
    --dark: #1a1a2e;
    --light-bg: #f8f9fa;
    --text: #333333;
    --text-light: #6c757d;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* --- Smooth Scroll with navbar offset --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

/* --- Global Styles --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
    padding: 12px 0;
    transition: var(--transition);
    background: var(--white) !important;
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(13, 110, 253, 0.05);
}

.navbar .btn-appointment {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.navbar .btn-appointment:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: var(--white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') center/cover no-repeat;
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 15px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- Trust Badges --- */
.trust-badges {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.trust-badge-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    height: 100%;
}

.trust-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.trust-badge-card .badge-icon {
    width: 70px;
    height: 70px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary);
}

.trust-badge-card h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.trust-badge-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card .btn-link {
    font-weight: 600;
    text-decoration: none;
}

/* --- Condition Cards --- */
.condition-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    height: 100%;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    position: relative;
    margin: 10px;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: rgba(13, 110, 253, 0.15);
    position: absolute;
    top: 15px;
    left: 25px;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .client-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.testimonial-card .client-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: var(--white);
    padding: 80px 0 50px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* --- Forms --- */
.form-control,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-success {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius);
}

/* --- FAQ Section --- */
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--dark);
    padding: 18px 24px;
    font-size: 1.05rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.05);
    color: var(--primary);
}

.faq-section .accordion-body {
    padding: 20px 24px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Postcode Checker --- */
.postcode-checker {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 40px;
}

.postcode-result {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--radius);
}

.postcode-result.available {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.postcode-result.unavailable {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* --- Therapist Cards --- */
.therapist-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.therapist-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e8f0fe, #d4e5fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.5;
}

.therapist-card .card-body {
    padding: 25px;
}

.therapist-card .experience-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- Blog Cards --- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8f0fe, #d4e5fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .category-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card .blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* --- Service Areas --- */
.service-areas-section {
    background: var(--light-bg);
}

.area-badge {
    display: inline-block;
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.area-badge:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
}

/* --- Google Reviews --- */
.google-reviews {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.google-reviews .rating-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.google-reviews .stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 10px 0;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.site-footer h5 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.site-footer p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.site-footer a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links li a::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--primary);
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    padding-left: 0;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-call {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.floating-call:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* Pulse animation for floating buttons */
.floating-whatsapp::after,
.floating-call::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulse-ring 1.5s ease infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-consent.show {
    display: block;
}

.cookie-consent p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.cookie-consent a {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .trust-badges {
        margin-top: -30px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .floating-whatsapp,
    .floating-call {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }

    .floating-call {
        bottom: 20px;
        left: 20px;
    }

    .page-header h1 { font-size: 1.75rem; }
    .page-header .lead { font-size: 0.95rem; }
}

/* --- Utility Classes --- */
.bg-light-blue {
    background: rgba(13, 110, 253, 0.03);
}

.text-primary-custom {
    color: var(--primary) !important;
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

.fw-semibold {
    font-weight: 600;
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Honeypot - absolutely hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ============================================
   CureHome Brand & Header/Footer Component Styles
   (ch-* namespace used by layouts)
   ============================================ */

/* --- Brand --- */
.ch-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.ch-brand-icon--footer {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.ch-brand-cure {
    color: var(--primary);
    font-weight: 700;
}

.ch-brand-home {
    color: var(--secondary);
    font-weight: 700;
}

.ch-brand-text {
    font-size: 1.35rem;
}

/* --- Logo --- */
.ch-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* --- Navbar overrides --- */
.ch-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
}

.ch-navbar .container {
    align-items: center;
}

.ch-navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

.ch-navbar--scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.12) !important;
}

.ch-navbar--scrolled .ch-logo-img {
    height: 45px;
}

.ch-btn-book {
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600;
    white-space: nowrap;
}

.ch-btn-call {
    border-radius: 50px !important;
    padding: 6px 16px !important;
    white-space: nowrap;
}

/* Prevent navbar CTA buttons from overflowing */
.ch-navbar .d-flex.align-items-center {
    flex-shrink: 0;
}

.ch-dropdown {
    border-radius: 12px;
    padding: 8px 0;
    min-width: 260px;
}

.ch-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0 6px;
    transition: all 0.2s ease;
}

.ch-dropdown .dropdown-item:hover {
    background: rgba(13, 110, 253, 0.06);
}

/* --- Floating buttons (ch- namespace) --- */
.ch-float-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.ch-float-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.ch-float-call {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.ch-float-call:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.5);
}

.ch-float-label {
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ch-float-whatsapp .ch-float-label {
    right: 70px;
}

.ch-float-call .ch-float-label {
    left: 70px;
    right: auto;
}

.ch-float-whatsapp:hover .ch-float-label,
.ch-float-call:hover .ch-float-label {
    opacity: 1;
}

/* --- Back to top (ch- namespace) --- */
.ch-back-to-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.ch-back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
}

.ch-back-to-top:hover {
    background: var(--primary);
}

/* --- Cookie consent banner (ch- namespace) --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #fff;
    padding: 18px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent-banner.ch-cookie-visible {
    transform: translateY(0);
}

/* --- Scroll fade-in animation --- */
.ch-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ch-fade-in.ch-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer (ch- namespace) --- */
.ch-footer {
    font-size: 0.92rem;
}

.ch-footer-heading {
    position: relative;
    padding-bottom: 12px;
}

.ch-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

.ch-footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
}

.ch-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.ch-footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
}

.ch-contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.85rem;
}

.ch-footer-contact-link:hover {
    color: #fff !important;
}

.ch-footer-bottom-link:hover {
    color: #fff !important;
}

.ch-social-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ch-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Responsive for ch- components --- */
@media (max-width: 767.98px) {
    .ch-float-whatsapp,
    .ch-float-call {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .ch-float-whatsapp {
        bottom: 20px;
        right: 20px;
    }

    .ch-float-call {
        bottom: 20px;
        left: 20px;
    }

    .ch-float-label {
        display: none;
    }

    .ch-back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* ── Extra-small screens (≤ 575.98px) ── */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.75rem !important; }
    .hero-section .lead { font-size: 0.95rem !important; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; }
    .trust-badge-card { padding: 1.25rem; }
    .trust-badge-card h2 { font-size: 1.1rem; }
    .service-card { padding: 1.25rem; }
    .ch-footer-top { padding: 2rem 0 !important; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .ch-float-call, .ch-float-whatsapp { width: 48px; height: 48px; }
    .ch-float-label { display: none; }
}
