/* ==========================================================================
   Bay View Chiropractic - Modern Website Styles
   Brand Colors: Blue #4596C1, Orange #FC8F00
   Fonts: Georgia (logo), Avenir (body)
   ========================================================================== */

/* ==========================================================================
   Monthly Special Banner
   ========================================================================== */
.monthly-special-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2C2C2C 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.monthly-special-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.monthly-special-section.monthly-special-dark {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
    border-top: 3px solid #FC8F00;
}

.monthly-special-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.monthly-special-content {
    flex: 1;
}

.monthly-special-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.monthly-special-headline {
    color: #FC8F00;
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.monthly-special-offer {
    color: #fff;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1.3;
}

.monthly-special-details {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.93rem;
    margin-bottom: 0;
    max-width: 580px;
    line-height: 1.6;
}

.monthly-special-cta-wrap {
    flex-shrink: 0;
}

.monthly-special-cta {
    display: inline-block;
    background: #fff;
    color: #FC8F00;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.monthly-special-cta:hover {
    background: #2C2C2C;
    color: #fff;
}

.monthly-special-section.monthly-special-dark .monthly-special-cta:hover {
    background: #FC8F00;
    color: #fff;
}

.monthly-special-dismiss {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.monthly-special-dismiss:hover {
    color: #fff;
}

.monthly-special-teaser {
    display: inline-flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 12px 18px;
    background: rgba(252, 143, 0, 0.18);
    border: 1px solid rgba(252, 143, 0, 0.55);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.monthly-special-teaser:hover {
    background: rgba(252, 143, 0, 0.18);
    border-color: #FC8F00;
}

.monthly-special-teaser-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #FC8F00;
    margin-bottom: 3px;
}

.monthly-special-teaser-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .monthly-special-section {
        padding: 32px 0;
    }

    .monthly-special-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-right: 32px;
    }

    .monthly-special-cta-wrap {
        width: 100%;
    }

    .monthly-special-cta {
        display: block;
        text-align: center;
        width: 100%;
    }

    .monthly-special-dismiss {
        top: 16px;
        transform: none;
    }
}

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4596C1;
    --primary-orange: #FC8F00;
    --dark-gray: #2C2C2C;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --font-heading: 'Georgia', serif;
    --font-body: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    max-width: 100%;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    margin-top: 40px;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-top: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* Nav links white when hero is visible (transparent state) */
.navbar:not(.scrolled) .nav-menu a:not(.btn-primary) {
    color: white;
}

.navbar:not(.scrolled) .nav-menu a:not(.btn-primary)::after {
    background: white;
}

.navbar:not(.scrolled) .nav-menu a:not(.btn-primary):hover {
    color: rgba(255,255,255,0.75);
}

/* Schedule button inverted when transparent */
.navbar:not(.scrolled) .nav-menu .btn-primary {
    background: white;
    color: var(--primary-orange);
    border-color: white;
}

.navbar:not(.scrolled) .nav-menu .btn-primary:hover {
    background: var(--dark-gray);
    color: white;
    border-color: var(--dark-gray);
}

/* Logo white when transparent */
.navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* Hamburger lines white when transparent */
.navbar:not(.scrolled) .mobile-menu-toggle span {
    background: white;
}

/* Mobile menu open — always use dark text regardless of scroll state */
.navbar:not(.scrolled) .nav-menu.active a:not(.btn-primary) {
    color: var(--dark-gray);
}

.navbar:not(.scrolled) .nav-menu.active a:not(.btn-primary)::after {
    background: var(--dark-gray);
}

.navbar:not(.scrolled) .nav-menu.active a:not(.btn-primary):hover {
    color: var(--primary-blue);
}

.navbar:not(.scrolled) .nav-menu.active .btn-primary {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 6px; /* tightened desktop navbar height (was 10px); +8px top so the menu isn't flush against the window edge */
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn-primary):hover {
    color: var(--primary-blue);
}

