/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FBF8F4 0%, #F5F0E9 100%);
    color: #3A3530;
    font-size: 18px;
    line-height: 1.7;
}

/* Headings use Cormorant Garamond */
h1, h2, h3, .logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Improved focus states for accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Link Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Refined Color Palette - Warm & Grounded */
:root {
    --root-chakra: #E63F51;
    --sacral-chakra: #FF7D45;
    --solar-chakra: #FFC845;
    --heart-chakra: #4CAF50;
    --throat-chakra: #4A90E2;
    --third-eye-chakra: #6B5B95;
    --crown-chakra: #9F6BAF;

    /* Main palette - sage & terracotta */
    --primary-color: #5C6B54;
    --secondary-color: #8A9A7E;
    --accent-color: #C07A56;
    --accent-light: #D4A088;
    --warm-bg: #FBF8F4;
    --soft-border: #E4DCD3;

    --text-dark: #3A3530;
    --text-medium: #5D5549;
    --text-light: #8A8078;

    --footer-bg: #F5F0E9;
    --header-bg: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    background-color: var(--warm-bg);
    margin: 30px auto;
    padding: 0;
    border-radius: 18px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 8px 30px rgba(90, 80, 65, 0.08);
    overflow: hidden;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: var(--primary-color);
    padding: 15px 25px;
    border-bottom: 1px solid var(--soft-border);
    position: sticky;
    top: 0;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 45px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
}

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

.logo-text a:hover {
    color: var(--accent-color);
}

/* Logo sun (replacing "o") */
.logo-sun-o {
    position: relative;
    display: inline-block;
    color: transparent !important;
}

.sun-icon {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.0em;
    height: 1.0em;
    overflow: visible;
    pointer-events: none;
}

/* Logo butterfly + trail after text */
.butterfly-icon {
    display: inline-block;
    width: 1.2em;
    height: 0.6em;
    margin-left: -0.35em;
    vertical-align: top;
    margin-top: 0.05em;
    overflow: visible;
    transform: rotate(-15deg);
}

/* Navigation */
nav {
    background: none;
    padding: 0;
    width: auto;
    box-shadow: none;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

nav ul li a i {
    margin-right: 6px;
    font-size: 16px;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 80, 65, 0.2);
}

nav ul li a.active {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: var(--soft-border);
}

/* About Section */
.about {
    padding: 50px 40px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.about-content img {
    width: 280px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(90, 80, 65, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(90, 80, 65, 0.2);
}

.about-text {
    max-width: 700px;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-medium);
}

/* Main content area */
main {
    padding: 20px 40px 40px;
}

#about p {
    max-width: 700px;
    margin: 0 auto;
    text-wrap: pretty;
    color: var(--text-medium);
}

/* ===== LINEAGE / MENTOR CREDITS (photo + story) ===== */
.lineage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 10px;
}

.lineage-photo {
    flex: 0 0 auto;
    width: 280px;
    margin: 0;
    text-align: center;
}

.lineage-photo img {
    width: 280px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(90, 80, 65, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lineage-photo img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(90, 80, 65, 0.2);
}

.lineage-photo figcaption {
    margin-top: 10px;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-light);
    text-wrap: balance;
}

.lineage-text {
    flex: 1 1 auto;
    max-width: 600px;
}

#ig {
    padding: 20px 0;
}

#ig h1 {
    font-size: 36px;
    margin-top: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

#ig h2 {
    font-size: 28px;
    margin-top: 30px;
}

/* Services Section */
.services {
    padding: 50px 20px;
    text-align: center;
}

.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.service {
    max-width: 320px;
    text-align: center;
    margin: 0;
    padding: 30px 25px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--soft-border);
    transition: all 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(90, 80, 65, 0.12);
    border-color: var(--accent-light);
}

.service i {
    font-size: 45px;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service:hover i {
    transform: scale(1.1);
}

.service h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.service p {
    color: var(--text-medium);
    font-size: 18px;
    line-height: 1.6;
}

/* Video Section */
.videos {
    text-align: center;
    margin: 50px 0;
    padding: 40px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(92, 107, 84, 0.04) 100%);
    border-radius: 14px;
}

.videos h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.video-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.video {
    margin: 10px;
}

.video h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

iframe {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 40px 20px 8px;
    background: linear-gradient(180deg, rgba(192, 122, 86, 0.05) 0%, transparent 100%);
    text-align: center;
    border-radius: 14px;
    margin: 30px 0 10px;
}

.testimonials h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    max-width: 900px;
    text-align: left;
    margin: 20px;
    background: white;
    padding: 30px 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(90, 80, 65, 0.08);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    color: var(--accent-light);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-medium);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Pricing Section */
