@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Color Palette */
    --color-primary: #2E5C38;
    /* Forest Green */
    --color-primary-dark: #1F4027;
    --color-accent: #8FA893;
    /* Sage */
    --color-accent-light: #F4F8F5;
    /* Lighter Sage */
    --color-bg: #FAF9F6;
    /* Off-white / Cream */
    --color-bg-alt: #ffffff;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-white: #FFFFFF;
    --color-error: #D32F2F;

    /* Typography */
    --font-heading: 'Crimson Text', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(46, 92, 56, 0.05);
    /* Tinted shadow */
    --shadow-md: 0 8px 15px rgba(46, 92, 56, 0.1);
    --shadow-lg: 0 15px 30px rgba(46, 92, 56, 0.15);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 600;
}

/* Increased size */
h2 {
    font-size: 2.8rem;
    font-weight: 400;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    /* Slightly larger body */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(46, 92, 56, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 92, 56, 0.4);
}

/* Header/Nav */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 100;
    background: transparent;
    /* Transparent header */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    /* Darker for better contrast against light bg or force shadow */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    /* Readability */
}

.logo img {
    height: 60px;
    /* Slightly larger logo */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 1.15rem;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

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

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

.nav-links a {
    margin-left: var(--spacing-md);
    font-weight: 600;
    color: var(--color-primary-dark);
    transition: color 0.3s ease;
}

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

/* White header styling for meditation page */
/* .meditation-header .logo-img removed to keep original logo color */

.meditation-header .nav-links a {
    color: #FFFFFF;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.meditation-header .mobile-menu-btn span {
    background-color: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    background-color: #1a3320;
    /* Darker Forest Green */
    color: #e0e8e1;
    padding: var(--spacing-lg) 0;
    text-align: right;
}

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

.footer a {
    color: #fff;
    opacity: 0.8;
}

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

@media (max-width: 600px) {
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer p {
        margin-bottom: 0;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg-alt);
    transition: border 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
}

/* Special Classes */
.bg-cream {
    background-color: var(--color-bg);
}

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

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

.bg-accent-green {
    background-color: #E8F0EA;
    /* Slightly darker sage for section contrast */
}

.qhht-bg {
    background: linear-gradient(rgba(232, 240, 234, 0.85), rgba(232, 240, 234, 0.85)), url('./HealingJourney_QHHT.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

@media (max-width: 768px) {
    .qhht-bg {
        background: linear-gradient(rgba(232, 240, 234, 0.85), rgba(232, 240, 234, 0.85)), url('./HealingJourney_QHHT_mobile.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
}

/* Meditation Circle Page */
/* Meditation Circle Page */
.meditation-hero {
    background: linear-gradient(rgba(46, 92, 56, 0.1), rgba(46, 92, 56, 0.1)), url('./MeditationGroup_Hero.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 6rem 1rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile meditation hero background */
@media (max-width: 768px) {
    .meditation-hero {
        background: linear-gradient(rgba(46, 92, 56, 0.1), rgba(46, 92, 56, 0.1)), url('./MeditationGroup_Hero_mobile.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
}

.meditation-subtitle {
    font-size: 1.25rem;
    color: #FFFFFF;
    font-style: italic;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.meditation-details-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.detail-item {
    background: white;
    padding: 2rem;
    border-radius: 50%;
    /* Circle shape to match theme */
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(46, 92, 56, 0.1);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .meditation-details-grid {
        flex-direction: column;
        align-items: center;
    }

    .detail-item {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
        padding: 2rem;
    }
}

/* Shared Hero Content Style */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 3rem;
    margin: 2rem;
    text-align: center;
}

/* Meditation page specific hero content - white text with shadow */
.meditation-hero .hero-content h1,
.meditation-hero .hero-content p {
    color: #FFFFFF;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* White logo for meditation page */
.meditation-hero .logo-img {
    filter: brightness(0) invert(1);
}

/* White nav links for meditation page */
.meditation-hero~header .nav-links a,
header:has(~ .meditation-hero) .nav-links a {
    color: #FFFFFF;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Decorative Text */
.text-decorative {
    position: relative;
    padding-bottom: 1.5rem;
}

.text-decorative::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.text-decorative-left::after {
    left: 0;
    transform: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 2rem;
    padding-top: 5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu a {
    display: block;
    /* Ensure links take up space */
    width: 100%;
    /* Full width for easier tapping */
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.mobile-menu.active {
    transform: translateY(0);
    display: flex;
}


/* Responsive Logo */
.logo-img {
    height: 75px;
    margin-right: 15px;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
        /* Reduce header padding on mobile */
    }

    .logo-img {
        height: 50px;
        /* Smaller logo for mobile */
        margin-right: 10px;
    }

    .logo-text {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}