/* ============================================
   Brain Mind Harmony - Shared Stylesheet
   Creative Direction: David Ogilvy
   "Tell the truth, but make the truth fascinating."
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-cream: #F7F5F2;
    --color-warm-white: #FDFCFA;
    --color-text: #1E1E1E;
    --color-text-secondary: #5A5856;
    --color-accent: #4A6B5D;
    --color-accent-hover: #3A5549;
    --color-border: #E2DED8;
    --color-warm-gray: #8C8580;
    --color-light-sage: #E8EFEB;

    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-content: 720px;
    --max-width-narrow: 600px;
}

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

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

body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 1.875rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
    background-size: 100% 1px;
}

/* Links that should always show underline */
.content-block a,
.faq-answer a,
.card a,
p a {
    background-size: 100% 1px;
}

.content-block a:hover,
.faq-answer a:hover,
.card a:hover,
p a:hover {
    background-size: 100% 2px;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--max-width-content);
}

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

.text-secondary {
    color: var(--color-text-secondary);
}

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm-gray);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background-color: var(--color-warm-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    text-decoration: none;
}

.site-logo h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--color-text);
}

.site-logo .tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-list a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    border-bottom-color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    padding: var(--space-xs) 0;
}

.nav-dropdown-toggle::after {
    content: '';
    border: solid var(--color-text);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-top: -2px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-warm-white);
    border: 1px solid var(--color-border);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-toggle::after {
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background-color: var(--color-light-sage);
    padding-left: calc(var(--space-md) + 4px);
}

/* Utility Navigation */
.utility-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.utility-nav .phone {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-image: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

.btn--secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    box-shadow: none;
}

.btn--secondary:hover {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 107, 93, 0.2);
}

/* White outline button for dark backgrounds (hero images) */
.btn--white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.btn--white:hover {
    background-color: #ffffff;
    color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background-color: var(--color-warm-white);
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--color-border);
}

/* Hero with background image - Ogilvy style */
.hero--image {
    position: relative;
    /* JPEG fallback for older browsers */
    background-image: url('../images/hero-image.jpg');
    /* WebP for modern browsers (97%+ support) - 96% smaller file */
    background-image: image-set(
        url('../images/hero-image.webp') type('image/webp'),
        url('../images/hero-image.jpg') type('image/jpeg')
    );
    background-image: -webkit-image-set(
        url('../images/hero-image.webp') type('image/webp'),
        url('../images/hero-image.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-3xl) 0;
    border-bottom: none;
}

.hero--image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(30, 30, 30, 0.85) 0%,
        rgba(30, 30, 30, 0.6) 40%,
        rgba(30, 30, 30, 0.2) 70%,
        rgba(30, 30, 30, 0) 100%
    );
    z-index: 1;
}

.hero--image .container {
    position: relative;
    z-index: 2;
}

.hero--image .hero__content {
    max-width: 720px;
}

.hero--image .hero__label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hero--image .hero__headline {
    color: #ffffff;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero--image .hero__subhead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1875rem;
}

.hero--image .hero__subhead--tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.hero--image .hero__credentials {
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid var(--color-accent);
    color: var(--color-text);
}

.hero--image .hero__credentials p {
    color: var(--color-text);
}

.hero--compact {
    padding: var(--space-xl) 0;
}

.hero__content {
    max-width: var(--max-width-content);
}

.hero__label {
    margin-bottom: var(--space-sm);
}

.hero__headline {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero__subhead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero__credentials {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background-color: var(--color-cream);
    border-left: 3px solid var(--color-accent);
}

.hero__credentials p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.hero__cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ============================================
   Availability Strip
   ============================================ */
.availability-strip {
    background-color: var(--color-accent);
    color: white;
    padding: var(--space-sm) 0;
}

.availability-strip__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
}

