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

:root {
    --primary-color: #2d7a5f;
    --primary-light: #3d9b7a;
    --primary-dark: #1f5a47;
    --secondary-color: #d4a574;
    --accent-color: #e8c4a0;
    --warm-beige: #f5f1eb;
    --warm-cream: #faf8f4;
    --text-dark: #2c3e2d;
    --text-medium: #4a5c4b;
    --text-light: #6b7d6c;
    --bg-light: #faf8f4;
    --bg-white: #ffffff;
    --border-color: #e8ddd4;
    --shadow-sm: 0 2px 4px rgba(45, 122, 95, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 122, 95, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 122, 95, 0.15);
    --gradient-warm: linear-gradient(135deg, #2d7a5f 0%, #3d9b7a 50%, #4ab88a 100%);
    /* Typography - matches roundhousemidwives.com (Abhaya Libre + Cinzel) */
    --font-hero: 'Mulish', 'Helvetica Neue', Arial, sans-serif; /* light sans: big H1/hero titles */
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif; /* Trajan-style caps: section titles */
    --font-heading: 'Abhaya Libre', Georgia, 'Times New Roman', serif; /* subheads, card titles, names */
    --font-body: 'Abhaya Libre', Georgia, 'Times New Roman', serif;    /* running text */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Territorial acknowledgment banner */
.territory-banner {
    background: var(--warm-cream);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    text-align: center;
}

.territory-banner-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-medium);
    font-weight: 400;
}

/* Sticky header — territory banner + nav stay pinned at the top, never hide on scroll */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 250px;
    flex-shrink: 0;
}

/* Hide logo if it fails to load */
.logo-img[src=""],
img:not([src]) {
    display: none;
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        max-width: 200px;
    }
}

/* Logo only in nav-brand, no text needed */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1.1rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* Header layout: logo · links · Book a visit · hamburger */
.nav-brand { margin-right: auto; }
.nav-menu { order: 1; }
.nav-cta { order: 2; }
.mobile-menu-toggle { order: 3; }

/* "Book a visit" pill — always visible, sized to sit beside the hamburger */
.nav-cta {
    display: inline-block;
    margin-left: 1.75rem;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

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

/* Home: nav is transparent over the hero sky, turns white once scrolled.
   blur(0) keeps .navbar the containing block for the fixed mobile menu. */
.home-page .navbar {
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: blur(0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Same soft glow on the nav links while they sit over the photo */
.home-page .site-header:not(.is-scrolled) .nav-menu > li > a {
    text-shadow: 0 0 12px rgba(240, 245, 249, 0.95), 0 0 3px rgba(240, 245, 249, 0.9);
}

.home-page .site-header.is-scrolled .navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

/* Hero Section — Roundhouse exterior; nav, title and subtitle sit in the sky */
.home-page { --nav-h: 110px; }

.hero {
    --hero-image: url('images/roundhouse-exterior.webp');
    --sky: #c9d6e1;
    /* Aim the crop at 45% (not the bottom): keeps the sky above the trees for the
       nav + title on wide screens, and still shows the whole roundhouse front */
    background:
        /* sky-coloured wash from the top-left, behind the writing; gone before the roundhouse */
        radial-gradient(ellipse 80% 66% at 20% 16%,
            rgba(236, 241, 245, 0.95) 0%, rgba(236, 241, 245, 0.86) 45%, rgba(236, 241, 245, 0) 100%),
        var(--hero-image) center 85% / cover no-repeat;
    position: relative;
    /* Exactly one screen below the land-acknowledgement banner */
    min-height: calc(100vh - 35px);
    min-height: calc(100svh - 35px);
    margin-top: calc(-1 * var(--nav-h));
    padding-top: calc(var(--nav-h) + 1.75rem);
    text-align: left;
}

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

.hero-text {
    max-width: 720px;
    animation: fadeInUp 0.8s ease;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 2.5rem;
    display: block;
    filter: 
        drop-shadow(0 0 40px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 20px rgba(0, 0, 0, 0.6))
        drop-shadow(0 8px 30px rgba(0, 0, 0, 0.7))
        drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5))
        drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.6rem, 3.6vw, 4.25rem);
    white-space: nowrap;
    font-weight: 300;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
    line-height: 1.1;
    font-family: var(--font-hero);
    text-transform: none;
    color: var(--primary-dark);
    text-shadow: 0 0 18px rgba(240, 245, 249, 0.9), 0 0 4px rgba(240, 245, 249, 0.8);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 1.75vw, 1.7rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 1.75rem;
    text-shadow: 0 0 14px rgba(240, 245, 249, 0.95), 0 0 4px rgba(240, 245, 249, 0.9);
}

