/*
Theme Name: Accelerated Chiropractic
Theme URI: https://acceleratedchiro.com
Author: Accelerated Chiropractic
Author URI: https://acceleratedchiro.com
Description: Custom theme for Accelerated Chiropractic & Natural Healing Center. Professional medical theme with specialized service pages, blog support, and comprehensive schema markup.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accelerated-chiro
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --primary-red: #900019;
    --primary-red-dark: #700014;
    --primary-red-light: #C41E3A;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --accent-gray: #666666;
    --dark-gray: #333333;
    --black: #1A1A1A;
    
    /* Accent */
    --gold: #FFD700;
    --gold-dark: #B8860B;
    
    /* Functional */
    --success: #28A745;
    --success-bg: #D4EDDA;
    --error: #DC3545;
    --error-bg: #F8D7DA;
    --warning-bg: #FFF3CD;
    --info-bg: #E3F2FD;
    
    /* Typography */
    --font-display: 'Anton', sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--primary-red);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--primary-red);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--light-gray);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--black);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top a {
    color: var(--white);
    margin-left: 20px;
}

.header-top a:hover {
    color: var(--gold);
}

.header-main {
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

.main-nav .btn {
    margin-left: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 5px;
    color: var(--dark-gray);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--dark-gray);
    color: var(--white);
    border-color: var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-red);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-dark:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(144,0,25,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 40px 20px;
}

.hero-content .tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content > p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: none;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--accent-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-card .btn {
    width: 100%;
}

/* ============================================
   STAT BOXES
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-box {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--accent-gray);
    margin: 0;
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */
.highlight-box {
    background: var(--white);
    border-left: 4px solid var(--primary-red);
    padding: 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-sm);
}

.highlight-box h3,
.highlight-box h4 {
    margin-top: 0;
}

.highlight-box.info {
    background: var(--info-bg);
    border-color: var(--primary-red);
}

.highlight-box.warning {
    background: var(--warning-bg);
    border-color: var(--gold-dark);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-red);
    margin: 0;
}

/* ============================================
   INFO CARDS (Contact section)
   ============================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: none;
    margin-bottom: 1rem;
}

.info-card a {
    color: var(--dark-gray);
}

.info-card a:hover {
    color: var(--primary-red);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    padding: 60px 30px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-top: 0;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .phone-link {
    display: block;
    margin-top: 30px;
    font-size: 1.5rem;
}

.cta-section .phone-link a {
    color: var(--gold);
    font-weight: 600;
}

.cta-section .phone-link a:hover {
    color: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-container {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #155724;
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error);
    color: #721C24;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-section h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: none;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ============================================
   BLOG / ARCHIVE
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

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

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--accent-gray);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: none;
    margin-bottom: 0.75rem;
}

.blog-card h3 a {
    color: var(--dark-gray);
}

.blog-card h3 a:hover {
    color: var(--primary-red);
}

.blog-card-excerpt {
    color: var(--accent-gray);
    font-size: 0.95rem;
}

/* Single Post */
.single-post-header {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
}

.single-post-meta {
    color: var(--accent-gray);
    margin-bottom: 1rem;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   PAGE TEMPLATES - SERVICE PAGE
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.page-hero-media {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-media .hero-media {
    border-radius: 10px;
}

/* Service page video/image hero */
.service-hero-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-red);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 500px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .header-top {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--dark-gray);
        margin: 5px 0;
        border-radius: 2px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1001;
        padding: 10px 0;
    }
    .main-nav.mobile-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--light-gray);
        text-align: center;
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .blog-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image {
    margin: 2rem 0;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   PERFORMANCE: Prevent Cumulative Layout Shift (CLS)
   ========================================================================== */

/* Reserve space for fonts to prevent FOUT shift */
html {
    font-size: 16px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Set explicit dimensions on common elements */
.service-card {
    min-height: 200px;
}

.stat-box {
    min-height: 120px;
}

.highlight-box {
    min-height: 80px;
}

/* Prevent image layout shift */
img {
    height: auto;
    max-width: 100%;
}

/* Header stability */
.site-header {
    min-height: 80px;
}

.top-bar {
    min-height: 40px;
}

/* Button stability */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Override WordPress error page styling */
body#error-page {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: var(--white) !important;
    color: var(--dark-gray) !important;
    font-family: var(--font-body) !important;
}


/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Hero content left aligned */
.hero-content {
    text-align: left;
    max-width: 600px;
    margin-left: 5%;
}
.hero-buttons {
    justify-content: flex-start;
}

/* Hero content left aligned - override */
.hero-content {
    text-align: left !important;
    max-width: 600px !important;
    margin-left: 5% !important;
    margin-right: auto !important;
}
.hero-content > p {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.hero-buttons {
    justify-content: flex-start !important;
}

/* Hero - true left position */
.hero {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.hero-content {
    margin-left: 10% !important;
    margin-right: auto !important;
}

/* Wider layout for services */
.services-section .container {
    max-width: 1400px !important;
}
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    max-width: 100% !important;
}
.service-card {
    max-width: 100% !important;
}

/* Fix DOT section - don't limit width */
.services-grid[style*="max-width: 400px"] {
    max-width: 100% !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Stats section fix */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.stat-box {
    padding: 40px 20px !important;
    border-radius: 10px !important;
}

/* DOT card alternate style */
.service-card-alt {
    border: 3px solid var(--primary-red) !important;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%) !important;
}
.service-card-alt .service-card-content {
    background: var(--primary-red) !important;
    color: white !important;
}
.service-card-alt h3 {
    color: white !important;
}
.service-card-alt p {
    color: rgba(255,255,255,0.9) !important;
}
.service-card-alt .btn-primary {
    background: white !important;
    color: var(--primary-red) !important;
}
.service-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Stats section - gray boxes on maroon */
.stats-section .stat-box {
    background: rgba(255,255,255,0.15) !important;
}
.stats-section .stat-number {
    color: #d4d4d4 !important;
}
.stats-section .stat-label {
    color: rgba(255,255,255,0.7) !important;
}

/* Hero secondary button - white/gray outline */
.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8) !important;
    color: white !important;
    background: transparent !important;
}
.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* Logo image */
.logo-img {
    max-height: 60px;
    width: auto;
}

/* Featured service cards (Knee & Neuropathy) */
.service-card-featured {
    border: 3px solid var(--primary-red) !important;
    box-shadow: 0 4px 20px rgba(144, 0, 25, 0.2) !important;
}
.service-card-featured .service-card-content {
    background: var(--primary-red) !important;
    color: white !important;
}
.service-card-featured h3 {
    color: white !important;
}
.service-card-featured p {
    color: rgba(255,255,255,0.9) !important;
}
.service-card-featured .btn-primary {
    background: white !important;
    color: var(--primary-red) !important;
}
.service-card-featured .btn-primary:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}

/* CTA secondary button - match hero style */
.cta-section .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8) !important;
    color: white !important;
    background: transparent !important;
}
.cta-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* ============================================
   SERVICE PAGE — VIDEO + REVIEWS GRID
   ============================================ */
.video-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 48px 0;
}
@media (max-width: 768px) {
    .video-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STATS GRID — MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stat-box {
        padding: 24px 20px;
    }
    .stat-number {
        font-size: 3rem !important;
        white-space: nowrap;
    }
}

/* Desktop/Mobile nav visibility */
.mobile-nav { display: none; }
@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .mobile-nav { display: none; }
    .mobile-nav.mobile-open { display: block; }
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero {
    animation: heroFade 0.8s ease forwards;
}
@keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .hero { animation: none; opacity: 1; }
}
