/* ============================================
   MIDCOAST HEALTH COLLECTIVE - DESIGN SYSTEM
   ============================================

   Color Palette:
   - Olive (primary):        #686A47
   - Cream (background):     #FDFAF5
   - Burnt Orange (links):   #AB5818
   - Sage (buttons/accent):  #D6DAC8
   - Near Black (text):      #272626

   Typography (three tiers):
   - Halibut: Logo + hero headline only
   - Headline font: Lora (Option A) or Sofia Pro Medium (Option B)
   - Sofia Pro (300/400): Body, nav, buttons, labels

   Spacing Scale:
   - Section padding: 6rem (default)
   - Inner padding: 4rem horizontal
   - Component gaps: 2-3rem

   Border Radius: 10px (consistent)

   ============================================ */


/* ========================================
   FONTS
   ======================================== */

/* Sofia Pro - Body text, nav, buttons */
@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofia-pro/Sofia Pro Light Az.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofia-pro/Sofia Pro Regular Az.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofia-pro/Sofia Pro Medium Az.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofia-pro/Sofia Pro Semi Bold Az.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Option A: Lora - Section headlines (warm humanist serif) */
@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora/Lora-Variable.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora/Lora-Italic-Variable.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* Halibut - Hero headline / logo only */
/* @font-face {
    font-family: 'Halibut';
    src: url('../fonts/halibut/Halibut.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} */


/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --olive: #686A47;
    --olive-light: rgba(104, 106, 71, 0.08);
    --burnt-orange: #AB5818;
    --cream: #FDFAF5;
    --near-black: #272626;
    --sage: #D6DAC8;

    /* Typography */
    /* --font-display: 'Halibut', Georgia, serif; */
    --font-headline: 'Lora', Georgia, serif;
    --font-sans: 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --content-padding: 4rem;

    /* Border Radius */
    --radius: 10px;

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



/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--near-black);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: var(--font-headline);
    color: var(--olive);
    line-height: 1.2;
    font-weight: 500;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

p {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

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


/* ========================================
   DESIGN SYSTEM COMPONENTS
   ======================================== */

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--sage);
    color: var(--olive);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--olive);
    color: var(--cream);
}

.btn-light {
    background-color: var(--olive);
    color: var(--cream);
}

.btn-light:hover {
    background-color: var(--sage);
    color: var(--olive);
}

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

.btn-cream:hover {
    background-color: var(--sage);
    color: var(--olive);
}


/* --- Text Links (with arrow) --- */
.text-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--burnt-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

.text-link svg {
    width: 18px;
    height: 18px;
}

.text-link-light {
    color: var(--cream);
}

/* --- Eyebrow Text --- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1rem;
    line-height: 1;
}

.eyebrow-light {
    color: var(--sage);
}


/* ========================================
   GLOBAL INTERACTIVE STYLES
   ======================================== */
a, button {
    transition: var(--transition);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}


/* ========================================
   NAVIGATION
   ======================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem calc(var(--content-padding) + 1rem);
    background-color: rgba(253, 250, 245, 0.85);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--olive);
    text-decoration: none;
}

.nav-links a:hover {
    opacity: 0.75;
}

.nav-cta {
    background-color: var(--olive);
    color: var(--cream) !important;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 400 !important;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 1 !important;
}

.nav-cta:hover {
    background-color: var(--sage) !important;
    color: var(--olive) !important;
    opacity: 1 !important;
}

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

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(253, 250, 245, 0.95);
    border-radius: var(--radius);
    padding: 0.75rem 0;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding-top: 1.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--olive);
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background-color: var(--sage);
    opacity: 1;
}

/* Mobile Menu Button */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--olive);
    transition: var(--transition);
}


.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--olive);
    z-index: 99;
    padding: 8rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--cream);
    text-decoration: none;
    display: block;
}

.mobile-menu a:hover {
    opacity: 0.75;
}

/* Mobile Dropdown */
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0.75rem 0 0 1.25rem;
}

.mobile-dropdown-menu.active {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-dropdown-menu a {
    font-family: var(--font-sans);
    font-size: 1rem !important;
    font-weight: 300;
}

.mobile-menu .mobile-cta {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--sage);
    color: var(--olive);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
}

.mobile-menu .mobile-cta:hover {
    background-color: var(--cream);
    color: var(--olive);
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px var(--content-padding) 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
}