/* Scoped to .hero so the generic .btn rules (incl. full-width on mobile) don't override it */
.hero .btn-hero {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(31, 90, 71, 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero .btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--warm-cream);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section */
.welcome {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--warm-cream) 0%, var(--bg-white) 100%);
    position: relative;
}

.welcome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.welcome-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.welcome-text a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.new-patients-notice {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--warm-cream) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.new-patients-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
}

.notice-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.new-patients-notice h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-align: center;
}

.new-patients-notice p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.priority-notice {
    background-color: rgba(45, 122, 95, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.new-patients-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.new-patients-notice a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Section Styles */
.section-title {
    font-size: 2.75rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: var(--font-display);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-warm);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page – family-friendly feel */
.home-page .section-title::after {
    border-radius: 4px;
    background: var(--primary-color);
}
.home-page .tip-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 122, 95, 0.08);
}
.home-page .tip-card:hover {
    box-shadow: 0 8px 28px rgba(45, 122, 95, 0.12);
}
.home-page .tip-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 122, 95, 0.08);
    border-radius: 50%;
    font-size: 1.5rem;
}
.home-page .tip-card-prominent .tip-icon {
    background: rgba(45, 122, 95, 0.12);
}
.home-page .clinic-tile {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 122, 95, 0.08);
}
.home-page .clinic-tile:hover {
    box-shadow: 0 8px 28px rgba(45, 122, 95, 0.12);
}
.home-page .resource-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 122, 95, 0.08);
}
.home-page .resource-card:hover {
    box-shadow: 0 8px 28px rgba(45, 122, 95, 0.1);
}
.home-page .about {
    background: linear-gradient(to bottom, #faf8f5 0%, var(--warm-cream) 50%, var(--bg-white) 100%);
}
.home-page .team-card {
    border-radius: 24px;
    border: none;
    box-shadow: 0 4px 24px rgba(45, 122, 95, 0.08);
}
.home-page .team-card:hover {
    box-shadow: 0 8px 32px rgba(45, 122, 95, 0.1);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--bg-white);
    position: relative;
}

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

.service-card {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--warm-cream) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warm);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
}

/* Team Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--warm-cream) 100%);
}

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

.team-grid .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.team-grid .team-photo-wrapper {
    padding: 2rem 2rem 0;
}

.team-grid .team-info {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.team-grid .team-name,
.team-grid .team-role {
    text-align: center;
}

.team-grid .team-content {
    text-align: center;
}

.team-card {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--warm-cream) 100%);
    padding: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.team-card-left {
    flex-direction: row;
}

.team-card-right {
    flex-direction: row-reverse;
}

.team-photo-wrapper {
    flex-shrink: 0;
    padding: 2.5rem;
}

.team-photo {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

@media (min-width: 769px) {
    .team-grid .team-photo {
        width: 200px;
        height: 240px;
    }
}

.tia-photo {
    object-position: center 5%;
}


.team-info {
    flex: 1;
    padding: 2.5rem 2.5rem 2.5rem 0;
    text-align: left;
}

.team-card-right .team-info {
    padding: 2.5rem 0 2.5rem 2.5rem;
    text-align: right;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.team-name {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: left;
}

.team-card-right .team-name {
    text-align: right;
}

.team-role {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.team-card-right .team-role {
    text-align: right;
}

.team-content {
    margin-bottom: 1.5rem;
    text-align: left;
}

.team-card-right .team-content {
    text-align: right;
}

.team-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-credentials {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.team-credentials {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.team-card-right .team-credentials {
    text-align: right;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.team-card-right .credentials-list li {
    padding-left: 0;
    padding-right: 1.75rem;
}

.credentials-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.team-card-right .credentials-list li::before {
    left: auto;
    right: 0;
}

/* Team page: compact cards + bio modal */
.team-page .team-overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
}

.team-page .team-section .section-title {
    margin-bottom: 0.5rem;
}

