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

:root {
    --color-background: #f8f9f9;
    --color-background-solid: #f8f9f9;
    --color-white: #ffffff;
    --color-charcoal: #1a1f23;
    --color-dark-gray: #2d3842;
    --color-medium-gray: #6b7784;
    --color-light-gray: #e8ecef;
    --color-rule: #dde2e6;
    --color-accent: #3aa8bd;
    --color-accent-hover: #2a95a8;
    --color-teal: #3aa8bd;
    --color-sage: #5dab8f;
    --color-light-teal: #f0f8fa;
    --color-gradient: linear-gradient(135deg, #3aa8bd 0%, #5dab8f 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --max-width: 1000px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-charcoal);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.375rem;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-serif);
    color: var(--color-charcoal);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ─── Header & Navigation ─────────────────────────────────────── */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-rule);
    padding: 1.125rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.logo-container:hover {
    opacity: 0.65;
}

.obr-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.obr-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.obr-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-charcoal);
    letter-spacing: 0.01em;
    font-family: var(--font-primary);
}

/* Legacy logo class */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.logo-credentials {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--color-medium-gray);
    letter-spacing: 0.01em;
    line-height: 1;
    margin-bottom: 2px;
}

.logo-name {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-charcoal);
    font-family: var(--font-serif);
    white-space: nowrap;
}

.logo-mark, .logo-svg { display: none; }

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--color-medium-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-charcoal);
    background: var(--color-background);
}

.nav-links a.active {
    color: var(--color-teal);
    background: var(--color-light-teal);
}

/* ─── Hero Section ────────────────────────────────────────────── */
.hero {
    background: var(--color-white);
    padding: 5.5rem 0 4.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-rule);
}

/* Credential box — editorial treatment, not pill */
.credential-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 auto var(--spacing-sm);
    max-width: 600px;
    box-shadow: none;
}

.credential-line-large {
    font-size: 0.8125rem;
    color: var(--color-teal);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.primary-headline {
    font-size: 2.375rem;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-charcoal);
    max-width: 680px;
    margin: 0.75rem auto var(--spacing-md);
    letter-spacing: -0.02em;
}

.subline {
    font-size: 0.9375rem;
    color: var(--color-medium-gray);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.01em;
}

.hero-cta {
    margin-top: var(--spacing-md);
}

/* Legacy hero styles */
.hero h1 {
    margin-bottom: var(--spacing-md);
}

.subtitle {
    font-size: 1.0625rem;
    color: var(--color-dark-gray);
    max-width: 680px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.65;
}

/* ─── Intro Strip ─────────────────────────────────────────────── */
.intro {
    padding: 2.5rem 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-rule);
}

.intro p {
    font-size: 1.0625rem;
    color: var(--color-dark-gray);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
    text-align: center;
}

/* ─── Page Header (inner pages) ───────────────────────────────── */
.page-header {
    background: var(--color-white);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--color-rule);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0;
    font-size: 2.125rem;
}

/* Enhanced header variant */
.enhanced-header {
    background: var(--color-white);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-rule);
}

.enhanced-header h1 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.subtitle-enhanced {
    text-align: center;
    color: var(--color-medium-gray);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.65;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    background: var(--color-gradient);
    color: var(--color-white);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(58, 168, 189, 0.25);
}

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(58, 168, 189, 0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

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

/* CTA wrapper */
.cta {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-rule);
}

/* ─── Content Sections ────────────────────────────────────────── */
.content {
    padding: var(--spacing-xl) 0;
}

/* Content blocks — left accent bar, no full border */
.content-block {
    margin-bottom: 3rem;
    background: var(--color-white);
    padding: 2.25rem 2.5rem 2.25rem 2.75rem;
    border-left: 3px solid var(--color-teal);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    color: var(--color-dark-gray);
}

.content-block h2 {
    margin-top: var(--spacing-md);
}

/* ─── Why OBR Section ─────────────────────────────────────────── */
.why-obr {
    padding: 4rem 0;
    background: var(--color-background);
    border-top: 1px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
}

.why-obr h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: 1.375rem;
    letter-spacing: 0.01em;
    color: var(--color-medium-gray);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.feature-card {
    padding: 0;
    text-align: left;
}