/* Hero overlay removed */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    background-color: rgba(253, 250, 245, 0.85);
    padding: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-headline);
    font-size: 3rem;
    font-weight: 500;
    color: var(--olive);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--near-black);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
}


/* ========================================
   PHILOSOPHY SECTION
   ======================================== */
.philosophy {
    padding: var(--section-padding) var(--content-padding);
    text-align: center;
    background-color: var(--cream);
}

.philosophy-inner {
    max-width: 650px;
    margin: 0 auto;
}

.philosophy h2 {
    color: var(--olive);
    margin-bottom: 1.5rem;
}

.philosophy p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--near-black);
    opacity: 0.85;
}


/* ========================================
   PRACTITIONER GRID
   ======================================== */
.practitioners {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--cream);
}

.practitioners-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.practitioners-header {
    text-align: center;
    margin-bottom: 3rem;
}

.practitioners-header h2 {
    color: var(--olive);
}

.practitioner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.practitioner-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.practitioner-card:hover {
    transform: translateY(-4px);
}

.practitioner-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    background-color: var(--olive);
}

.practitioner-photo-placeholder {
    background-color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
}

.practitioner-photo-placeholder span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--olive);
    opacity: 0.5;
}

.practitioner-card h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--olive);
    margin-bottom: 0.25rem;
}

.practitioner-card .modality {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--near-black);
    opacity: 0.7;
}


/* --- Team Row (support staff below practitioner grid) --- */
.team-row {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(39, 38, 38, 0.1);
    text-align: center;
}

.team-heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--near-black);
    opacity: 0.5;
    margin-bottom: 2rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.team-card:hover {
    opacity: 0.75;
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--olive);
}

.team-photo-placeholder {
    background-color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder span {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    color: var(--olive);
    opacity: 0.5;
    text-align: center;
    line-height: 1.3;
}

.team-info {
    text-align: left;
}

.team-info h4 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--olive);
    margin-bottom: 0.15rem;
}

.team-info .modality {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--near-black);
    opacity: 0.7;
}


/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--sage);
}

.services-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    color: var(--olive);
    margin-bottom: 3rem;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.service-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: brightness(0) saturate(100%) invert(40%) sepia(15%) saturate(600%) hue-rotate(25deg) brightness(92%);
}

.service-item h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 500;
    color: var(--olive);
    margin-bottom: 0;
}


/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--cream);
}

.gallery-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-inner .eyebrow {
    text-align: center;
}

.gallery h2 {
    text-align: center;
    color: var(--olive);
    margin-bottom: 2.5rem;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-slide {
    min-width: 100%;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(253, 250, 245, 0.85);
    color: var(--olive);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-btn:hover {
    background-color: var(--cream);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.gallery-btn-prev {
    left: 1rem;
}

.gallery-btn-next {
    right: 1rem;
}


/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--sage);
    text-align: center;
}

.newsletter-inner {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--olive);
    margin-bottom: 1rem;
}

.newsletter-inner > p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--near-black);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.newsletter-form {
    width: 100%;
}

.newsletter-field {
    display: flex;
    gap: 0.75rem;
}

.newsletter-field input[type="email"] {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(39, 38, 38, 0.15);
    border-radius: var(--radius);
    background-color: white;
    color: var(--near-black);
}

.newsletter-field input[type="email"]:focus {
    outline: none;
    border-color: var(--olive);
}

.newsletter-field .btn {
    white-space: nowrap;
    background-color: var(--olive);
    color: var(--cream);
}

.newsletter-field .btn:hover {
    background-color: var(--near-black);
    color: var(--cream);
}

/* Screen reader only (for accessible labels) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================
   LOCATION SECTION
   ======================================== */
.location {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--olive);
}

.location-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-content {
    color: var(--cream);
}

.location-content h2 {
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.location-content p {
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.location-content .address {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.location-content .hours {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.location-image img {
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center 100%;
}


/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: var(--cream);
    padding: var(--content-padding) var(--content-padding) 2rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 120px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--near-black);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--near-black);
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--near-black);
    text-decoration: none;
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--burnt-orange);
}

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

.footer-copyright {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--near-black);
    opacity: 0.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--near-black);
    opacity: 0.7;
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--burnt-orange);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   PRACTITIONER PROFILE PAGE
   ======================================== */
.profile {
    padding: calc(80px + var(--section-padding)) var(--content-padding) var(--section-padding);
    background-color: var(--cream);
}

