/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --clr-primary: #8C5535; /* Chocolate Brown */
    --clr-primary-light: #A66B46;
    --clr-secondary: #D4A373; /* Caramel/Gold */
    --clr-bg-main: #FDFBF7; /* Soft Cream */
    --clr-bg-light: #F6F1EA; /* Beige */
    --clr-text-dark: #3E2723; /* Very Dark Brown */
    --clr-text-muted: #6D4C41; /* Muted Brown */
    --clr-white: #FFFFFF;
    --clr-whatsapp: #25D366;
    --clr-whatsapp-hover: #128C7E;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    --shadow-sm: 0 4px 6px rgba(140, 85, 53, 0.08);
    --shadow-md: 0 10px 20px rgba(140, 85, 53, 0.12);
    --shadow-lg: 0 20px 40px rgba(140, 85, 53, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 6px rgba(140, 85, 53, 0.25)); /* 3D pop effect for all fonts */
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }
.highlight { color: var(--clr-secondary); }
.highlight-text { color: var(--clr-primary); }
.bg-light { background-color: var(--clr-bg-light); }
.w-100 { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-wa-large {
    background-color: var(--clr-whatsapp);
    color: var(--clr-white);
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-wa-large:hover {
    background-color: var(--clr-whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(140, 85, 53, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-primary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-dark);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--clr-primary);
    cursor: pointer;
}

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

/* Background Organic Blobs */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
}

.hero::before {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-color: rgba(212, 163, 115, 0.2); /* Soft secondary */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.hero::after {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background-color: rgba(229, 93, 41, 0.1); /* Soft orange */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

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

.hero-content {
    order: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    order: 1;
    position: relative;
}

.floating-ill {
    position: absolute;
    z-index: 5;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.ill-cake {
    width: 220px;
    bottom: -40px;
    right: -40px;
    animation-delay: 1s;
}

.ill-cupcake {
    width: 180px;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(140, 85, 53, 0.2);
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-social-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    border-top: 1px solid rgba(140, 85, 53, 0.1);
    padding-top: 20px;
    width: 100%;
    justify-content: center;
}

.hero-social-bar .social-icons {
    display: flex;
    gap: 10px;
}

.hero-social-bar a {
    color: var(--clr-primary);
    font-size: 1.2rem;
    background: var(--clr-bg-light);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.hero-social-bar a:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
}

.hero-social-bar .divider {
    width: 1px;
    height: 20px;
    background-color: rgba(140, 85, 53, 0.2);
}

.stars i {
    color: #FFB400;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 1; /* Make it square for better blob masking */
    object-fit: cover;
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; /* Organic blob shape */
    box-shadow: 0 30px 60px rgba(140, 85, 53, 0.2);
    border: 8px solid var(--clr-white);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--clr-white);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.floating-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.floating-card p {
    margin: 0;
    font-size: 0.8rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--clr-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--clr-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(140, 85, 53, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(140, 85, 53, 0.2);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--clr-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.feature-box:hover .icon-circle {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* ==========================================================================
   WhatsApp Banner
   ========================================================================== */
.wa-banner {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #6D4C41 100%);
    color: var(--clr-white);
    padding: 80px 0;
    text-align: center;
}

.wa-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.wa-banner h2, .wa-banner p {
    color: var(--clr-white);
}

.wa-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 30px 0 40px;
}

.wa-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.wa-features i {
    color: var(--clr-secondary);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--clr-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.highlight-review {
    border: 2px solid var(--clr-secondary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.avatar.bg-blue { background-color: #4285F4; }
.avatar.bg-green { background-color: #0F9D58; }

.reviewer-info h5 {
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.google-icon {
    color: #4285F4;
    font-size: 1.5rem;
}

.review-text {
    font-style: italic;
    color: var(--clr-text-dark);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(140, 85, 53, 0.4);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-list {
    margin: 40px 0;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--clr-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-form-container {
    background: var(--clr-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--clr-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(140, 85, 53, 0.2);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    transition: var(--transition-fast);
    background-color: var(--clr-bg-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(140, 85, 53, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-text-dark);
    color: var(--clr-white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--clr-white);
    margin-bottom: 20px;
    display: inline-block;
}

.brand-col p {
    color: #ccc;
    max-width: 300px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--clr-secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--clr-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clr-secondary);
}

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

.footer-col ul a {
    color: #ccc;
}

.footer-col ul a:hover {
    color: var(--clr-secondary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 12px;
    color: #ccc;
}

.contact-list i {
    color: var(--clr-secondary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating Mobile CTAs
   ========================================================================== */
.floating-ctas {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--clr-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.2); /* 3D Button Effect */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 4s ease-in-out infinite;
}

.floating-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.call-btn {
    background-color: var(--clr-primary);
    animation-delay: 0s;
}

.wa-btn {
    background-color: var(--clr-whatsapp);
    animation-delay: 0.5s;
}

.ai-chat-btn {
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
    color: var(--clr-white);
    border: none;
    cursor: pointer;
    animation-delay: 1s;
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================================================
   New Visual Effects (Gradients & 3D)
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-gradient-text {
    background: linear-gradient(to right, #D4A373, #D97736, #8C5535, #E55D29);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(4px 10px 12px rgba(140, 85, 53, 0.4));
    animation: shineAndFloat 4s ease-in-out infinite;
}

@keyframes shineAndFloat {
    0%, 100% {
        background-position: 0% center;
        transform: translateY(0);
    }
    50% {
        background-position: 200% center;
        transform: translateY(-8px);
    }
}

.gradient-text-light {
    background: linear-gradient(135deg, #FFD700 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.effect-3d {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.effect-3d:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.card-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card-3d:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(140, 85, 53, 0.2);
    z-index: 10;
}

.hero-storefront-img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(140, 85, 53, 0.4);
    border: 4px solid var(--clr-white);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-storefront-img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .floating-card {
        left: 20px;
        bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .wa-banner {
        padding: 60px 20px;
    }
}

/* ==========================================================================
   AI Chatbot Widget
   ========================================================================== */
.ai-chat-btn {
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
    color: var(--clr-white);
    border: none;
    cursor: pointer;
}

.ai-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background-color: var(--clr-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-chat-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    color: var(--clr-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-chat:hover {
    transform: scale(1.1) rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--clr-bg-main);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
    animation: chatPop 0.3s ease forwards;
}

@keyframes chatPop {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: var(--clr-bg-light);
    color: var(--clr-text-dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(140, 85, 53, 0.1);
}

.user-message {
    background-color: var(--clr-secondary);
    color: var(--clr-text-dark);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-footer {
    padding: 16px;
    background-color: var(--clr-white);
    border-top: 1px solid rgba(140, 85, 53, 0.1);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(140, 85, 53, 0.2);
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-footer input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(140, 85, 53, 0.1);
}

.chat-footer button {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-footer button:hover {
    background-color: var(--clr-primary-light);
    transform: scale(1.05);
}

/* Responsive adjust for floating CTAs so chat widget doesn't hide them */
@media (max-width: 400px) {
    .ai-chat-widget {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        max-width: 100vw;
        border-radius: 0;
    }
}
