/*
Theme Name: ChiroCare Clinic
Theme URI: https://chirocarewellnessclinic.com
Author: ChiroCare
Description: Elite Chiropractic Care WordPress Theme
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: chirocare
*/

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #4a5568;
    background-color: #ffffff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: #2d3748;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #b65cf1;
    color: #ffffff;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 45px;
}

.top-phone {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.top-cta-btn {
    background-color: #8cc63f;
    color: #ffffff;
    height: 45px;
    line-height: 45px;
    padding: 0 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.top-cta-btn:hover {
    background-color: #7ab332;
    color: #ffffff;
}

/* ===== HEADER ===== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 55px; }

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2d3748;
}

.nav-link:hover { color: #8cc63f; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-top: 3px solid #b65cf1;
}
.dropdown-content a {
    color: #2d3748;
    padding: 14px 20px;
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}
.dropdown-content a:hover {
    background-color: #f5eaff;
    color: #b65cf1;
    padding-left: 25px;
}
.dropdown:hover .dropdown-content { display: block; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background-color: #2d3748; margin: 5px 0; }

/* ===== BUTTONS ===== */
.btn-brand-pill {
    display: inline-block;
    background-color: #b65cf1;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: 2px solid #b65cf1;
}

.btn-brand-pill:hover {
    background-color: transparent;
    color: #b65cf1;
}

.btn-outline-dark {
    display: inline-block;
    background-color: transparent;
    color: #2d3748;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid #2d3748;
}
.btn-outline-dark:hover { background-color: #2d3748; color: #ffffff; }

/* ===== HERO ===== */
.elite-hero {
    position: relative;
    min-height: 600px;
    padding: 120px 0 100px;
    background-color: #f5eaff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(245, 234, 255, 0.65), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
}

.hero-kicker {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #b65cf1;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title span { font-weight: 300; }

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8cc63f;
    margin-bottom: 40px;
}

/* Subpage Hero */
.subpage-hero {
    position: relative;
    padding: 120px 0 80px;
    background-color: #f5eaff;
    text-align: center;
    overflow: hidden;
}

.subpage-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(245, 234, 255, 0.9), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1628313381805-4f4a3de07b66?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.subpage-hero .hero-content {
    position: relative;
    z-index: 1;
}

/* ===== HEADINGS ===== */
.heading-dark {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    color: #2d3748;
}

.subheading-light {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: #b65cf1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.brand-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8cc63f, #b65cf1);
    margin: 0 auto 30px;
}

.intro-body {
    max-width: 800px;
    margin: 0 auto 60px;
    color: #4a5568;
    font-size: 1.05rem;
}

/* ===== INTRO SECTION ===== */
.elite-intro {
    padding: 80px 24px;
    text-align: center;
}

/* ===== ASSESSMENT WHEEL ===== */
.assessment-wheel-container {
    position: relative;
    max-width: 500px;
    margin: 80px auto 0;
    aspect-ratio: 1 / 1;
}

.wheel-ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #f5eaff;
    transform: rotate(45deg);
}

.wheel-center-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 50%;
}

.wheel-center-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #b65cf1;
    margin-bottom: 10px;
}

.wheel-center-content p { font-size: 0.9rem; color: #4a5568; }

.wheel-node {
    position: absolute;
    width: 70px; height: 70px;
    background: #ffffff;
    border: 2px solid #b65cf1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(182, 92, 241, 0.15);
    color: #8cc63f;
    cursor: pointer;
    z-index: 2;
}

.wheel-node:hover, .wheel-node.active {
    background: #b65cf1;
    color: #ffffff;
    transform: scale(1.15);
}

.wheel-node svg { width: 30px; height: 30px; }

.node-1 { top: -35px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 25%; right: -35px; }
.node-3 { bottom: 5%; right: 15%; }
.node-4 { bottom: 5%; left: 15%; }
.node-5 { top: 25%; left: -35px; }

/* ===== EDITORIAL GRID ===== */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 80px auto;
    overflow: hidden;
    background: #f8fafc;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.editorial-image {
    background-size: cover;
    background-position: center top;
    min-height: 500px;
    border-radius: 8px 0 0 8px;
}

.editorial-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 0 8px 8px 0;
}

.editorial-tag {
    color: #8cc63f;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #b65cf1;
}

.editorial-text {
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* ===== SERVICE CARDS ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 50px 40px;
    text-align: center;
}

