/* =========================================
   PREMIUM THEME VARIABLES
   ========================================= */
:root {
    /* Palette: Organic & Grounded */
    --color-sage: #8da399;
    /* Primary Sage */
    --color-sage-deep: #5e7067;
    /* Darker Leaf */
    --color-sage-light: #e8ecea;
    /* Very pale sage background */

    --color-sand: #fbf9f4;
    /* Warm Paper White */
    --color-sand-dark: #f0ebe0;

    --color-gold: #c5a47e;
    /* Muted Gold Accent */
    --color-gold-hover: #b08d65;

    --color-text-main: #2c3330;
    /* Soft Charcoal */
    --color-text-light: #5d6662;
    /* Muted Grey */

    --color-white: #ffffff;
    --color-dark-bg: #2c3330;
    /* Dark footer/section bg */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-accent: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --container-width: 1240px;
    --section-spacing: 120px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur: 12px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-sand);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.25;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.bg-dark p,
.bg-dark h2,
.bg-dark h3 {
    color: var(--color-sand);
}

.bg-dark .text-light {
    color: rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.7);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-meta {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Typography Helpers */
.italic-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--color-sage);
}

.eyebrow {
    display: block;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sage);
    margin-bottom: 1rem;
}

.eyebrow-dark {
    display: block;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sage-deep);
    margin-bottom: 1rem;
}

.eyebrow-light {
    display: block;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-accent);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--color-sage-deep);
    color: var(--color-white);
    border: 1px solid var(--color-sage-deep);
}

.btn-primary:hover {
    background-color: var(--color-text-main);
    border-color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-text-main);
    color: var(--color-white);
}

.btn-text {
    padding: 0 10px;
    color: var(--color-text-main);
    font-weight: 600;
}

.btn-text .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    z-index: 1001;
    /* Above mobile menu overlay */
}

.logo .credentials {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-sage-deep);
    margin-left: 8px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-sage-deep);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
}

.line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    margin: 6px auto;
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background-color: #d8e2dc;
    top: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: #f0e6d2;
    /* soft gold */
    bottom: 10%;
    left: -100px;
    animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -50px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.25rem;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Real Portrait Styling */
.image-frame {
    position: relative;
    z-index: 10;
}

.portrait-container {
    width: 100%;
    max-width: 400px;
    /* Slightly smaller for elegance */
    aspect-ratio: 3/4;
    border-radius: 200px 200px 0 0;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s ease;
}

.portrait-container:hover .portrait-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* 
.portrait-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(94, 112, 103, 0.4) 100%);
    opacity: 0.6;
}
*/

/* =========================================
   INTRO SECTION
   ========================================= */
.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.intro-heading h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

.highlight {
    color: var(--color-sage-deep);
    font-style: italic;
}

.intro-body p {
    font-size: 1.1rem;
}

/* =========================================
   EXPERTISE (Cards)
   ========================================= */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-sage-deep);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* =========================================
   APPROACH
   ========================================= */
.approach-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.divider {
    height: 1px;
    width: 60px;
    background: var(--color-gold);
    margin: 30px 0;
}

.approach-quote {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-sage-deep);
    border-left: 3px solid var(--color-sage-light);
    padding-left: 20px;
}

.approach-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.approach-item {
    display: flex;
    gap: 30px;
}

.item-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    opacity: 0.6;
    font-weight: 400;
}

.item-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

/* =========================================
   SERVICES
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
    /* align vertically */
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    /* very subtle on dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    color: var(--color-sand);
    transition: transform 0.3s ease;
}

.pricing-card h3 {
    color: var(--color-sand);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.pricing-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
}

.pricing-card.featured {
    background: var(--color-sage-deep);
    /* Slightly lighter than bg-dark */
    border: 1px solid var(--color-sage);
    transform: scale(1.05);
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accessibility-banner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.access-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.access-text h4 {
    color: var(--color-sand);
    margin-bottom: 0px;
    font-size: 1rem;
}

.access-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   FAQ
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 60px;
}

.sticky-header {
    position: sticky;
    top: 120px;
}

.faq-item {
    border-bottom: 1px solid var(--color-sage-light);
    margin-bottom: 0;
}