.feature-icon {
    display: none;
}

.feature-card h3 {
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.feature-card p {
    color: var(--color-medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ─── Services Preview (Homepage) ────────────────────────────── */
.services-preview {
    padding: 4.5rem 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-rule);
}

.services-preview h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-medium-gray);
    font-size: 0.9375rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.service-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    border-color: var(--color-teal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 0 var(--spacing-sm);
}

.service-card h3 {
    color: var(--color-charcoal);
    margin-bottom: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--color-medium-gray);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ─── About Preview (Homepage) ───────────────────────────────── */
.about-preview {
    padding: 4.5rem 0;
    background: var(--color-background);
    border-top: 1px solid var(--color-rule);
}

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

.about-text {
    max-width: 720px;
    margin: 0 auto;
}

.about-text h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--color-dark-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.credentials-badges {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: transparent;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Service Blocks (Services Page) ─────────────────────────── */
.service-block {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--color-white);
    padding: 2.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.service-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.service-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light-teal);
    border-radius: 8px;
}

.service-icon {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.service-content {
    flex: 1;
}

.service-block h2 {
    margin-top: 0;
    font-size: 1.375rem;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-category {
    margin-bottom: var(--spacing-xl);
}

.faq-category h2 {
    color: var(--color-charcoal);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-rule);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.faq-item {
    background: var(--color-white);
    border: none;
    border-bottom: 1px solid var(--color-rule);
    border-radius: 0;
    margin-bottom: 0;
    transition: background 0.15s ease;
    box-shadow: none;
}

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

.faq-item:hover {
    background: #fafcfd;
}

.faq-item.active {
    background: var(--color-white);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0.25rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    transition: color 0.15s ease;
    font-family: var(--font-primary);
}

.faq-question:hover {
    color: var(--color-teal);
}

.faq-item.active .faq-question {
    color: var(--color-teal);
}

.faq-icon {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-medium-gray);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0.25rem 1.25rem;
    color: var(--color-dark-gray);
    line-height: 1.75;
}

.faq-answer a {
    color: var(--color-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Contact Page ────────────────────────────────────────────── */
.contact-info {
    background: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--color-teal);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    color: var(--color-dark-gray);
}

.email {
    font-size: 1.05rem;
    margin: var(--spacing-sm) 0;
}

.telehealth-note {
    font-size: 0.9375rem;
    color: var(--color-medium-gray);
    font-style: italic;
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-charcoal);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-charcoal);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(58, 168, 189, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #c0392b;
}

.error-message {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-group:not(.error) .error-message {
    display: none;
}

.success-message {
    background: #f0faf4;
    border: 1px solid #a8d5b5;
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.success-icon {
    width: 36px;
    height: 36px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
    flex-shrink: 0;
}

.success-content h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.success-content p {
    color: #1b5e20;
    margin-bottom: var(--spacing-xs);
}

.success-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #388e3c;
    margin-bottom: 0;
}

.crisis-disclaimer {
    background-color: #fdf8f2;
    border: 1px solid #e8dcc8;
    padding: var(--spacing-md);
    border-radius: 6px;
}

.crisis-disclaimer p {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ─── Fees Page ───────────────────────────────────────────────── */
.fee-table {
    margin: var(--spacing-md) 0;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--spacing-md);
    border-bottom: 1px solid var(--color-rule);
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row:nth-child(even) {
    background-color: var(--color-background);
}

.service-name {
    font-weight: 500;
    color: var(--color-charcoal);
}

.fee-amount {
    font-weight: 600;
    color: var(--color-teal);
    font-size: 1.0625rem;
}

.fee-note {
    font-size: 0.9rem;
    color: var(--color-medium-gray);
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* ─── Practice / Bio Page ─────────────────────────────────────── */
.bio-header {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
}

.bio-image-placeholder {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
}

.bio-intro {
    flex: 1;
    display: flex;
    align-items: center;
}

.bio-text-box {
    background: var(--color-gradient);
    border-radius: 8px;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(58, 168, 189, 0.2);
    width: 100%;
}

.bio-text-box h2 {
    margin-top: 0;
    margin-bottom: 0.375rem;
    font-size: 1.5rem;
    color: var(--color-white);
}

.credentials, .location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--spacing-xs);
}

.credentials {
    font-weight: 500;
}

.location {
    font-style: italic;
    margin-bottom: 0;
}

/* Professional Lists */
.credentials-list,
.expertise-list,
.affiliations-list {
    list-style: none;
    padding-left: 0;
}

.credentials-list li,
.expertise-list li,
.affiliations-list li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    position: relative;
    color: var(--color-dark-gray);
    border-bottom: 1px solid var(--color-rule);
    font-size: 0.9375rem;
}

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

.credentials-list li::before,
.expertise-list li::before,
.affiliations-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: 400;
}

