/* --- Variables & Reset --- */
:root {
    --primary-blue: #004b87;
    --secondary-teal: #008080;
    --light-green: #e6f9f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8fcfb;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- Layout & Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-teal { background-color: var(--secondary-teal); color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--secondary-teal);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--secondary-teal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-teal);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary-teal);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-teal);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-teal);
}

.mobile-only { display: none; }
.desktop-only { display: inline-block; }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://via.placeholder.com/1920x1080/e6f9f5/004b87?text=Chiropractic+Hero+Background') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 75, 135, 0.8), rgba(0, 128, 128, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: -20px 20px 0 var(--light-green);
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.about-text .subtitle {
    color: var(--secondary-teal);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-blue);
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Stats Section --- */
.stats-flex {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-blue);
}

/* --- SEO Article --- */
.seo-article {
    background: var(--white);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.article-content h3 {
    color: var(--secondary-teal);
    margin: 25px 0 15px;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 10px;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(rgba(0, 75, 135, 0.9), rgba(0, 75, 135, 0.9)), url('https://via.placeholder.com/1920x600/004b87/ffffff') center/cover;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--light-green);
    margin-bottom: 20px;
}

.footer-col p {
    color: #bbbbbb;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #bbbbbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--secondary-teal);
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: var(--white);
    background: var(--secondary-teal);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    background: #222222;
    padding: 20px 0;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

/* --- Scroll To Top --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-teal);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: var(--primary-blue);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: inline-block; margin-top: 15px; text-align: center; }
    
    .hamburger { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: 0.4s;
    }
    
    .nav-links.active { left: 0; }
    .nav-links a { margin: 15px 20px; display: block; }
    
    .hero-content h1 { font-size: 2.2rem; }
    section { padding: 50px 0; }
    .section-header h2 { font-size: 1.8rem; }
}