.service-card:hover {
    border-color: #b65cf1;
    box-shadow: 0 15px 40px rgba(182, 92, 241, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    color: #8cc63f;
    margin-bottom: 24px;
    background: #f5eaff;
    width: 80px; height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon svg { width: 35px; height: 35px; }

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2d3748;
}

.service-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b65cf1;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8cc63f;
    padding-bottom: 4px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 24px;
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== TESTIMONIAL SHOWCASE ===== */
.testimonials-section {
    padding: 0 24px 100px;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    background: #f8fafc;
    padding: 60px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.ts-sidebar { display: flex; flex-direction: column; }

.ts-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2d3748;
    line-height: 1.2;
}

.ts-sidebar-desc {
    color: #4a5568;
    margin-top: 15px;
    font-size: 0.95rem;
}

.ts-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.ts-nav-item {
    background: transparent;
    border: none;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #718096;
    cursor: pointer;
    padding: 15px 20px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
}

.ts-nav-item:hover { color: #b65cf1; background: rgba(255,255,255,0.5); }

.ts-nav-item.active {
    color: #b65cf1;
    border-left-color: #8cc63f;
    font-weight: 600;
    background: #ffffff;
}

.ts-main {
    position: relative;
    background: #ffffff;
    padding: 50px 60px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-quote-mark {
    position: absolute;
    top: 10px; left: 20px;
    font-size: 10rem;
    line-height: 1;
    color: #f5eaff;
    font-family: 'Playfair Display', serif;
    z-index: 0;
    opacity: 0.5;
}

.ts-content-wrapper { position: relative; z-index: 1; }

.ts-text-container { display: none; }
.ts-text-container.active { display: block; }

.ts-text-container p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d3748;
    font-style: italic;
    margin-bottom: 30px;
}

.ts-text-container h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #8cc63f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ts-view-all { margin-top: 40px; }

/* ===== TESTIMONIAL CARDS (Page) ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 50px 40px;
    text-align: left;
}

.testimonial-card .quote-mark {
    font-size: 4rem;
    color: #b65cf1;
    font-family: serif;
    line-height: 0.5;
    display: block;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #4a5568;
}

.testimonial-card h4 {
    font-family: 'Outfit', sans-serif;
    color: #2d3748;
}

/* ===== CONTACT ===== */
.contact-section { padding: 0 24px 100px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrap {
    background: #f8fafc;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.contact-form-wrap h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #2d3748;
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.location-block { margin-bottom: 40px; }
.location-block h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
}
.location-block p { color: #718096; }
.location-block .phone { margin-top: 10px; font-weight: 600; color: #2d3748; }

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f8fafc;
    padding: 80px 0 40px;
    color: #4a5568;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p { margin-top: 24px; max-width: 400px; }

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a:hover { color: #b65cf1; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-image { min-height: 350px; }
    .editorial-content { padding: 50px 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-showcase { grid-template-columns: 1fr; padding: 40px 20px; gap: 30px; }
    .ts-main { padding: 40px 30px; min-height: auto; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .main-nav.active { display: flex; }
    .mobile-menu-btn { display: block; }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        border-left: 2px solid #b65cf1;
        margin-top: 10px;
    }
    .dropdown:hover .dropdown-content { display: block; }

    .elite-hero { min-height: 500px; padding: 80px 0; }
    .hero-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    .assessment-wheel-container { max-width: 320px; }
    .wheel-center-content { width: 85%; }
    .wheel-center-content h3 { font-size: 1.5rem; }
    .wheel-node { width: 55px; height: 55px; }
    .wheel-node svg { width: 24px; height: 24px; }
}

/* ===== MOBILE STICKY BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #2d3748;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mobile-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    gap: 6px;
    border: none;
    cursor: pointer;
    min-height: 65px;
    position: relative;
}

.mobile-bottom-btn + .mobile-bottom-btn {
    border-left: 1px solid rgba(255,255,255,0.15);
}

.mobile-btn-book {
    background: #b65cf1;
    color: #ffffff;
}

.mobile-btn-call {
    background: #8cc63f;
    color: #ffffff;
}

.mobile-btn-contact {
    background: #2d3748;
    color: #ffffff;
}

.mobile-bottom-btn:hover,
.mobile-bottom-btn:active {
    opacity: 0.85;
    color: #ffffff;
}

.mobile-bottom-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 65px;
    }
}

/* WordPress overrides */
.wp-block-image img { max-width: 100%; height: auto; }