/* Import Cormorant Unicase from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@300;400;500;600;700&display=swap');

/* Define color variables */
:root {
    --primary-green: #2d5a4a;
    --soft-green: #7fb069;
    --warm-beige: #f7f3e900;
    --warm-white: #fefcf600;
    --text-dark: #2c3e50;
    --text-light: #6c7b7f;
    --accent-orange: #d4a574;
    --breathing-blue: #a8c8d8;
    --white: #ffffff;
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--warm-beige) 100%);
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    padding: 1rem 5%;
    background: var(--primary-green);
    color: var(--white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    z-index: 1001;
}

.logo {
    width: 40px;
    height: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.9; }

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.aarre-text {
    font-family: Georgia, serif !important;
    font-weight: 300 !important;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
}

.wellness-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    line-height: 1;
}

.slash {
    margin: 0 0.3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    z-index: 1001;
}

.nav-links a {
    position: relative;
    font-size: 1rem;
    font-weight: 300;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--soft-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--soft-green);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--soft-green);
}

.nav-links a:hover::after,
.nav-links a.active::after { 
    width: 100%; 
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--primary-green);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    padding: 1.5rem 1.25rem;
    z-index: 999;
}

.mobile-menu.active { transform: translateY(0); }

.mobile-menu ul {
    list-style: none;
    width: 100%; padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu li:last-child {
    margin-bottom: 0;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active { 
    color: var(--soft-green); 
}

body.menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--white);
    max-width: 90%; max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.popup-content h2 { color: var(--primary-green); margin-bottom: 1rem; }
.popup-content p { margin-bottom: 1rem; color: var(--text-dark); }
.popup-close {
    background: var(--soft-green);
    color: var(--white);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
    margin-bottom: 1vh;
}

.popup-close:hover { background: var(--primary-green); }

/* Main Content and Sections */
.main-content { margin: 80px 0 0 0; }
.section {
    padding: 0 5%; max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.section.visible { opacity: 1; transform: translateY(0); }

.section-title {
    font-size: clamp(1.8rem,4vw,2.2rem);
    color: var(--primary-green);
    margin: 3rem 0 1.5rem;
    text-align: left;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 8rem 5% 4rem;
    background: radial-gradient(ellipse at center, var(--warm-white) 0%, var(--warm-beige) 70%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(127,176,105,0.05) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
    0%,100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}
.hero-title {
    font-size: clamp(2.5rem,7vw,4rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative; z-index: 2;
    animation: breatheText 6s ease-in-out infinite;
}
@keyframes breatheText { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.hero-subtitle {
    font-size: clamp(1.1rem,3vw,1.4rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative; z-index: 2;
    font-style: italic;
}

/* Disclaimer */
.disclaimer {
    background: var(--white);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.disclaimer-title { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 0.8rem; }
.disclaimer-link { color: var(--soft-green); text-decoration: underline; font-weight: 500; cursor: pointer; }

/* Breathing Test */
.breathing-test {
    background: linear-gradient(135deg,var(--breathing-blue) 0%,var(--soft-green) 100%);
    color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.breathing-test::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.breathing-test.active::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.breathing-test.inhaling::before { transform: translate(-50%, -50%) scale(1.4); transition: transform 4s ease-in-out; }
.breathing-test.exhaling::before { transform: translate(-50%, -50%) scale(1); transition: transform 6s ease-in-out; }
.breathing-test.preparing::before { animation: gentlePulse 2s ease-in-out infinite; }
.breathing-test.complete::before { animation: successPulse 2s ease-in-out infinite; background: rgba(255,255,255,0.25); }
@keyframes gentlePulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.1); } }
@keyframes successPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.3; } 50% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.5; } }
.test-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.8rem auto;
    z-index: 2;
    display: block;
}
.test-button:hover { background: var(--white); color: var(--primary-green); transform: translateY(-2px); }
.breathing-counter { font-size: 2.5rem; margin: 0.8rem 0; font-weight: bold; z-index: 2; }

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.principle-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--soft-green);
}
.principle-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.12); transform: translateY(-5px); }
.principle-number { font-size: 1.8rem; color: var(--soft-green); font-weight: bold; margin-bottom: 0.8rem; }
.principle-title { font-size: 1.3rem; color: var(--primary-green); margin-bottom: 0.8rem; }
.principle-content { color: var(--text-light); line-height: 1.6; }