.team-page .team-grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-page .team-card-compact {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 122, 95, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

.team-page .team-card-compact:hover {
    box-shadow: 0 8px 28px rgba(45, 122, 95, 0.12);
}

.team-page .team-card-compact::before {
    display: none;
}

.team-page .team-photo-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.team-page .team-photo-wrapper {
    padding: 0;
    width: 100%;
    min-height: 320px;
    background: #e8e6e2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.team-page .team-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 244, 0.1);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

.team-page .team-card-compact .team-photo {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center top;
    border-radius: 12px 12px 0 0;
    border: none;
    box-shadow: none;
    display: block;
}


.team-page .team-card-compact .team-name {
    margin: 1.25rem 1rem 0.25rem;
    font-size: 1.25rem;
    text-align: center;
}

.team-page .team-card-compact .team-role {
    margin: 0 1rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

/* Bio modal */
.team-bio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-bio-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.team-bio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.team-bio-modal-dialog {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem 2rem 2.5rem;
}

.team-bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-medium);
    cursor: pointer;
    transition: color 0.2s ease;
}

.team-bio-modal-close:hover {
    color: var(--primary-color);
}

.team-bio-modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    padding-right: 2.5rem;
}

.team-bio-modal-role {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
}

.team-bio-modal-body p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-bio-modal-body p:last-child {
    margin-bottom: 0;
}

/* Hours Section */
.hours {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.hours-content {
    max-width: 600px;
    margin: 0 auto;
}

.hours-card {
    background-color: var(--warm-cream);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.hours-card h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-heading);
}

.hours-list {
    margin-bottom: 2rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item .time {
    color: var(--text-medium);
}

.hours-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Insurance Section */
.insurance {
    padding: 5rem 0;
    background-color: var(--warm-cream);
}

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

.insurance-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.insurance-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.insurance-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.insurance-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.insurance-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-medium);
}

.insurance-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.insurance-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Clinic Section */
.clinic {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

/* Our Philosophy Section */
.philosophy {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--warm-cream) 0%, var(--bg-white) 100%);
}

/* Philosophy: full photo beside the text (no overlap), then a row of four photos */
.philo-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.philo-feature-img img,
.philo-strip img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(45, 122, 95, 0.08);
}

.philo-feature-img img {
    aspect-ratio: 4 / 3.3;
}


.philo-card p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.philo-card p + p {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.philo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1.5rem auto 0;
}

.philo-strip img {
    aspect-ratio: 4 / 3;
}

/* Tablet/phone: card overlaps the bottom of the photo instead of its side */
@media (max-width: 900px) {
    .philo-feature {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .philo-card p {
        font-size: 1.05rem;
    }

    .philo-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

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

/* Three-card row — fixed 3 columns, centered as a group */
.clinic-tiles-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.clinic-tile {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.clinic-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tile-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Consultation room: favour the windows and exam bed on the left */
.tile-img-left {
    object-position: left center;
}

.tile-content p a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
}

.tile-content p a:hover {
    border-bottom-color: var(--primary-color);
}

/* Home: tighter gap under section subtitles (replaces inline margins) */
.section-subtitle-tight {
    margin-bottom: 2rem;
}

/* Small heading inside a section, e.g. "About our setting" */
.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2e28;
    text-align: center;
    margin: 3.5rem 0 0;
}

/* Our Clinic intro: photo left, both paragraphs right (stacks p / photo / p on phones) */
.clinic-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
        "photo lead"
        "photo more";
    column-gap: 3.5rem;
    row-gap: 1.25rem;
    align-items: center;
    max-width: 1100px;
    margin: 1rem auto 0;
}

.clinic-intro-photo {
    grid-area: photo;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45, 122, 95, 0.08);
}

.clinic-intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.clinic-intro-lead,
.clinic-intro-more {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.75;
}

.clinic-intro-lead {
    grid-area: lead;
    align-self: end;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.clinic-intro-more {
    grid-area: more;
    align-self: start;
    font-size: 1.1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.clinic-intro a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
}

.clinic-intro a:hover {
    border-bottom-color: var(--primary-color);
}

@media (max-width: 900px) {
    .clinic-intro {
        grid-template-columns: 1fr;
        grid-template-areas: "lead" "photo" "more";
        row-gap: 1.5rem;
    }

    .clinic-intro-lead { font-size: 1.1rem; }
    .clinic-intro-more { border-top: none; padding-top: 0; }
}

/* Single wide photo between paragraphs */
.content-photo {
    margin: 0.5rem auto 2.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45, 122, 95, 0.08);
}