.pricing {
    padding: 20px 0 40px;
}

.pricing h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.pricing p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

.pricing a {
    color: var(--accent-color);
    font-weight: 500;
}

.pricing a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    max-width: 100%;
    margin: 0;
    background-color: var(--footer-bg);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
    border-top: 1px solid var(--soft-border);
}

footer a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-social {
    margin: 0 0 10px;
}

.footer-social a {
    font-size: 20px;
    margin: 0 12px;
    color: var(--text-light);
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Writings page specific */
.right-align {
    text-align: right;
}

.right-align a {
    color: var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.right-align a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 50px 40px 40px;
    background: linear-gradient(135deg, rgba(92,107,84,0.05) 0%, rgba(192,122,86,0.04) 100%);
    border-bottom: 1px solid var(--soft-border);
}

.hero h1 {
    font-size: 60px;
    margin: 0 0 20px;
    color: var(--primary-color);
    line-height: 1.1;
    text-wrap: balance;
}

.hero p {
    font-size: 22px;
    color: var(--text-medium);
    margin: 0 0 24px;
}

.hero-cta {
    display: inline-block;
    clear: both;
    background: var(--primary-color);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.hero-cta:hover {
    background: #4A5643 !important;
    transform: translateY(-2px);
    color: #fff !important;
}

.hero-photo {
    float: right;
    width: 280px;
    margin: 8px 0 16px 40px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(90, 80, 65, 0.15);
}

/* ===== FEATURED VIDEO + SERVICES SPLIT ===== */
.featured-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 20px 20px;
}

.featured-video-block {
    flex: 1 1 55%;
}

.featured-video-block h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.featured-video-block iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
}

.featured-video-block .episode-link {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.featured-video-block .episode-link:hover {
    color: var(--primary-color);
}

.featured-services-block {
    flex: 1 1 40%;
}

.featured-services-block h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.featured-services-block .services-grid {
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

.featured-services-block .service {
    max-width: 100%;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
}

.featured-services-block .service i {
    font-size: 24px;
    margin: 0;
}

.featured-services-block .service h3 {
    font-size: 18px;
    margin: 0;
    flex: 1;
}

.featured-services-block .service p {
    font-size: 16px;
    flex-basis: 100%;
    margin: 8px 0 0;
}

/* ===== WRITINGS PREVIEW ON HOMEPAGE ===== */
.writings-preview {
    padding: 30px 20px 20px;
    border-top: 1px solid var(--soft-border);
}

.writings-preview h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.writings-preview .services-grid {
    margin-top: 0;
}

.writings-preview .services-grid .service {
    max-width: 280px;
}

.writings-preview-footer {
    text-align: right;
    margin-top: 16px;
}

.writings-preview-footer a {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
}

.writings-preview-footer a:hover {
    color: var(--primary-color);
}

/* ===== EPISODES PAGE GRID ===== */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 30px;
}

.episode-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--soft-border);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.episode-card:hover {
    box-shadow: 0 8px 24px rgba(90, 80, 65, 0.12);
}

.episode-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.episode-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
}

/* ===== ARTICLE CROSS-LINK FOOTER ===== */
.article-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--soft-border);
}

.article-nav h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.article-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-nav-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--warm-bg);
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-nav-links a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 850px) {
    body {
        font-size: 18px;
    }

    .container {
        margin: 0;
        border-radius: 0;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: var(--header-bg);
        padding: 20px 0;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 5px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 90%;
    }

    nav ul li a {
        font-size: 18px;
        padding: 14px 20px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .logo-text {
        font-size: 32px;
    }

    main {
        padding: 20px;
    }

    .about {
        padding: 30px 20px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        width: 200px;
        margin-bottom: 20px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service {
        max-width: 100%;
    }

    .testimonial {
        padding: 25px 20px;
    }

    footer {
        padding-bottom: 80px;
    }

    #ig h1 {
        font-size: 28px;
    }

    #ig h2 {
        font-size: 24px;
    }

    .hero {
        padding: 30px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-photo {
        float: none;
        display: block;
        width: 200px;
        margin: 0 auto 24px;
    }

    .featured-row {
        flex-direction: column;
        padding: 30px 20px 20px;
    }

    .lineage {
        flex-direction: column;
        text-align: center;
    }

    .lineage-photo {
        margin: 0 auto 8px;
    }

    .featured-services-block .service {
        text-align: center;
    }

    .writings-preview .services-grid .service {
        max-width: 100%;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .hamburger, nav, footer {
        display: none;
    }

    .container {
        box-shadow: none;
        border: none;
    }
}
