:root {
    /* Colors */
    --color-primary: #253270;
    --color-primary-light: #3a4b9f;
    --color-primary-dark: #1a2455;
    --color-accent: #e76122;
    --color-accent-light: #ff8a50;
    --color-text-main: #2c3e50;
    --color-text-light: #64748b;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;
    --color-teal: #0D4750;
    --color-teal-light: rgba(13, 71, 80, 0.65);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 97, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 97, 34, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
}

.header.scrolled::before {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: white;
    position: relative;
    font-size: 0.95rem;
}

.header.scrolled .nav-link {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 80, 0.75) 0%, rgba(13, 71, 80, 0.55) 50%, rgba(13, 71, 80, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Intro Section (Split) */
.intro-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    position: relative;
}

.intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.intro-subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.check-icon {
    color: var(--color-accent);
    background: rgba(231, 97, 34, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Emergency CTA Bar */
.cta-bar {
    background-color: var(--color-bg-light);
    padding: 3rem 0;
    text-align: center;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-family: var(--font-serif);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Location Cards */
.location-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 71, 80, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.location-card h3 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.location-info {
    line-height: 1.8;
    color: var(--color-text-light);
}

.icon-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.icon-text .icon {
    color: var(--color-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.condition-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    text-align: center;
}

.condition-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(231, 97, 34, 0.2);
}

/* Soft Pastel Background Variations for Conditions */
.bg-soft-lavender {
    background-color: #F3E5F5;
}

.bg-soft-mint {
    background-color: #E8F5E9;
}

.bg-soft-peach {
    background-color: #FFF3E0;
}

.bg-soft-sky {
    background-color: #E3F2FD;
}

.bg-soft-rose {
    background-color: #FCE4EC;
}

.bg-soft-lemon {
    background-color: #FFF9C4;
}

.condition-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: inline-block;
    opacity: 0.7;
    color: var(--color-primary);
}

.condition-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.condition-card p {
    color: var(--color-text-light);
}

/* Services - Split Layout */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.split-section:nth-child(even) {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.split-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.split-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.split-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.split-link:hover {
    gap: 0.8rem;
}

/* Team & Provider Sections */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.provider-card {
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.provider-card-img {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2/3;
    background-color: var(--color-primary-dark);
}

.provider-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.provider-card-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

.provider-card-img.placeholder svg {
    width: 40%;
    height: 40%;
}

.provider-card-content {
    padding: 2rem;
}

.provider-card-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-sans);
}

.provider-card-content .degree {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.provider-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.provider-card-content p:last-child {
    margin-bottom: 0;
}

/* Horizontal Variant for About Page */
@media (min-width: 768px) {
    .provider-card.horizontal {
        flex-direction: row;
        align-items: stretch;
        min-height: 480px; /* Standardize height to match longer bios (like Dr. Gatla's) */
    }

    .provider-card.horizontal .provider-card-img {
        width: 400px;
        min-width: 400px;
        aspect-ratio: auto;
    }

    .provider-card.horizontal .provider-card-content {
        flex: 1;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Compact Variant for Homepage */
.provider-card.compact .provider-card-img {
    aspect-ratio: 4/5; /* Slightly less tall than full portrait */
}

.provider-card.compact .provider-card-content {
    padding: 1.5rem;
    text-align: center;
}

.provider-card.compact .provider-card-content h3 {
    font-size: 1.2rem;
}

.provider-card.compact .provider-card-content .degree {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Contact & Map Section */
.contact-map-section {
    display: flex;
    gap: 0;
    background: white;
}

.contact-info-panel {
    flex: 1;
    padding: 5rem;
    background: white;
}

.map-panel {
    flex: 1;
    min-height: 500px;
    background: #eee;
}

/* Blogs */
.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Stats Section (About Page) */
.stats-section {
    background-color: var(--color-primary);
    color: white;
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item.wait-less-stat h2 {
    font-size: 3rem; /* Reduced for desktop aesthetic */
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Why Choose Us Cards (About Page) */
.feature-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-number {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    font-family: var(--font-serif);
    line-height: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 50, 112, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card:hover .feature-icon {
    background-color: var(--color-primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Values Grid (About Page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Mobile */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .split-section,
    .intro-split,
    .contact-map-section {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .split-image,
    .intro-image {
        width: 100%;
        height: 300px;
    }

    .provider-feature {
        flex-direction: column;
    }

    .provider-feature-img {
        height: 300px;
        min-height: auto;
    }

    .provider-feature-content {
        padding: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-panel {
        padding: 3rem 1.5rem;
    }

    .map-panel {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }

    .stat-item h2 {
        font-size: 3rem; /* Reduced from 4rem for mobile */
    }

    /* Target specific 'Wait-Less' text to be even smaller as requested */
    .stat-item.wait-less-stat h2 {
        font-size: 2.2rem; /* Specifically for Wait-Less */
    }

    .appointment-cta {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        color: var(--color-text-main);
        font-size: 1.5rem;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .header.scrolled .mobile-toggle,
    .mobile-toggle.active {
        color: var(--color-primary);
    }

    .hero-content {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Wait-Less font size refinement */
    .stat-item.wait-less-stat h2 {
        font-size: 1.8rem !important;
    }

    /* Ready to start your journey heading padding */
    .appointment-cta h2, 
    .services-cta h2 {
        padding-top: 2rem;
    }

    /* Inner padding for CTA boxes */
    .services-cta {
        padding: 4rem 2rem !important;
        margin: 2rem auto;
    }

    /* Fix for content touching edges on mobile */
    .section {
        padding: 3rem 0;
    }

    .intro-text,
    .intro-image,
    .split-content,
    .split-image {
        padding-left: 0;
        padding-right: 0;
    }

    .provider-card.horizontal {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero .hero-content div {
        flex-direction: column;
        align-items: center;
    }
}