.profile-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* --- Sidebar (photo + logo + booking) --- */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
}

.profile-photo {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.profile-photo-placeholder {
    background-color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-placeholder span {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--olive);
    opacity: 0.6;
}

/* Practitioner logo in sidebar */
.profile-sidebar .profile-logo {
    margin: 0;
    padding: 0;
    border-top: none;
}

.profile-logo img {
    max-height: 240px;
    width: auto;
}


/* --- Inline CTA at end of bio --- */
.profile-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(39, 38, 38, 0.1);
}

.profile-cta .text-link {
    color: var(--olive);
    font-size: inherit;
    gap: 0.25rem;
}

.profile-cta .text-link:hover {
    opacity: 0.7;
}

/* --- Profile content (bio, credentials) --- */
.profile-content h1 {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 0.5rem;
}

.profile-content .bio {
    margin-top: 2rem;
}

.profile-content .bio p {
    margin-bottom: 1rem;
}



/* ========================================
   PAGE HEADER (interior pages)
   ======================================== */
.page-header {
    padding: calc(80px + var(--section-padding)) var(--content-padding) 3rem;
    text-align: center;
    background-color: var(--olive);
}

.page-header h1 {
    font-family: var(--font-headline);
    color: var(--cream);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--cream);
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
}


/* ========================================
   REFERRALS DIRECTORY
   ======================================== */
.referrals {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--cream);
}

.referrals-inner {
    max-width: 800px;
    margin: 0 auto;
}

.referral-card {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(39, 38, 38, 0.1);
}

.referral-card:first-child {
    padding-top: 0;
}

.referral-card h3 {
    font-family: var(--font-headline);
    color: var(--olive);
    margin-bottom: 0.25rem;
}

.referral-card .specialty {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--burnt-orange);
    margin-bottom: 0.75rem;
}

.referral-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.referral-card a {
    color: var(--burnt-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
}

.referral-card a:hover {
    text-decoration: underline;
}


/* ========================================
   EVENTS
   ======================================== */
.events {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--cream);
}

.events-inner {
    max-width: 700px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(39, 38, 38, 0.1);
}

.event-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-image {
    width: 280px;
    flex-shrink: 0;
    border-radius: var(--radius);
}

.event-image img {
    width: 100%;
    border-radius: var(--radius);
}

.event-date {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 0.75rem;
}

.event-card h3 {
    font-family: var(--font-headline);
    color: var(--olive);
    margin-bottom: 0.5rem;
}

.event-card p {
    font-size: 0.95rem;
}

.events-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.events-empty p {
    font-size: 1.1rem;
    opacity: 0.7;
}


/* ========================================
   CONTACT PAGE
   ======================================== */
.contact {
    padding: var(--section-padding) var(--content-padding);
    background-color: var(--cream);
}

.contact-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-info .info-group {
    margin-bottom: 2rem;
}

.contact-info .info-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--near-black);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--near-black);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(39, 38, 38, 0.15);
    border-radius: var(--radius);
    background-color: white;
    color: var(--near-black);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--olive);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}


/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(80px + var(--section-padding)) var(--content-padding) var(--section-padding);
}

.page-404 h1 {
    font-family: var(--font-headline);
    font-size: 3rem;
    color: var(--olive);
    margin-bottom: 1rem;
}

.page-404 p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}




/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --content-padding: 3rem;
    }

    /* Services: allow wrapping on smaller desktops */
    .services-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
        --content-padding: 1.5rem;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding-top: calc(70px + 3rem);
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    /* Services */
    .services-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }

    /* Practitioner Grid */
    .practitioner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Team Row */
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* Events */
    .event-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .event-image {
        width: 100%;
        min-height: 180px;
    }

    /* Gallery */
    .gallery-slide img {
        height: 350px;
    }

    /* Newsletter */
    .newsletter-field {
        flex-direction: column;
    }

    .newsletter-field .btn {
        width: 100%;
    }

    /* Location */
    .location-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Profile */
    .profile-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-sidebar {
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-content h1 {
        font-size: 2rem;
    }

    /* Contact */
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

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

    /* Page Header */
    .page-header h1 {
        font-size: 2.25rem;
    }

    /* Typography */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide img {
        height: 250px;
    }

    .practitioner-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .profile-sidebar {
        max-width: 100%;
    }
}
