/* ==========================================================================
   Self-hosted Poppins Font
   ========================================================================== */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/poppins-700.woff2') format('woff2');
}

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #a098a5; /* Purple Grey - used in sections */
    --color-secondary: #c0b5c0; /* Light Purple Grey - used in buttons */
    --color-dark-grey: #625d5d; /* CTA Footer */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text-body: #333333;
    --color-bg-light: #e6e2e6; /* Approximate light background for sections */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Container */
    --container-width: 1200px;
    --container-narrow: 800px;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--color-white); }

.split-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        align-items: center;
    }
    
    .split-layout > * {
        flex: 1;
    }
}

.align-start {
    align-items: flex-start;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background-color: #333;
}

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

.btn-secondary:hover {
    background-color: #a89ca8;
}

.btn-secondary-light {
    background-color: var(--color-secondary);
    color: var(--color-black);
    margin-top: var(--spacing-md);
}

.btn-secondary-light:hover {
    background-color: #a89ca8;
}

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

/* Typography styles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: var(--spacing-xs) 0;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

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

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-cta .btn {
    padding: 8px 20px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-black);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-black);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 2000;
    position: relative;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none; /* Let button catch clicks */
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .header-cta {
        margin-top: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    /* Mobile Menu Active State */
    .main-nav.active {
        display: flex !important;
        position: absolute;
        top: 80px; /* Below the header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: var(--spacing-md);
        flex-direction: column;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .main-nav.active a {
        font-size: 1.2rem;
        padding: 10px;
    }

    .header-cta.active {
        display: block;
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero background image (replaces CSS background-image for faster LCP) */
.hero-section picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

/* Desktop parallax via position: fixed + clip-path on parent */
@media (min-width: 769px) {
    .hero-section {
        clip-path: inset(0);
    }
    .hero-section picture {
        position: fixed;
    }
}

/* Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    z-index: -1;
}

/* Legacy hero-bg support for team pages using CSS background-image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

@media (max-width: 768px) {
    .hero-content {
        justify-content: flex-end !important;
        padding-top: 180px !important; /* Force offset from fixed header */
        padding-bottom: 40px;
    }
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    line-height: 1.1;
}

/* Healing Section */
.healing-section {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0;
}

.content-padding {
    padding: 0 var(--spacing-md);
}

.healing-section p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.image-col img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Situations Section */
.situations-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
}

.medium-margin {
    margin-bottom: var(--spacing-xl);
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.conditions-list {
    margin-left: var(--spacing-md);
}

.conditions-list li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.conditions-list li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--color-black);
}

.image-col-right img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Reviews Section */
.reviews-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.reviews-header {
    margin-bottom: var(--spacing-lg);
}

.stars {
    color: #ffd700;
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: var(--spacing-sm);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.review-card {
    background-color: var(--color-bg-light);
    padding: var(--spacing-md);
    text-align: left;
}

.review-card p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.review-card cite {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
}

/* What We Help With Section */
.help-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.help-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.help-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.help-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-body);
}

/* Team Review Quote */
.team-review {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-light);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.team-review p {
    margin-bottom: var(--spacing-xs);
}

.team-review cite {
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Legacy testimonial classes (used on subpages) */
.testimonial-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.testimonial-quote {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Footer Section */
.cta-section {
    background-color: var(--color-dark-grey);
    padding: var(--spacing-xl) 0;
}

/* Site Footer */
.site-footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background-color: var(--color-white);
    border-top: 1px solid #eee;
}

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

.footer-left {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

.footer-left p {
    margin: 0;
}

.footer-left a {
    color: #666;
    text-decoration: none;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-left .footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badge {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.wide-badge {
    height: 30px;
}

.footer-right {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.4rem 2rem;
    font-size: 0.85rem;
    line-height: 1.8;
    text-align: right;
    padding-top: calc(0.9rem * 1.8);
}

.footer-right a {
    color: #595959;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
    .footer-left .footer-badges {
        justify-content: center;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Service & Condition Pages
   ========================================================================== */
.service-content {
    max-width: 800px;
    margin: 0 auto;
}
.service-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}
.service-subtitle {
    font-size: 1.1rem;
    color: var(--color-dark-grey);
    margin-bottom: 2rem;
    font-style: italic;
}
.service-description {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 2.5rem;
}
.service-description p {
    margin-bottom: 1rem;
}
.therapist-list {
    text-align: left;
    margin-bottom: 2.5rem;
}
.therapist-list h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.therapist-list ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.therapist-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.therapist-list a {
    color: var(--color-dark-grey);
    text-decoration: underline;
}
.therapist-list a:hover {
    color: var(--color-black);
}
.service-cta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 30px;
}
.back-link {
    display: inline-block;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Team Pages
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}
@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.team-member {
    text-align: center;
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}
.team-member-img {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.team-member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.team-member-pronouns {
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    margin-bottom: 30px;
    font-style: italic;
}
.team-member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: left;
}
.team-review {
    margin-top: auto;
}
.team-member-details p {
    margin-bottom: 15px;
}
.team-member-details strong {
    font-weight: 600;
}
.team-booking-btn {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 30px;
    width: 100%;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--color-bg-light);
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}
.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}
.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-effective {
    font-style: italic;
    color: #777;
}

/* ==========================================================================
   Location Pages
   ========================================================================== */
.breadcrumb {
    padding-top: 100px;
    padding-bottom: 0;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb a {
    color: #666;
    text-decoration: underline;
}
.landing-section {
    padding: var(--spacing-xl) 0;
}
.landing-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: var(--spacing-md);
}
.landing-section p,
.landing-section li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}
.landing-section ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.landing-section li {
    position: relative;
    margin-bottom: 0.5rem;
}
.landing-section li::before {
    content: '•';
    position: absolute;
    left: -15px;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}
@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}
.info-box {
    background-color: var(--color-bg-light);
    padding: var(--spacing-md);
}
.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}
.info-box p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}
.location-page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
}
.location-page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}
.location-page-header p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}
/* About page */
.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}
@media (min-width: 768px) {
    .about-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.about-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.about-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-sm);
    flex: 1;
}
.about-card .btn {
    align-self: flex-start;
}
.insurance-note {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg) 0;
}
.insurance-note p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
}
.insurance-note a {
    font-weight: 600;
    text-decoration: underline;
}
.scope-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    line-height: 1.7;
}