.faq-item summary {
    padding: 24px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 24px;
    animation: fadeDown 0.3s ease-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CONTACT
   ========================================= */
.typebot-wrapper {
    background: var(--color-white);
    padding: 10px;
    border-radius: 20px;
    max-width: 900px;
    margin: 40px auto;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    padding-top: 80px;
    color: var(--color-sand-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: var(--color-sand);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.copyright {
    padding: 30px 0;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 0;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .expertise-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-sand);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .navbar .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

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

    .hero-visual {
        order: -1;
        margin-bottom: 30px;
    }

    .intro-wrapper,
    .approach-layout,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .sticky-header {
        position: static;
        text-align: center;
    }

    .drop-cap {
        font-size: 3.5rem;
    }
}

/* =========================================
   CANVAS & ANIMATIONS
   ========================================= */
.hero-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Crucial for interaction */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Link Card Styles */
.card-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    border-color: var(--color-sage);
}

.card-link p {
    color: var(--color-text-light);
}

/* Page Headers for sub-pages */
.page-header {
    background: transparent;
    padding: 200px 0 120px;
    position: relative;
    /* Soft gradient fade from top */
    background: linear-gradient(to bottom, rgba(251, 249, 244, 0), rgba(251, 249, 244, 1) 90%);
}

.page-header.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    font-weight: 500;
    max-width: 15ch;
    margin-left: auto;
    margin-right: auto;
}

.page-breadcrumb {
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-sage-deep);
    margin-bottom: 24px;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-sage);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.lead-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.header-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-sage-deep), transparent);
    margin: 0 auto 40px;
    opacity: 0.5;
}

.content-block {
    font-size: 1.25rem;
    /* Larger reading text */
    line-height: 1.8;
    color: var(--color-text-main);
    max-width: 65ch;
    /* Optimal reading width */
}

.content-block h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-top: 80px;
    margin-bottom: 30px;
    color: var(--color-sage-deep);
    position: relative;
    display: inline-block;
}

/* Deco line for h2 */
.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-sage-light);
    z-index: -1;
    opacity: 0.6;
}

.content-block ul {
    margin-bottom: 40px;
    padding-left: 0;
    list-style: none;
}

.content-block li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.content-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: bold;
}

.content-block strong {
    color: var(--color-sage-deep);
    font-weight: 600;
}

/* --- Layouts for Inner Pages --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-content {
    order: 1;
}

.feature-visual {
    order: 2;
    display: flex;
    justify-content: center;
}

/* Reusing .highlight and .italic-accent from global */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-content {
        order: 2;
    }

    .feature-visual {
        order: 1;
        margin-bottom: 30px;
    }
}

.split-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.split-layout.reversed {
    grid-template-columns: 1fr 1.5fr;
}

.split-layout .image-col {
    display: flex;
    justify-content: center;
}

.portrait-container.small {
    max-width: 260px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
}

/* Ensure global portrait styles work here too */

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-layout.reversed {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Inline Editorial Image */
.image-frame.inline {
    display: block;
    float: right;
    width: 280px;
    height: auto;
    margin: 10px -60px 20px 40px;
    /* Pull into margin */
    position: relative;
    z-index: 10;
    clear: right;
}

.image-frame.inline .portrait-container {
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.1);
}

/* Ensure text wraps nicely */
.content-block {
    overflow: visible;
    /* Allow image to hang out */
}

@media (max-width: 1000px) {
    .image-frame.inline {
        margin: 10px 20px 20px 30px;
        /* Less negative margin */
    }
}

@media (max-width: 768px) {
    .image-frame.inline {
        float: none;
        margin: 40px auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .image-frame.inline .portrait-container {
        max-width: 260px;
    }
}

/* --- Interactive Pathway UI --- */

/* Fullscreen Overlay */
.pathway-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 51, 48, 0.4);
    /* Darkened Sage overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.pathway-overlay.active {
    display: flex;
    opacity: 1;
}

/* Chat Container */
.chat-container {
    width: 90%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    background: rgba(253, 252, 248, 0.95);
    /* Off-white glass */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.pathway-overlay.active .chat-container {
    transform: translateY(0);
}

/* Chat Header */
.chat-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--background-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* Message Bubbles */
.chat-message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.05rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes messageSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    align-self: flex-start;
    background: #F0F2F0;
    /* Soft Sage Tint */
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-color);
    /* Gold */
    color: var(--text-color);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-self: flex-start;
    background: #F0F2F0;
    padding: 15px 20px;
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    gap: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #889990;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Input Area */
.chat-input-area {
    padding: 20px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chat-option-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.chat-option-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 51, 48, 0.15);
}

.text-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-text-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-text-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.send-btn:hover {
    opacity: 0.9;
}

/* Cal Embed Container */
.cal-embed-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 10px;
}

/* Inline Chat Mode */
.chat-container.inline-mode {
    width: 100%;
    max-width: 800px;
    height: 700px;
    transform: none;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(253, 252, 248, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-container.inline-mode .chat-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat-container.inline-mode .close-chat {
    display: none;
}