.nav-menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.nav-menu a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    padding: 10px 0;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 1000;
    margin-top: 0px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Expanded hover zone - easier to mouse over */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 100%;
    z-index: 999;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-content a {
    color: var(--dark-gray);
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

/* Keep dropdown links dark regardless of navbar transparent/scrolled state */
.navbar:not(.scrolled) .nav-menu .nav-dropdown-content a {
    color: var(--dark-gray);
}

.nav-dropdown-content a::after {
    display: none;
}

.nav-dropdown-content a:hover {
    background: var(--light-gray);
    color: var(--primary-orange);
    padding-left: 28px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-large, .btn-secondary-large {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary, .btn-primary-large {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover, .btn-primary-large:hover {
    background: #E07E00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover, .btn-secondary-large:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Reviews button - Orange outline for better contrast */
.btn-reviews {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--primary-orange);
    font-size: 16px;
    background: transparent;
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: 8px;
}

.btn-reviews:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(252, 143, 0, 0.3);
}

/* CTA Button - Orange background for high visibility */
.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    background: var(--primary-orange);
    color: var(--white);
}

.btn-cta:hover {
    background: #E07E00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-large, .btn-secondary-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 206px;
    padding-bottom: 80px;
    background: radial-gradient(ellipse at 72% 38%, #FFB340 0%, #FC8F00 38%, #D06800 75%, #B85500 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    color: var(--white);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    line-height: 1.05;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-title .highlight {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 500;
}

.feature-icon {
    font-size: 24px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-trust-bar {
    display: flex;
    gap: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.trust-item {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.trust-item strong {
    font-size: 1.5rem;
    color: var(--white);
    font-family: var(--font-heading);
}

.trust-item span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.4s backwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-image {
    width: 360px;
    height: 360px;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.12), 0 24px 64px rgba(0, 0, 0, 0.22);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Diagonal section divider */
.hero-diagonal {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}
.hero-diagonal svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Hero primary button — white on orange background */
.btn-hero-primary {
    background: var(--white) !important;
    color: var(--primary-orange) !important;
    border-color: var(--white) !important;
    font-weight: 700 !important;
}
.btn-hero-primary:hover {
    background: rgba(255,255,255,0.88) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--dark-gray);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Why Different Section */
.why-different {
    background: var(--light-gray);
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.difference-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.card-icon {
    margin-bottom: 24px;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
}

.difference-card h3 {
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.difference-card p {
    color: var(--medium-gray);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.outcome-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.outcome-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.card-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link:hover {
    gap: 12px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 20px;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
}

.service-card h3 {
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-orange);
    gap: 12px;
}

.conditions-section {
    background: var(--primary-orange);
    padding: 60px;
    border-radius: 16px;
    text-align: center;
}

.conditions-section h3 {
    margin-bottom: 32px;
    color: var(--white);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.condition-item {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
    cursor: pointer;
}

.condition-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* Technology Section */
.technology {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.technology .section-label {
    background: var(--primary-orange);
}

.technology .section-header h2,
.technology .section-subtitle {
    color: var(--white);
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.tech-item.reverse .tech-content {
    order: 1;
}

.tech-item.reverse .tech-image {
    order: 2;
}

.tech-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Image Slider for Posture Correction Section */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.slider-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
    position: relative;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--primary-orange);
    border-color: var(--white);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.tech-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.tech-content p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.tech-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit {
    font-weight: 500;
    font-size: 1.125rem;
}

/* Reviews Section */
.reviews {
    background: var(--light-gray);
}

.review-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}

.stat {
    text-align: center;
}

.stars {
    color: var(--primary-orange);
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-text {
    font-weight: 600;
    color: var(--medium-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--primary-orange);
    font-size: 20px;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 24px;
    line-height: 1.8;
}

.reviewer strong {
    display: block;
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.reviewer span {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

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

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.about-content .section-label {
    display: inline-block;
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-text {
    color: var(--medium-gray);
    margin-bottom: 24px;
    font-size: 1.125rem;
    line-height: 1.8;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
    padding: 40px 0;
    border-top: 2px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
}

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

.credential-item strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.credential-item span {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* Why Are You Here Section */
.why-here {
    background: linear-gradient(150deg, #5BAED4 0%, #4596C1 40%, #2E7BAD 100%);
    padding: 100px 0 80px;
}

.why-here-header {
    text-align: center;
    margin-bottom: 36px;
}

.why-here-header h2 {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.why-here-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
}

.why-here-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-here-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-decoration: none;
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--primary-orange);
}

.why-here-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.why-here-card-number {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-orange);
}

.why-here-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.25;
    margin: 0;
}

.why-here-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.why-here-list li {
    font-size: 0.975rem;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.why-here-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #bbb;
    font-size: 0.8rem;
}

.why-here-cta {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-top: 8px;
    display: inline-block;
    transition: letter-spacing 0.2s ease;
}

/* All cards use orange accents — blue section bg already provides the blue */

.why-here-card:hover .why-here-cta {
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .why-here-grid {
        grid-template-columns: 1fr;
    }
    .why-here-header h2 {
        font-size: 2rem;
    }
    .why-here-card {
        padding: 28px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #E07E00 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* Special styling for buttons in CTA section */
.cta-section .btn-primary-large {
    background: var(--white);
    color: var(--primary-orange);
    border: 3px solid var(--white);
}

.cta-section .btn-primary-large:hover {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
}

.cta-section .btn-secondary-large {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
}

.cta-section .btn-secondary-large:hover {
    background: var(--white);
    color: var(--primary-orange);
}

.cta-subtext {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: var(--light-gray);
}

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

.contact-info h2 {
    margin-bottom: 40px;
}

.contact-detail {
    margin-bottom: 32px;
}

.contact-detail strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.contact-detail p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.contact-detail a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail a:hover {
    color: var(--primary-orange);
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--medium-gray);
}

.location-feature span {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.25rem;
}

.contact-map iframe {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 32px;
}

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

.footer-col h4 {
    color: var(--primary-orange);
    font-family: var(--font-body);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.8;
}

.footer-location {
    margin-top: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
    padding-left: 4px;
}

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

.footer-section h4 {
    color: var(--primary-orange);
    font-family: var(--font-body);
    font-size: 1.125rem;
    margin-bottom: 12px;
}

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

.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .tech-item,
    .tech-item.reverse {
        grid-template-columns: 1fr;
    }
    
    .tech-item.reverse .tech-content,
    .tech-item.reverse .tech-image {
        order: initial;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile navbar — extra top padding so the logo clears the status bar/notch */
    .navbar {
        height: 72px;
        padding-top: 16px; /* was 8px — more breathing room at the top on mobile */
    }

    .nav-wrapper {
        height: 56px;
        padding-top: 0;
        align-items: center;
    }

    /* Fix mobile hero height */
    .hero {
        min-height: 70vh;
        padding-top: 102px; /* 72px navbar + 30px gap */
        padding-bottom: 40px;
    }

    /* Hide scroll indicator on mobile — overlaps Dr. Fritz badge */
    .scroll-indicator {
        display: none;
    }

    .hero .container {
        width: 100%;
        padding: 0 20px;
        display: block; /* override grid — stack content only */
    }

    /* Hide doctor photo on mobile — frees layout from 360px constraint */
    .hero-image {
        display: none;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-cta .btn-primary-large,
    .hero-cta .btn-secondary-large {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .hero-trust-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .credentials {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* AOS Animation Support */
[data-aos] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(100px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-80px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(80px);
}

/* Service Detail Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2C5C7C 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.service-detail-section {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-detail-content h2 {
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.service-detail-content h3 {
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.service-detail-content .lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.conditions-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.condition-item-detail {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.condition-item-detail strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.condition-item-detail p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.benefits-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.benefits-list li strong {
    color: var(--primary-blue);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2C5C7C 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

.cta-box h3 {
    color: var(--white);
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 32px;
    opacity: 0.9;
}

.service-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.sidebar-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 20px;
}

.quick-facts {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    padding: 8px 0;
    color: var(--text-medium);
}

.office-hours {
    list-style: none;
    padding: 0;
}

.office-hours li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
}

.office-hours li:last-child {
    border-bottom: none;
}

/* Mobile Responsive - Service Pages */
@media (max-width: 968px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-sidebar {
        position: static;
    }
    
    .conditions-list {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
}

/* Online Booking Section */
.booking-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.booking-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.booking-content h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.booking-content > p {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.booking-widget-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 24px;
    max-width: 800px;
    min-height: 600px;
}

.booking-widget-container #intakeq {
    margin: 0 auto;
    min-height: 500px;
}

.booking-note {
    font-size: 1rem;
    color: var(--text-medium);
}

.booking-note a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.booking-note a:hover {
    text-decoration: underline;
}

/* Rehabilitation Sections */
.rehab-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--light-gray);
    border-radius: 16px;
    border-left: 5px solid var(--primary-orange);
}

.rehab-image-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.rehab-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.rehab-content h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.rehab-content p {
    margin-bottom: 16px;
}

.rehab-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.rehab-content ul li {
    margin-bottom: 8px;
}

@media (max-width: 968px) {
    .rehab-section {
        padding: 24px;
    }
}

/* Nutrition & Supplements Page */
.fullscript-banner {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 32px 0 48px;
    border: 2px solid var(--primary-blue);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.brand-category {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-category h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.brand-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-category ul li {
    padding: 6px 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .fullscript-banner {
        padding: 24px;
    }
}

/* Orthotics Page */
.comparison-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 48px 0;
}

.comparison-card {
    padding: 32px;
    border-radius: 16px;
    border-left: 5px solid;
}

.comparison-card.bad {
    background: #fff5f5;
    border-left-color: #e53e3e;
}

.comparison-card.good {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-left-color: #38a169;
    border-left-width: 8px;
    box-shadow: 0 8px 24px rgba(56, 161, 105, 0.2);
    transform: scale(1.02);
    position: relative;
}

.comparison-card.good::before {
    content: '⭐ RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 32px;
    background: #38a169;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.comparison-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.comparison-card ul {
    margin: 16px 0;
    padding-left: 24px;
}

.comparison-card ul li {
    margin-bottom: 8px;
}

.comparison-card .verdict {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(0,0,0,0.1);
    font-style: italic;
}

.orthotics-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.option-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-blue);
}

.option-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 12px;
}

.option-card ul {
    margin: 16px 0;
    padding-left: 20px;
}

.option-card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .orthotics-options {
        grid-template-columns: 1fr;
    }
}

/* Chiropractic Care Page */
.treatment-approach-box {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-radius: 16px;
    margin: 48px 0;
    border-left: 5px solid var(--primary-blue);
}

.treatment-approach-box h3 {
    margin-top: 0;
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.technique-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.technique-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 8px;
}

.technique-card p:last-child {
    margin-bottom: 0;
}

.faq-item {
    margin: 32px 0;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
}

.faq-item h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 12px;
}

.faq-item p {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .technique-grid {
        grid-template-columns: 1fr;
    }
    
    .treatment-approach-box {
        padding: 24px;
    }
}

/* Posture Page */
.posture-tech-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.posture-tech-section h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.xray-comparison {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
}

.xray-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
}

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

.xray-image img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.xray-caption {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 600;
}

@media (max-width: 968px) {
    .xray-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .posture-tech-section {
        padding: 24px;
    }
}

/* Social Media Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

.social-links svg {
    transition: all 0.3s ease;
}
/* Fix for visited link color - CORRECTED VERSION */
/* This ONLY affects visited links, not normal link colors */

/* Navigation links - visited state only */
.nav-menu a:visited:not(.btn-primary),
.nav-dropdown-content a:visited {
    color: inherit; /* Keep original nav color when visited */
}

/* Footer links - visited state keeps white */
.footer a:visited {
    color: white;
}

/* Content area links - visited = readable orange instead of purple */
.service-detail-content a:visited:not([class*="btn"]),
.benefits-list a:visited,
.technique-card a:visited {
    color: #FC8F00;
}

/* Button links - visited state maintains button styling */
.btn-primary:visited,
.btn-cta:visited,
.btn-primary-large:visited {
    color: white;
}

.btn-secondary:visited,
.btn-secondary-large:visited {
    color: white;
}

/* CTA section overrides — white bg button must keep orange text even when visited */
.cta-section .btn-primary-large:visited {
    color: var(--primary-orange);
}

/* Sidebar links - visited = brand orange */
.service-detail-sidebar a:visited:not([class*="btn"]) {
    color: #FC8F00;
}

/* General fallback - visited links = brand orange instead of purple */
/* But exclude buttons and navigation */
a:visited:not([class*="btn"]):not(.nav-menu a):not(.nav-dropdown-content a) {
    color: #FC8F00;
}

/* ==========================================================================
   Static Review Carousel (home page)
   ========================================================================== */
.rc-wrap {
    position: relative;
    padding: 0 52px;
}

.rc-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    align-items: stretch;
}

.rc-track::-webkit-scrollbar { display: none; }

.rc-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
}

.rc-stars {
    color: #FFA500;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rc-text {
    font-size: 0.91rem;
    line-height: 1.65;
    color: #444;
    flex: 1;
    margin-bottom: 16px;
}

.rc-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #F0F0F0;
    margin-top: auto;
}

.rc-name {
    font-weight: 700;
    font-size: 0.87rem;
    color: #2C2C2C;
}

.rc-source {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #E8F0FE;
    color: #4285F4;
    letter-spacing: 0.03em;
}

.rc-source.yelp {
    background: #FFF0EE;
    color: #D32323;
}

.rc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2C2C;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.rc-btn:hover {
    background: #FC8F00;
    color: white;
    border-color: #FC8F00;
}

.rc-prev { left: 0; }
.rc-next { right: 0; }

@media (max-width: 960px) {
    .rc-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 600px) {
    .rc-wrap { padding: 0 38px; }
    .rc-card { flex: 0 0 85%; }
}

/* ==========================================================================
   Inline Pull Quote (condition / service pages)
   ========================================================================== */
.pull-quote {
    background: #FEF0D0;
    border-left: 5px solid #FC8F00;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 28px 0 32px;
    font-style: normal;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.pull-quote-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
}

.pull-quote-attr {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pull-quote-stars { color: #FFA500; font-size: 0.85rem; }

.pull-quote-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2C2C2C;
}

.pull-quote-source {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #E8F0FE;
    color: #4285F4;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Patient Review Callout (condition / service pages)
   ========================================================================== */
.prc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 36px;
}

.prc-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-left: 4px solid #FC8F00;
    display: flex;
    flex-direction: column;
}

.prc-quote {
    font-size: 3.5rem;
    line-height: 1;
    color: #FC8F00;
    opacity: 0.25;
    font-family: Georgia, serif;
    margin-bottom: -8px;
}

.prc-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #444;
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
}

.prc-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #F0F0F0;
}

.prc-stars {
    color: #FFA500;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.prc-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2C2C2C;
}

.prc-source {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #E8F0FE;
    color: #4285F4;
    letter-spacing: 0.03em;
    margin-left: auto;
}

/* PracticeFlux platform credit in footer-bottom — sits opposite the copyright
   via the existing .footer-bottom flex layout (justify-content: space-between). */
.footer-credit {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin: 0;
}
.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-credit a:hover {
    color: var(--primary-orange, #ff7043);
}

/* === PracticeFlux hub directory — managed by the platform === */
/* Styles for pf_render_service_directory()/pf_render_condition_directory()
   (schema-builder.php). Uses the standard alias variables with neutral
   fallbacks so the same block drops into any client stylesheet; override
   .pf-hub-* rules AFTER this block to restyle per site (last rule wins
   at equal specificity). */
.pf-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pf-hub-card {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  padding: 1.625rem;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e5e0d8);
  border-radius: var(--radius-lg, 6px);
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,.05));
  color: inherit;
  text-decoration: none;
}
.pf-hub-card--link {
  transition: box-shadow .2s ease, transform .2s ease;
}
.pf-hub-card--link:hover {
  box-shadow: var(--shadow-md, 0 4px 24px rgba(0,0,0,.08));
  transform: translateY(-2px);
}
.pf-hub-num {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent, #8c7238);
  border: 1px solid var(--border, #e5e0d8);
  border-radius: var(--radius, 3px);
  padding: .3rem .55rem;
  line-height: 1;
  flex-shrink: 0;
}
.pf-hub-body { min-width: 0; }
.pf-hub-name {
  margin: 0 0 .4rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.pf-hub-desc {
  margin: 0 0 .75rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-muted, #6b6660);
}
.pf-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .75rem;
}
.pf-hub-tag {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--bg-alt, #f2efe9);
  color: var(--text-muted, #6b6660);
  white-space: nowrap;
}
.pf-hub-more {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent, #8c7238);
}
.pf-hub-empty {
  text-align: center;
  color: var(--text-muted, #6b6660);
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .pf-hub-grid { grid-template-columns: 1fr; }
}
/* === End PracticeFlux hub directory === */

/* BVC brand overrides for the platform hub directory — placed AFTER the
   fenced block so they win the cascade at equal specificity. */
.pf-hub-num,
.pf-hub-more { color: var(--primary-blue); }
.pf-hub-tag { background: var(--light-gray); color: var(--medium-gray); }
.pf-hub-card { border-radius: 8px; border-color: #e8e8e8; }