.content-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Two photos side by side, rounded corners */
.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2.5rem auto;
}

.photo-pair img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(45, 122, 95, 0.08);
}

@media (max-width: 600px) {
    .photo-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.tile-content {
    padding: 1.5rem;
}

.tile-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.tile-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Tips Section */
.tips {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--warm-cream) 0%, var(--bg-white) 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tip-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.tip-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

.tip-card-prominent {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, var(--warm-cream) 0%, var(--bg-white) 100%);
    box-shadow: var(--shadow-lg);
}

.tip-card-prominent:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(45, 122, 95, 0.15);
}

/* Resources Section */
.resources {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

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

.resource-card {
    background-color: var(--warm-cream);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.resource-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card ul li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.7;
}

.resource-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.resource-card ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.resource-card ul li a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.links-list a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--warm-cream) 100%);
}

.contact-wrapper {
    display: block;
    margin-top: 3rem;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-card .address {
    color: var(--text-medium);
    line-height: 1.9;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-buttons .btn {
    text-align: center;
}

.notice-text {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.notice-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.notice-text a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 3rem 0 2rem;
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-flag {
    display: block;
    width: 160px;
    height: auto;
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: white;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

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

.footer-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.footer-credentials {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Responsive Design */
/* Hamburger menu: below 1100px the full link bar no longer fits */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: 0.75rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 1.25rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .territory-banner {
        padding: 0.3rem 0;
    }

    .territory-banner-text {
        font-size: 0.7rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    /* Phone: the photo's sky is too shallow for text, so a sky band sits
       above the photo and fades into it */
    .home-page { --nav-h: 76px; }

    .hero {
        --band: 92vw;
        min-height: 0;
        padding-bottom: calc(var(--band) - 1rem);
        background:
            linear-gradient(to bottom, var(--sky) 0%, rgba(201, 214, 225, 0) 16%) center bottom / 100% var(--band) no-repeat,
            var(--hero-image) 38% bottom / auto var(--band) no-repeat,
            var(--sky);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero .btn-hero {
        padding: 0.55rem 1.4rem;
        font-size: 0.95rem;
    }


    .hero-content {
        padding: 3rem 2rem;
    }

    .hero-logo {
        max-width: 450px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.4rem;
        white-space: normal;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
    }

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

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

    .team-grid,
    .team-page .team-grid-cards {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column !important;
    }

    .team-card-left,
    .team-card-right {
        flex-direction: column !important;
    }

    .team-photo-wrapper {
        padding: 1.5rem;
    }

    .team-info {
        padding: 0 1.5rem 1.5rem !important;
        text-align: center !important;
    }

    .team-name,
    .team-role,
    .team-content {
        text-align: center !important;
    }

    .team-photo {
        width: 200px;
        height: 240px;
        margin: 0 auto;
    }

    .clinic-tiles {
        grid-template-columns: 1fr;
    }

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

    /* Reduce section padding on mobile */
    .about,
    .clinic,
    .philosophy,
    .tips,
    .resources {
        padding: 3rem 0;
    }

    /* Reduce card padding and spacing */
    .tip-card,
    .resource-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .tips-grid,
    .resources-grid,
    .clinic-tiles {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    /* Reduce text spacing */
    .welcome-text {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .team-content p {
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .tip-card p,
    .resource-card ul li {
        line-height: 1.5;
    }

    .tip-card h3 {
        margin-bottom: 0.75rem;
    }

    .resource-card h3 {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .welcome-content {
        margin-bottom: 2rem !important;
    }

    .tile-content {
        padding: 1.25rem;
    }

    .tile-content p {
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .home-page { --nav-h: 66px; }

    .hero-content {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .hero-content::after {
        border-radius: 27px;
    }

    .hero-logo {
        max-width: 350px;
        margin-bottom: 1.5rem;
    }

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

    .nav-brand h1 {
        font-size: 1.2rem;
    }

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

    .service-card,
    .contact-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Further reduce spacing on very small screens */
    .about,
    .clinic,
    .philosophy,
    .tips,
    .resources {
        padding: 2.5rem 0;
    }

    .tip-card,
    .resource-card {
        padding: 1.25rem;
    }

    .tips-grid,
    .resources-grid,
    .clinic-tiles {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .welcome-text {
        margin-bottom: 0.75rem;
    }

    .team-content p {
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        margin-bottom: 1rem;
    }

    .tile-content {
        padding: 1rem;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .logo-img {
        height: 50px;
        max-width: 180px;
    }
}

/* ==========================================================================
   Accessibility helpers (site-wide)
   ========================================================================== */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 10000;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

.nav-menu a[aria-current="page"] {
    color: var(--primary-color);
}
.nav-menu a[aria-current="page"]::after {
    width: 100%;
}

/* ==========================================================================
   Patient Information & Privacy pages (.patient-page)
   Consolidated from page-level <style> blocks. Design ref: Paedia-style –
   overlines, soft shadows, round cards.
   ========================================================================== */
.patient-page .info-hero {
    background: linear-gradient(180deg, #f8f6f3 0%, #fff 100%);
    padding: 3.5rem 0 1rem;
    text-align: center;
}
.patient-page .info-hero .hero-overline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.patient-page .info-hero h1 {
    font-size: 3.25rem;
    font-family: var(--font-hero);
    color: #1a2e28;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.2;
}
.patient-page .info-hero .hero-tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 400;
}
.patient-page .info-band {
    padding: 2.75rem 0;
}
.patient-page .info-band.band-cream { background: #f8f6f3; }
.patient-page .info-band.band-white { background: #fff; }
.patient-page .info-section-overline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}
.patient-page .info-section-title {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    color: #1a2e28;
    text-align: center;
    margin-bottom: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}
/* One-line intro under a band title (replaces inline styles) */
.patient-page .info-section-intro {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    margin: -1rem auto 1.75rem;
    max-width: 640px;
}
.patient-page .info-cards {
    display: grid;
    gap: 1.75rem;
    margin-top: 0;
}
.patient-page .info-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    border: none;
    padding: 2.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.patient-page .info-band.band-cream .info-card { background: #fff; }
.patient-page .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.patient-page .info-card h3 {
    font-size: 1.2rem;
    color: #1a2e28;
    margin-bottom: 1rem;
    font-weight: 700;
}
.patient-page .info-card p,
.patient-page .info-card li {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0.6rem;
}
.patient-page .info-card ul { margin: 0.5rem 0 1rem 1.25rem; }
.patient-page .info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
}
.patient-page .info-card a:hover { color: var(--primary-dark); border-bottom-color: var(--primary-color); }
.patient-page .clinics-photo-wrap {
    margin: 1.5rem 0 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.patient-page .clinics-photo {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}
.patient-page .resource-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Emergency section has 5 tiles: flex the row so the last two center instead of
   leaving an empty grid cell in the bottom-right. Scoped to this section only. */
#emergency-after-hours .resource-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#emergency-after-hours .resource-tile {
    flex: 1 1 280px;
    max-width: 340px;
}
.patient-page .resource-tile {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    border: none;
    padding: 2.25rem;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.patient-page .info-band.band-cream .resource-tile { background: #fff; }
.patient-page .resource-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.patient-page .resource-tile h3 {
    font-size: 1.2rem;
    color: #1a2e28;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.patient-page .resource-tile p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
}
.patient-page .resource-tile .tile-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.patient-page .resource-tile:hover .tile-cta { color: var(--primary-dark); }
/* Being a patient – info cards (same look as tiles, not clickable) */
.patient-page .patient-info-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.patient-page .patient-info-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    border: none;
    padding: 2rem;
    transition: box-shadow 0.25s ease;
}
.patient-page .info-band.band-cream .patient-info-card { background: #fff; }
.patient-page .patient-info-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.patient-page .patient-info-card h3 {
    font-size: 1.2rem;
    color: #1a2e28;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}
.patient-page .patient-info-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}
.patient-page .patient-info-card p:last-of-type { margin-bottom: 0; }
.patient-page .patient-info-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}
.patient-page .patient-info-card li { margin-bottom: 0.4rem; }
.patient-page .patient-info-card li:last-child { margin-bottom: 0; }
.patient-page .patient-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
}
.patient-page .patient-info-card a:hover { border-bottom-color: var(--primary-color); }
.patient-page .patient-info-card-wide {
    grid-column: 1 / -1;
    max-width: 100%;
}
.patient-page .patient-info-card-wide .clinics-map-wrap {
    margin-top: 1rem;
}
.patient-page .patient-info-card-wide .clinics-map-wrap iframe {
    height: 320px;
}
.patient-page .patient-info-card-btn {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0.6rem 1.75rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
}
/* Ensure button styles aren't overridden by generic link styles */
.patient-page .patient-info-card a.patient-info-card-btn {
    color: #fff;
    border-bottom: none;
}
.patient-page .patient-info-card a.patient-info-card-btn:hover {
    color: #fff;
    border-bottom: none;
}
.patient-page .patient-info-card-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    border-bottom: none;
}
/* "How to book" banner: details left, button right */
.patient-page .book-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: center;
    border-left: 5px solid var(--primary-color);
}
.patient-page .book-card .patient-info-card-btn {
    margin: 0;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}
/* Types + guidelines side by side in one card */
.patient-page .appt-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
/* Labelled rows: label left, detail right, hairline between */
.patient-page .info-rows { margin: 0.75rem 0 0; }
.patient-page .info-rows > div {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border-color);
}
.patient-page .info-rows > div:first-child { border-top: none; }
.patient-page .info-rows dt { font-weight: 700; color: #1a2e28; font-size: 0.95rem; line-height: 1.5; }
.patient-page .info-rows dd { margin: 0; color: var(--text-medium); font-size: 0.95rem; line-height: 1.5; }
.patient-page .patient-info-card .info-note { font-size: 0.9rem; margin-top: 0.75rem; }
@media (max-width: 900px) {
    .patient-page .book-card,
    .patient-page .appt-card { grid-template-columns: 1fr; gap: 1.75rem; }
    .patient-page .book-card .patient-info-card-btn { justify-self: start; }
}
@media (max-width: 480px) {
    .patient-page .info-rows > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
.patient-page .privacy-card { padding: 2.5rem; }
.patient-page .privacy-card h3 { font-size: 1.1rem; margin-top: 1.5rem; color: #1a2e28; }
.patient-page .privacy-card h3:first-of-type { margin-top: 0; }
/* Collapsible FAQ */
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    list-style: none;
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2e28;
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
    padding: 0 0 1.5rem 0;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.75;
}
.faq-item .faq-answer p { margin-bottom: 0.75rem; }
.faq-item .faq-answer ul { margin: 0.5rem 0 0.75rem 1.25rem; }
.faq-item .faq-answer li { margin-bottom: 0.35rem; }
.faq-item .faq-answer .faq-footnote { font-size: 0.85rem; color: var(--text-medium); }
/* Photos inside a patient card (arbor + path under the map) */
.patient-page .patient-info-card .photo-pair { margin: 1.25rem 0 0; gap: 1rem; }
.patient-page .patient-info-card .photo-pair img { border-radius: 16px; box-shadow: none; }
.faq-item .faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
    font-weight: 500;
}
.faq-item .faq-answer a:hover { border-bottom-color: var(--primary-color); }
.faq-item .clinics-photo-wrap { margin-top: 1rem; }
.patient-page .clinics-map-wrap {
    margin: 1.5rem 0 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.faq-item .clinics-map-wrap { margin-top: 1rem; }
.clinics-map-wrap iframe { display: block; }
.clinics-map-wrap a { color: var(--primary-color); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(45, 122, 95, 0.4); }
.clinics-map-wrap a:hover { border-bottom-color: var(--primary-color); }

/* Privacy policy long-form content */
.privacy-policy-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.75;
}
.privacy-policy-content p { margin-bottom: 1rem; }
.privacy-policy-content p:last-child { margin-bottom: 0; }
.privacy-policy-content h2 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: #1a2e28;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.privacy-policy-content h2:first-of-type { margin-top: 0; }
.privacy-policy-content h3 {
    font-size: 1.1rem;
    color: #1a2e28;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.privacy-policy-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}
.privacy-policy-content li { margin-bottom: 0.35rem; }
.privacy-policy-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 122, 95, 0.4);
    font-weight: 500;
}
.privacy-policy-content a:hover { border-bottom-color: var(--primary-color); }

@media (max-width: 768px) {
    .patient-page .info-hero { padding: 2.5rem 0 0.75rem; }
    .patient-page .info-hero h1 { font-size: 2.25rem; }
    .patient-page .info-hero .hero-tagline { font-size: 1.1rem; }
    .patient-page .info-section-title { font-size: 1.75rem; margin-bottom: 1.75rem; }
    .patient-page .info-band { padding: 2.5rem 0; }
}