.availability-strip__item {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-strip__item::before {
    content: '✓';
    font-weight: bold;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section--cream {
    background-color: var(--color-cream);
}

.section--white {
    background-color: var(--color-warm-white);
}

.section--bordered {
    border-bottom: 1px solid var(--color-border);
}

.section__header {
    margin-bottom: var(--space-xl);
}

.section__header--centered {
    text-align: center;
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background-color: var(--color-warm-white);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.card__label {
    margin-bottom: var(--space-sm);
}

.card__title {
    margin-bottom: var(--space-sm);
}

.card--highlight {
    border-left: 3px solid var(--color-accent);
}

.card--highlight:hover {
    border-left-width: 4px;
}

/* Two Column Card Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* ============================================
   Content Layouts
   ============================================ */
.content-block {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.content-block--wide {
    max-width: var(--max-width);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Sidebar Layout */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar .card {
    margin-bottom: var(--space-md);
}

/* ============================================
   Lists
   ============================================ */
.content-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.content-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    padding-left: var(--space-md);
    position: relative;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.content-list li:last-child {
    border-bottom: none;
}

/* Inline List */
.inline-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.inline-list li {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    background-color: var(--color-light-sage);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
}

/* Credentials List */
.credentials-list {
    list-style: none;
}

.credentials-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list .credential-title {
    font-weight: 700;
}

.credentials-list .credential-detail {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Photo Placeholders
   ============================================ */
.photo-placeholder {
    background-color: var(--color-border);
    padding: var(--space-xl);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-style: italic;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder--portrait {
    aspect-ratio: 3/4;
    min-height: auto;
}

.photo-placeholder--landscape {
    aspect-ratio: 16/9;
    min-height: auto;
}

.photo-placeholder--square {
    aspect-ratio: 1/1;
    min-height: auto;
}

/* Doctor Portrait Image */
.doctor-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* ============================================
   Quote / Blockquote
   ============================================ */
blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--color-warm-gray);
}

/* Philosophy Quote */
.philosophy-quote {
    background-color: var(--color-warm-white);
    padding: var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.philosophy-quote p {
    font-size: 1.5rem;
    font-style: italic;
    max-width: var(--max-width-content);
    margin: 0 auto;
    color: var(--color-text);
}

/* ============================================
   Contact Info
   ============================================ */
.contact-info {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.contact-info dt {
    font-weight: 500;
    color: var(--color-warm-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-info dd {
    margin-bottom: var(--space-md);
}

.contact-info a {
    color: var(--color-text);
}

/* ============================================
   Insurance Grid
   ============================================ */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    list-style: none;
}

.insurance-grid li {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: var(--space-sm);
    background-color: var(--color-cream);
    border: 1px solid var(--color-border);
}

/* ============================================
   FAQ / Accordion
   ============================================ */
.faq-list {
    max-width: var(--max-width-content);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

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

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    list-style: none;
    position: relative;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-lg) - 4px);
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

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

.timeline-year {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-detail {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Steps
   ============================================ */
.steps {
    counter-reset: step;
    list-style: none;
}

.step {
    position: relative;
    padding-left: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-left: 2px solid var(--color-border);
    margin-left: var(--space-md);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: calc(-1 * var(--space-md) - 14px);
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.step-title {
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.step-content {
    color: var(--color-text-secondary);
}

/* ============================================
   Tables
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.data-table th,
.data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    font-weight: 500;
    color: var(--color-warm-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-cream);
}

.data-table tbody tr:hover {
    background-color: var(--color-cream);
}

/* ============================================
   Alert / Notice Boxes
   ============================================ */
.notice {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.notice--info {
    background-color: var(--color-light-sage);
    border-left: 3px solid var(--color-accent);
}

.notice--warning {
    background-color: #FFF8E6;
    border-left: 3px solid #D4A017;
}

.notice--crisis {
    background-color: #FFF0F0;
    border-left: 3px solid #C44;
}

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-cream);
    padding: var(--space-xl) 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-brand h2 {
    color: var(--color-cream);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.footer-brand .tagline {
    font-style: italic;
    color: var(--color-warm-gray);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.footer-section h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-section address {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--color-cream);
    opacity: 0.9;
}

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

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
    margin-bottom: 0;
}

.footer-crisis {
    background-color: rgba(255,255,255,0.05);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.footer-crisis strong {
    color: var(--color-cream);
}

/* ============================================
   Practical Info Bar
   ============================================ */
.practical-bar {
    background-color: var(--color-cream);
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.practical-bar__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
    }

    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero__headline {
        font-size: 2rem;
    }

    .hero__subhead {
        font-size: 1.125rem;
    }

    /* Hero image mobile adjustments - use smaller 17KB image */
    .hero--image {
        min-height: 60vh;
        background-position: center center;
        background-image: url('../images/hero-image-mobile.webp');
        background-image: image-set(
            url('../images/hero-image-mobile.webp') type('image/webp'),
            url('../images/hero-image.jpg') type('image/jpeg')
        );
    }

    .hero--image .hero__headline {
        font-size: 2rem;
    }

    .hero--image .hero__subhead {
        font-size: 1rem;
    }

    /* Mobile Navigation - hide desktop nav, show hamburger */
    .primary-nav .nav-list {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

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

    /* Doctor portrait - constrain on mobile */
    .doctor-portrait {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    /* Grid Adjustments */
    .card-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .availability-strip__inner {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .practical-bar__inner {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    .hero__cta {
        flex-direction: column;
    }

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

/* Small Mobile */
@media (max-width: 479px) {
    .insurance-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: var(--space-sm);
    }

    .container {
        padding: 0 var(--space-sm);
    }
}

/* ============================================
   Mobile Call Bar (Sticky Bottom)
   For people in distress - phone always visible
   ============================================ */
.mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-accent);
    padding: 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-call-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    background-image: none;
    min-height: 56px;
}

.mobile-call-bar a:hover {
    background-color: var(--color-accent-hover);
}

.mobile-call-bar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   Mobile Navigation Overlay
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Enhanced Mobile Styles (max-width: 768px)
   Designed for people in vulnerable states
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile call bar */
    .mobile-call-bar {
        display: block;
    }

    /* Add padding for sticky call bar */
    body {
        padding-bottom: 56px;
    }

    /* Typography - readable without zooming */
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.15rem;
    }

    p, li {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Prevent long words from breaking layout */
    h1, h2, h3, p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Hero adjustments */
    .hero {
        padding: var(--space-xl) 0;
    }

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

    .hero__subhead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero__credentials {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .hero__credentials p {
        font-size: 0.875rem;
    }

    /* Header adjustments for mobile */
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }

    .site-logo h1 {
        font-size: 1.125rem;
    }

    .site-logo .tagline {
        font-size: 0.6875rem;
    }

    /* Mobile Navigation - Slide in from right */
    .primary-nav {
        position: static;
    }

    .primary-nav .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-warm-white);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 99;
        overflow-y: auto;
        display: flex;
        gap: 0;
    }

    .nav-list.is-active {
        right: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        font-size: 1.125rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        min-height: 44px;
    }

    .nav-list a:hover,
    .nav-list a[aria-current="page"] {
        border-bottom-color: var(--color-accent);
        background-color: var(--color-light-sage);
        padding-left: 0.5rem;
    }

    /* Mobile dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 1.125rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        min-height: 44px;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: var(--space-md);
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        max-height: 200px;
    }

    .nav-dropdown-menu a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    /* Mobile nav toggle button - hamburger menu */
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        z-index: 100;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }

    /* Hamburger lines - ensure visible */
    .mobile-nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--color-text);
        margin: 4px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Header layout - ensure hamburger is positioned correctly */
    .header-inner {
        position: relative;
    }

    .site-logo {
        order: 1;
        flex: 1;
    }

    .primary-nav {
        display: flex;
        align-items: center;
        order: 3;
    }

    .utility-nav {
        order: 2;
    }

    /* Hide desktop phone in utility nav */
    .utility-nav .phone {
        display: none;
    }

    .utility-nav .btn--small {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Touch targets - minimum 44px */
    a, button {
        min-height: 44px;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Phone links - make obvious and tappable */
    a[href^="tel:"] {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--color-light-sage);
        border-radius: 4px;
        font-weight: 500;
        min-height: 44px;
    }

    /* Footer phone button - high contrast for dark background */
    .footer-section a[href^="tel:"] {
        background: #ffffff;
        color: var(--color-accent) !important;
        font-weight: 600;
    }

    /* Mobile call bar - override generic tel link styles */
    .mobile-call-bar a[href^="tel:"] {
        background: transparent;
        color: #ffffff !important;
        padding: 1rem 1.5rem;
        border-radius: 0;
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* Hero phone button - white style overrides generic tel: styles */
    .hero__cta a.btn--white[href^="tel:"],
    a.btn.btn--white[href^="tel:"] {
        background: transparent !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    /* Hero CTA buttons stack vertically */
    .hero__cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero__cta .btn {
        width: 100%;
    }

    /* Sections - more compact padding */
    .section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* All grids become single column */
    .card-grid,
    .two-column,
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards less padding on mobile */
    .card {
        padding: 1.25rem;
    }

    /* Insurance grid */
    .insurance-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .insurance-grid li {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }

    /* Availability strip */
    .availability-strip {
        padding: var(--space-sm) var(--space-md);
    }

    .availability-strip__inner {
        flex-direction: column;
        gap: 0.375rem;
        align-items: center;
    }

    .availability-strip__item {
        font-size: 0.8125rem;
    }

    /* Practical bar */
    .practical-bar {
        padding: var(--space-sm) var(--space-md);
    }

    .practical-bar__inner {
        flex-direction: column;
        gap: 0.375rem;
        text-align: center;
        font-size: 0.8125rem;
    }

    .practical-bar__inner span:contains('|') {
        display: none;
    }

    /* Hide separator pipes on mobile */
    .practical-bar__inner > span:nth-child(even) {
        display: none;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 0 4rem; /* Extra bottom for call bar */
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer-crisis {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* FAQ items */
    .faq-item {
        padding: var(--space-md) 0;
    }

    .faq-question {
        font-size: 1rem;
    }

    /* Data tables - horizontal scroll if needed */
    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: var(--space-xs) var(--space-sm);
    }

    /* Steps */
    .step {
        padding-left: var(--space-xl);
    }

    /* Photo placeholders smaller */
    .photo-placeholder {
        min-height: 200px;
        padding: var(--space-md);
    }

    /* Philosophy quote */
    .philosophy-quote p {
        font-size: 1.125rem;
    }

    /* Notice boxes */
    .notice {
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
}

/* ============================================
   Small Mobile (max-width: 479px)
   ============================================ */
@media (max-width: 479px) {
    .insurance-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: var(--space-xs) var(--space-sm);
    }

    .site-logo h1 {
        font-size: 1rem;
    }

    .site-logo .tagline {
        font-size: 0.625rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero__headline {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    /* Ensure CTA button text doesn't wrap badly */
    .btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .availability-strip,
    .btn,
    .mobile-nav-toggle,
    .mobile-call-bar,
    .nav-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
        padding-bottom: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .section {
        padding: 1rem 0;
    }
}
