/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Color Palette derived from live site */
    --color-primary: hsla(218.18, 37.28%, 23.13%, 1); /* #25334F - Buttons, Footer */
    --color-white: hsla(0, 0%, 100%, 1);              /* #FFFFFF - Backgrounds, Text */
    --color-black: hsla(0, 0%, 0%, 1);                /* #000000 - Body Text */
    --color-light-accent: hsla(60, 7.46%, 86.86%, 1); /* #DFE0DA - Section Backgrounds */
    --color-dark-accent: hsla(330, 2.43%, 16.07%, 1); /* #2C292A - Dark Elements */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 8rem;     /* 128px */
    
    /* Container & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

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

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

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), color var(--transition-normal);
    color: var(--color-primary);
}

.site-header a {
    color: inherit;
}

.site-header .btn-primary {
    color: var(--color-white);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    color: var(--color-primary);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    gap: var(--space-md);
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.hamburger {
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

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

.site-footer h3, .site-footer h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-only-nav {
        display: block;
        margin-top: var(--space-sm);
    }
}

.mobile-only-nav {
    display: none; /* Hidden on desktop */
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

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

.mt-space {
    margin-top: var(--space-md);
}

/* ==========================================================================
   Home Page Sections
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-image: url('assets/true-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-xl);
}

.hero-content {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    padding-bottom: var(--space-lg);
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Dark Wellness Section */
.dark-wellness-section {
    background-color: #121212;
    color: var(--color-white);
    padding: 100px 0;
}

.dark-wellness-section h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    font-weight: 500;
    margin: 0;
}

.dark-wellness-section p {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Services / Runners Section */
.services-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.services-section h2 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.services-section p {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

.conditions strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    font-size: 1.1rem;
}

.conditions ul {
    list-style-type: none;
    padding-left: 0;
}

.conditions li {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.5rem;
}

.conditions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.circle-image-wrapper {
    width: 90%;
    max-width: 600px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonial Section */
.testimonial-section {
    position: relative;
    padding: var(--space-xl) 0;
    background-color: #000000;
    background-image: url('assets/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.testimonial-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    color: var(--color-white);
}

.testimonial-content blockquote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.testimonial-content cite {
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-white);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto var(--space-md);
    color: var(--color-black);
}

/* Footer Button Override */
.btn-portal {
    background-color: var(--color-white);
    color: var(--color-black);
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn-portal:hover {
    opacity: 0.9;
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 85vh;
        min-height: 500px;
        padding-bottom: var(--space-xl);
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    }
    
    .hero-title {
        text-align: center;
    }
    
    .dark-wellness-section,
    .services-section,
    .testimonial-section,
    .cta-section {
        padding: var(--space-lg) 0;
    }
    
    /* Mobile Typography Overrides */
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.2;
    }
    
    .dark-wellness-section h2,
    .services-section h2,
    .cta-section h2,
    .info-block h2,
    .service-row h2 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .dark-wellness-section p,
    .services-section p,
    .team-section p,
    .service-row p,
    .info-block p {
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Subpage Specific Styles
   ========================================================================== */

/* Header adjustments for plain white subpages */
.page-subpage .site-header {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-light-accent);
}

.page-subpage .site-header.scrolled {
    color: var(--color-primary);
}

.page-subpage main {
    padding-top: var(--header-height);
}

/* Subpage Utilities */
.section-padding {
    padding: var(--space-xl) 0;
}

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

.bg-light {
    background-color: var(--color-light-accent);
}

.subpage-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background-color: var(--color-light-accent);
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

/* Clinic Hero Section */
.clinic-hero-section {
    position: relative;
    padding: var(--space-xxl) 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/clinic-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: parallax;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
}

.clinic-hero-section h2 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.provider-name {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: var(--space-sm);
}

.team-section p {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* Services Page Styles */
.info-block h2 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-black);
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-row {
    padding: var(--space-lg) 0;
}

.service-row.line-top {
    border-top: 1px solid var(--color-light-accent);
}

.service-row h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: var(--space-sm);
}

.service-row p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Nav Active State matching exact site design */
.main-nav a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .service-row .column.order-1 {
        order: 1;
    }
    .service-row .column.order-2 {
        order: 2;
    }
    
    .section-padding {
        padding: var(--space-lg) 0;
    }
    .subpage-hero {
        padding: var(--space-lg) 0 var(--space-xs) 0;
    }
    .page-title, .provider-name {
        font-size: 2.4rem;
    }
    
    .hide-mobile {
        display: none !important;
    }

    /* Mobile specific overrides */
    .services-section .two-col-grid {
        display: flex;
        flex-direction: column;
    }

    .services-section .image-column {
        order: -1;
        margin-bottom: var(--space-lg);
    }

    .bg-light {
        background-color: var(--color-white) !important;
    }

    .animate-on-scroll, .info-block {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

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

    .bg-light .image-column {
        display: none !important;
    }
    
    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .name-fields {
        flex-direction: column !important;
    }
}

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

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