.credentials-list li strong {
    color: var(--color-charcoal);
    font-weight: 600;
}

/* Quote Block */
.quote-block {
    background: var(--color-background);
    border: none;
    border-left: 3px solid var(--color-sage);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 6px 6px 0;
    box-shadow: none;
}

.therapist-quote {
    margin: 0;
}

.therapist-quote p {
    font-size: 1.125rem;
    line-height: 1.75;
    font-style: italic;
    color: var(--color-dark-gray);
    margin: 0;
    font-family: var(--font-serif);
}

/* Services Link Box */
.services-link-box {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.services-link {
    display: inline-block;
    background: var(--color-gradient);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(58, 168, 189, 0.25);
    transition: all 0.2s ease;
}

.services-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(58, 168, 189, 0.35);
    color: var(--color-white);
}

/* Testimonials */
.testimonial-block {
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    font-style: italic;
    color: var(--color-dark-gray);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-serif);
}

.testimonial-attribution {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Practice page misc */
.practice-identifier { display: none; }
.legal-name { display: none; }
.certification-line { display: none; }
.credential-line { display: none; }
.location { font-style: italic; }

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
    background-color: var(--color-white);
    border-top: 3px solid transparent;
    border-image: var(--color-gradient) 1;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.footer-contact {
    text-align: left;
}

.footer-address,
.footer-phone {
    font-size: 0.8125rem;
    color: var(--color-medium-gray);
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.footer-phone {
    margin-top: 0.25rem;
}

.footer-legal {
    text-align: right;
}

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

footer p {
    text-align: center;
    color: var(--color-medium-gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ─── Legal Pages ─────────────────────────────────────────────── */
.legal-content .subtitle {
    font-size: 0.95rem;
    color: var(--color-medium-gray);
    font-style: italic;
    margin-top: var(--spacing-xs);
}

.notice-box {
    background: #fef9f2;
    border-left: 3px solid #e67e22;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 0 6px 6px 0;
}

.notice-box h2 {
    color: #c0392b;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.legal-content h3 {
    color: var(--color-teal);
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.legal-content h4 {
    color: var(--color-charcoal);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.contact-box {
    background: var(--color-light-teal);
    border-left: 3px solid var(--color-teal);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 6px 6px 0;
}

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

.legal-links {
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.legal-links a {
    color: var(--color-medium-gray);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--color-teal);
    text-decoration: underline;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.375rem; }
    .primary-headline { font-size: 2rem; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .service-block {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .bio-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-image-placeholder {
        width: 130px;
        height: 130px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .credentials-badges {
        justify-content: center;
    }

    .hero { padding: 3.5rem 0 3rem; }

    .content-block {
        padding: 1.75rem 1.5rem 1.75rem 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-contact,
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.125rem;
    }

    h1 { font-size: 1.875rem; }
    .primary-headline { font-size: 1.875rem; line-height: 1.25; }
    .subtitle { font-size: 1rem; }
}

/* ─── Mobile Navigation ───────────────────────────────────────── */
nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.nav-toggle:hover {
    background: var(--color-background);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-charcoal);
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-rule);
        border-bottom: 2px solid var(--color-teal);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 200;
    }

    .nav-links.nav-open {
        display: flex;
    }

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

    .nav-links a {
        display: block;
        padding: 0.875rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-rule);
        border-radius: 0;
        background: transparent;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a.active {
        color: var(--color-teal);
        background: transparent;
    }
}
