/* ==========================================================================
   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: all 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: all 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: all 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-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/situations.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Overlay to ensure text readability if needed */
.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;
}

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

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

.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);
}

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

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

.wide-badge {
    height: 60px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: var(--spacing-md);
}

.footer-legal {
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
}

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

/* ==========================================================================
   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);
}
