/* ==========================================
   SECOND MOUNTAIN INTERNAL MEDICINE
   Modern, Professional Healthcare Website
   ========================================== */

/* ==========================================
   CSS Variables & Base Styles
   ========================================== */
:root {
    /* Color Palette - Healthcare Blues & Greens */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --secondary-light: #10b981;

    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --white: #ffffff;

    /* Accent Colors */
    --accent-blue: #dbeafe;
    --accent-green: #d1fae5;
    --error: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 2rem;
    --section-padding-mobile: 3rem 1.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.large-text {
    font-size: 1.25rem;
    line-height: 1.75;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title.centered {
    text-align: center;
}

.section-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-intro.centered {
    text-align: center;
}

.subsection-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.subsection-title.centered {
    text-align: center;
}

.highlight-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-image {
    height: 100px;
    width: auto;
    max-width: 300px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-phone {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-phone:hover {
    background-color: var(--primary-dark);
}

.nav-phone::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1003;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Page Header (Inner Pages)
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Mobile Sticky Call Button
   ========================================== */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.875rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    font-family: var(--font-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

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

/* ==========================================
   FAQ Group Titles
   ========================================== */
.faq-group-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-group-title:first-child {
    margin-top: 0;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.trust-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item {
    display: inline-block;
}

.trust-divider {
    color: rgba(255, 255, 255, 0.5);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================
   Problem Solution Section
   ========================================== */
.problem-solution {
    background-color: var(--white);
}

.problem-column {
    background-color: var(--accent-blue);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
}

.solution-column {
    background-color: var(--accent-green);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--secondary-color);
}

.problem-column .section-title {
    color: var(--primary-color);
}

.solution-column .section-title {
    color: var(--secondary-color);
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.card-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    gap: 0.75rem;
}

/* ==========================================
   Who For Section
   ========================================== */
.who-for {
    background-color: var(--background-light);
}

/* ==========================================
   Why Section
   ========================================== */
.why-section {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.why-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Quick FAQ
   ========================================== */
.quick-faq {
    background-color: var(--background-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    background-color: var(--white);
}

.about-intro {
    margin-bottom: 4rem;
}

.model-of-care {
    background-color: var(--accent-blue);
    padding: 3rem;
    border-radius: var(--radius-xl);
    margin-bottom: 4rem;
}

.comparison-table {
    margin-bottom: 4rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: var(--white);
}

th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--background-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

.content-box {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.content-box h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-box h4:first-child {
    margin-top: 0;
}

/* ==========================================
   Doctor Profile
   ========================================== */
.doctor-profile {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* Doctor Intro - Photo + Bio side by side */
.doctor-intro {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.doctor-image-wrapper {
    flex-shrink: 0;
}

.doctor-headshot {
    width: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.doctor-intro-text .large-text {
    margin-bottom: 0;
}

/* Career Timeline */
.timeline-heading,
.credentials-heading {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.career-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-light);
}

.timeline-item {
    position: relative;
    padding: 0.25rem 0 2.5rem 1.75rem;
}

.timeline-item:last-child {
    padding-bottom: 0.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.85rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color), 0 0 12px rgba(37, 99, 235, 0.25);
}

.timeline-year {
    display: inline-block;
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary-color);
    font-size: 0.9375rem;
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: var(--text-secondary);
    line-height: 1.6;
    background-color: var(--background-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

/* Timeline-to-credentials spacer */
.credentials-heading {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Credential Chips */
.credentials-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.credential-chip {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--primary-light);
}

/* Outside the Clinic */
.outside-clinic {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.outside-clinic h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.outside-clinic-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.outside-clinic-text {
    flex: 1;
}

.outside-clinic-text p {
    margin-bottom: 0;
    line-height: 1.8;
}

.outside-clinic-photo {
    flex-shrink: 0;
}

.family-photo {
    width: 250px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ==========================================
   Lists
   ========================================== */
.checkmark-list {
    list-style: none;
    margin: 1.5rem 0;
}

.checkmark-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.checkmark-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.numbered-list {
    list-style: none;
    counter-reset: item;
    margin: 1.5rem 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    line-height: 1.6;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ==========================================
   Who We Serve Detailed
   ========================================== */
.who-serve-detailed {
    background-color: var(--background-light);
}

.serve-section {
    margin-bottom: 4rem;
}

.serve-section:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Services Section
   ========================================== */
.services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    line-height: 1.7;
}

/* ==========================================
   Medicare Section
   ========================================== */
.medicare-section {
    background-color: var(--background-light);
}

.cta-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
    border: 2px solid var(--primary-color);
}

.cta-box .large-text {
    margin-bottom: 0;
    color: var(--text-primary);
}

.cta-box a:not(.btn) {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================
   Service Area
   ========================================== */
.service-area {
    background-color: var(--white);
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.community {
    background-color: var(--accent-blue);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

/* ==========================================
   Get Started Section
   ========================================== */
.get-started {
    background-color: var(--background-light);
}

/* ==========================================
   First Visit Section
   ========================================== */
.first-visit {
    background-color: var(--white);
}

.visit-phase {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--secondary-color);
}

.visit-phase h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.visit-phase ul {
    list-style: none;
}

.visit-phase li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.visit-phase li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
    background-color: var(--background-light);
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item-full {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.faq-question-full {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.faq-answer-full {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    background-color: var(--white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: var(--radius-lg);
}

.contact-item svg {
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

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

.contact-item a {
    font-weight: 700;
    font-size: 1.125rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    margin-top: 1rem;
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .two-column {
        gap: 2rem;
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */
@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        width: 100%;
    }

    .nav-content {
        flex-direction: row;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        align-items: flex-start;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1002;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.875rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.0625rem;
    }

    .nav-phone {
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
        padding: 0.875rem 1rem;
        background-color: var(--primary-color);
        color: var(--white);
        border-radius: var(--radius-md);
        font-size: 1.125rem;
        font-weight: 700;
        border-bottom: none;
    }

    .nav-phone:hover {
        background-color: var(--primary-dark);
        color: var(--white);
    }

    .logo-image {
        height: 48px;
        width: auto;
        max-width: 180px;
        position: relative;
        z-index: 1001;
    }

    .mobile-call-btn {
        display: block;
    }

    /* Add bottom padding to body so sticky call button doesn't cover content */
    body {
        padding-bottom: 3.25rem;
    }

    .page-header {
        padding: 5rem 1.5rem 2.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1.0625rem;
    }

    .back-to-top {
        bottom: 4.5rem;
    }

    /* Timeline mobile adjustments */
    .career-timeline {
        padding-left: 1.75rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
    }

    .timeline-item::before {
        left: -2.15rem;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 0.625rem 0.75rem;
    }

    .credential-chip {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .hero {
        padding: 5rem 1.5rem 6rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-bar {
        font-size: 0.875rem;
        gap: 0.75rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .communities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-intro {
        flex-direction: column;
        text-align: center;
    }

    .doctor-headshot {
        width: 180px;
    }

    .outside-clinic-content {
        flex-direction: column;
    }

    .family-photo {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .back-to-top {
        bottom: 4.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 1rem;
    }
}

/* ==========================================
   Privacy Policy Page
   ========================================== */
.privacy-policy-section {
    padding-top: 7rem;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content .content-box {
    margin-bottom: 1.5rem;
}

.privacy-content .subsection-title {
    font-size: 1.5rem;
}

.privacy-content p,
.privacy-content li {
    line-height: 1.8;
}


/* ==========================================
   Accessibility & Print Styles
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }

    .card, .content-box, .service-card {
        border: 2px solid var(--text-primary);
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .back-to-top,
    .hero-cta,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="tel:"]::after {
        content: " (" attr(href) ")";
    }
}
