/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1a2333; /* Dark Slate Blue */
    --secondary-color: #f4f7f9; /* Light Grey */
    --accent-color: #c5a47e; /* Soft Gold */
    --text-color: #333d49;
    --text-light: #f4f7f9;
    --border-color: #dde4e9;
    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.7;
}

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

/* --- Header & Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 51, 0.65);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

/* --- Navigation --- */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

/* --- General Content Sections --- */
.content-section {
    padding: 6rem 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    color: #555;
}

/* --- Pillars & Tools Section --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    text-align: center;
    padding: 2.5rem;
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* styles for the Tools section grid and images */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.tool-image {
    max-width: 256px;
    max-height: 256px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-inline: auto;
    border-radius: 8px; /* Optional: adds rounded corners to placeholders */
}
#tools .pillar-card {
    padding: 1.5rem;
}
#tools .pillar-card p {
    margin-bottom: 1rem;
}
#tools .pillar-card .btn {
    padding: 0.5rem 1.5rem;
}


/* --- Ecosystem Section --- */
.ecosystem-grid-wrapper {
    padding: 0 2rem;
}

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

.ecosystem-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.ecosystem-image {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.ecosystem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 256px;
    max-height: 160px;
    margin-inline: auto;
}

.ecosystem-text {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ecosystem-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ecosystem-text p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: #555;
    font-size: 0.95rem;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.hero-text .btn-primary:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-color: var(--text-light);
}


/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
#retreat .gallery-grid {
    margin-top: 4rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Contact Form Section --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.4);
}

.contact-form .btn {
    align-self: center;
    cursor: pointer;
    width: 200px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.main-footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.pillar-card:nth-child(2), .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.pillar-card:nth-child(3), .gallery-item:nth-child(3) { transition-delay: 0.2s; }
.ecosystem-card:nth-child(2) { transition-delay: 0.1s; }
.ecosystem-card:nth-child(3) { transition-delay: 0.2s; }
.ecosystem-card:nth-child(4) { transition-delay: 0.3s; }


/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) { /* Breakpoint for 4-column grids */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .content-section {
        padding: 4rem 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .form-group {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) { /* Breakpoint for 2-column grids */
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


/* --- STYLES FOR TOOL PAGES --- */
.document-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f9f9f9;
}
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.main-content h1, .main-content h2, .main-content h3 {
    color: #1a237e;
    font-family: "Georgia", serif;
}
.main-content h2 { 
    border-bottom: 1px solid #c5cae9; 
    padding-bottom: 5px; 
    margin-top: 40px; 
}
.main-content h3 { color: #3949ab; }
.main-content ul { padding-left: 20px; }
.main-content li { margin-bottom: 10px; }
.main-content strong { color: #1a237e; }
.meta-info { 
    text-align: center; 
    font-style: italic; 
    color: #555; 
    margin-bottom: 30px; 
}

/* Page Header for Tool Pages */
.page-header {
    position: relative;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(26, 35, 51, 0.65);
}
.page-header h1 {
    position: relative;
    color: white;
    font-size: 2.5rem;
    margin: 0;
    border: none;
    font-family: "Georgia", serif;
}
.back-button {
    position: relative;
    margin-top: 1rem;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.back-button:hover {
    background-color: white;
    color: #1a2333;
}
.back-link { 
    display: block; 
    text-align: center; 
    margin-top: 40px; 
}

/* Background Images for Tool Page Headers */
#ripples-header   { background-image: url('https://images.unsplash.com/photo-1599303248422-54c3a584852f?auto=format&fit=crop&q=80'); }
#book-header      { background-image: url('images/book-wide.png'); }
#dede-header      { background-image: url('images/dede-wide.png'); }
#retreats-header  { background-image: url('images/yoga-wide.png'); }
#community-header { background-image: url('images/comm-wide.png'); }

.logline, .commitment {
    background-color: #f4f7f9;
    border-left: 4px solid #c5a47e;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}
.part-heading {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-top: 2px solid #dde4e9;
    padding-top: 1.5rem;
    color: #1a237e;
}
.chapter-box {
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid #c5cae9;
}
.chapter-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3949ab;
    border: none;
}
.topic-heading {
    font-weight: bold;
    color: #1a237e;
    margin-top: 1rem;
}
.exercise-box {
    background-color: #fff;
    border: 1px solid #dde4e9;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 5px;
}
.exercise-box strong {
    font-family: "Georgia", serif;
    color: #3949ab;
}