/* Services */
.services {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-link {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}
.service-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

/* Training Details Cards */
.training-overview {
    background: var(--white);
    border-left: 4px solid var(--soft-green);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Training Stats */
.training-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.stat-card {
    background: var(--primary-green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--soft-green);
}
.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Session Cards */
.sessions-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}
.session-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-top: 4px solid var(--soft-green);
    transition: all 0.3s ease;
}
.session-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.session-number {
    display: inline-block;
    background: var(--soft-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.session-title {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}
.session-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}
.session-content {
    color: var(--text-dark);
    line-height: 1.6;
}
.session-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.session-content li {
    margin-bottom: 0.5rem;
}

/* Requirements Section */
.requirements {
    background: linear-gradient(135deg, var(--breathing-blue) 0%, var(--soft-green) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.requirement-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}
.requirement-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.requirement-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}
.requirements-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}
.requirements-note h3 {
    margin-bottom: 1rem;
}

/* Price and Contact */
.pricing {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}
.pricing::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: breathe 10s ease-in-out infinite;
}
.price-highlight {
    font-size: 3rem;
    font-weight: bold;
    color: var(--soft-green);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.price-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.contact-button {
    background: var(--soft-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}
.contact-button:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Author */
.author {
    background: var(--white);
    border-left: 4px solid var(--soft-green);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative; /* Required for top-right badge */
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--soft-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* This ensures the image stays within the circle */
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image fills the circle properly */
}

.author-content {
    flex: 1;
}

.author-name { 
    font-size: 1.6rem; 
    color: var(--primary-green); 
    margin-bottom: 0.5rem; 
}

.author-title { 
    color: var(--text-light); 
    font-style: italic; 
    margin-bottom: 0.8rem; 
}

.author-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-link { 
    color: var(--soft-green); 
    text-decoration: underline; 
    font-weight: 500; 
}

/* Certification badge in top right */
.author-certification-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.author-certification-badge .author-certification {
    max-width: 350px; /* Slightly bigger */
    height: auto;
    margin: 0;
}


/* Flexible Scheduling */
.flex-scheduling {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-orange);
}
.flex-scheduling h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}
.flex-scheduling p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Closing Note */
.closing-note {
    text-align: center;
    padding: 2rem 0;
}
.closing-quote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.closing-thanks {
    color: var(--text-dark);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,var(--soft-green),var(--breathing-blue));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation: none!important; transition-duration: 0!important; }
}

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 0.8rem 3%; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .section { padding: 0.5rem 3%; }
    .hero { padding: 5rem 3% 2rem; }
    .hero-title { font-size: clamp(2rem,8vw,3.5rem); max-width: 95%; margin: 0 auto; line-height: 1.2; }
    .hero-subtitle { font-size: clamp(1rem,4vw,1.2rem); }
    .principles-grid, .services-grid, .training-stats, .requirements-grid { grid-template-columns: 1fr; gap: 1rem; }
    .logo { width: 32px; }
    .aarre-text { font-size: 1.2rem; }
    .wellness-text { font-size: 0.9rem; }
    .breathing-counter { font-size: 2rem; }
    .test-button { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .disclaimer { padding: 1rem; margin: 1rem 0 1.5rem 0; }
    .section-title { margin: 0.5rem 0 1rem; }
    .section-title:first-of-type { margin-top: 3rem; }
    .section-content { font-size: 0.95rem; margin-bottom: 0.5rem; }
    .principle-card, .session-card, .training-overview, .requirements, .pricing, .author, .flex-scheduling { padding: 1.5rem; margin: 1rem 0; }
    .stat-number { font-size: 2rem; }
    .price-highlight { font-size: 2.5rem; }
    .author { 
        flex-direction: column; 
        text-align: center; 
        gap: 1.5rem;
    }
    .author-image { 
        width: 80px; 
        height: 80px; 
        font-size: 2rem; 
    }
    .breathing-test { margin: 1rem 0 0.5rem 0; }
    .principles-grid { margin: 1rem 0 0.5rem 0; }
    .section-content:last-of-type { margin-bottom: 0.5rem; }
    .section:has(.breathing-test) { margin-bottom: 1rem; }
    .section:has(.breathing-test) + .section { margin-top: 1rem; }
    .breathing-test + .section-content { margin-top: 1rem; }
}

@media (max-width: 480px) {
    .logo { width: 28px; }
    .aarre-text { font-size: 1rem; }
    .section-content p { margin-bottom: 1rem; }
}

/* Override for Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1200px;
}

/* Override for Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .principles-grid, .sessions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}