/*
Theme Name: Estella's Cleaning LLC - V2
Theme URI: https://estellascleaning.org
Author: Estella's Cleaning
Author URI: https://estellascleaning.org
Description: A modern WordPress theme for Estella's Cleaning LLC - Version 2. Features olive green color scheme with muted dark tones.
Version: 1.01
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estellas-cleaning-v2
Tags: cleaning, services, business, responsive, dark, olive, modern
*/

:root {
    /* Dark Olive Green Theme */
    --olive-dark: #2D3326;
    --olive-medium: #4A5240;
    --olive-light: #6B7560;
    --olive-muted: #8A9480;
    
    /* Accent Colors - Complementary to Olive */
    --sage: #9CAF88;
    --sage-light: #B8C9A9;
    --terracotta: #C17F59;
    --terracotta-light: #D49A7A;
    --sand: #C9B99A;
    --warm-cream: #F5F1E8;
    --warm-white: #FAF8F3;
    --charcoal: #1A1D17;
    --slate: #5C6356;

    /* Legacy aliases for compatibility */
    --sky-blue: var(--sage);
    --soft-pink: var(--terracotta);
    --butter-yellow: var(--warm-cream);
    --mint-green: var(--sage-light);
    --lavender: var(--olive-muted);
    --coral: var(--terracotta);
    --cream: var(--warm-white);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--warm-white);
    color: var(--olive-dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Handwritten font for personal touches */
.font-handwritten {
    font-family: 'Style Script', cursive;
    font-weight: 400;
}

/* Modern Navigation Links */
.nav-link-modern {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link-modern:hover {
    background-color: rgba(156, 175, 136, 0.1);
}

/* Personal avatar styles */
.personal-avatar {
    position: relative;
    transition: transform 0.3s ease;
}

.personal-avatar:hover {
    transform: scale(1.05);
}

/* Badge indicator for avatar */
.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--terracotta);
    border-radius: 50%;
    border: 2px solid var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background colors */
.bg-sky-blue { background-color: var(--sage); }
.bg-soft-pink { background-color: var(--terracotta); }
.bg-butter-yellow { background-color: var(--warm-cream); }
.bg-mint-green { background-color: var(--sage-light); }
.bg-lavender { background-color: var(--olive-muted); }
.bg-coral { background-color: var(--terracotta); }
.bg-sand { background-color: var(--sand); }

/* Dark theme backgrounds */
.bg-olive-dark { background-color: var(--olive-dark); }
.bg-olive-medium { background-color: var(--olive-medium); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-warm-white { background-color: var(--warm-white); }
.bg-warm-cream { background-color: var(--warm-cream); }

/* Background colors with opacity - using valid CSS class names */
.bg-sage-5 { background-color: rgba(156, 175, 136, 0.05); }
.bg-sage-10 { background-color: rgba(156, 175, 136, 0.10); }
.bg-sage-20 { background-color: rgba(156, 175, 136, 0.20); }
.bg-sage-30 { background-color: rgba(156, 175, 136, 0.30); }

.bg-terracotta-5 { background-color: rgba(193, 127, 89, 0.05); }
.bg-terracotta-10 { background-color: rgba(193, 127, 89, 0.10); }
.bg-terracotta-20 { background-color: rgba(193, 127, 89, 0.20); }
.bg-terracotta-30 { background-color: rgba(193, 127, 89, 0.30); }

.bg-cream-5 { background-color: rgba(245, 241, 232, 0.05); }
.bg-cream-10 { background-color: rgba(245, 241, 232, 0.10); }
.bg-cream-20 { background-color: rgba(245, 241, 232, 0.20); }
.bg-cream-30 { background-color: rgba(245, 241, 232, 0.30); }

.bg-sage-light-5 { background-color: rgba(184, 201, 169, 0.05); }
.bg-sage-light-10 { background-color: rgba(184, 201, 169, 0.10); }
.bg-sage-light-20 { background-color: rgba(184, 201, 169, 0.20); }
.bg-sage-light-30 { background-color: rgba(184, 201, 169, 0.30); }

.bg-olive-muted-10 { background-color: rgba(138, 148, 128, 0.10); }

/* Border colors with opacity */
.border-sage-20 { border-color: rgba(156, 175, 136, 0.20); }
.border-terracotta-20 { border-color: rgba(193, 127, 89, 0.20); }
.border-cream-20 { border-color: rgba(245, 241, 232, 0.20); }
.border-sage-light-20 { border-color: rgba(184, 201, 169, 0.20); }
.border-olive-muted-30 { border-color: rgba(138, 148, 128, 0.30); }
.border-terracotta-30 { border-color: rgba(193, 127, 89, 0.30); }

.border-sage-50 { border-color: rgba(156, 175, 136, 0.50); }
.border-cream-50 { border-color: rgba(245, 241, 232, 0.50); }

/* Ring colors for logo */
.ring-olive-dark\/40 { --tw-ring-color: rgba(45, 51, 38, 0.40); }
.ring-olive-dark\/30 { --tw-ring-color: rgba(45, 51, 38, 0.30); }

/* Text colors */
.text-sky-blue { color: var(--sage); }
.text-soft-pink { color: var(--terracotta); }
.text-butter-yellow { color: var(--olive-medium); }
.text-mint-green { color: var(--sage-light); }
.text-lavender { color: var(--olive-muted); }
.text-coral { color: var(--terracotta); }

.text-olive-dark { color: var(--olive-dark); }
.text-olive-medium { color: var(--olive-medium); }
.text-olive-light { color: var(--olive-light); }
.text-olive-muted { color: var(--olive-muted); }
.text-sage { color: var(--sage); }
.text-sage-light { color: var(--sage-light); }
.text-terracotta { color: var(--terracotta); }
.text-slate { color: var(--slate); }

/* Solid border colors */
.border-sky-blue { border-color: var(--sage); }
.border-soft-pink { border-color: var(--terracotta); }
.border-butter-yellow { border-color: var(--warm-cream); }
.border-mint-green { border-color: var(--sage-light); }
.border-lavender { border-color: var(--olive-muted); }
.border-coral { border-color: var(--terracotta); }
.border-sage { border-color: var(--sage); }
.border-sage-light { border-color: var(--sage-light); }

/* Rotating word animation */
.rotating-word-container {
    display: inline-block;
    position: relative;
    height: 1.15em;
    vertical-align: baseline;
    overflow: hidden;
    min-width: 320px;
}

.rotating-word {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(120%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word.exit {
    opacity: 0;
    transform: translateY(-120%);
}

/* Muted olive/terracotta colors for rotating words */
.rotating-word[data-word="0"] { color: var(--olive-dark); }
.rotating-word[data-word="1"] { color: var(--terracotta); }
.rotating-word[data-word="2"] { color: var(--olive-medium); }
.rotating-word[data-word="3"] { color: var(--sage); }
.rotating-word[data-word="4"] { color: var(--olive-light); }
.rotating-word[data-word="5"] { color: var(--terracotta-light); }

/* Large rotating word for personal hero */
.rotating-word-container-large {
    display: inline-block;
    position: relative;
    height: 1.25em;
    vertical-align: baseline;
    overflow: visible;
    min-width: 600px;
}

.rotating-word-large {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(120%);
    width: auto;
    min-width: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
}

.rotating-word-large.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rotating-word-large.exit {
    opacity: 0;
    transform: translateX(-50%) translateY(-120%);
}

.rotating-word-large.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word-large.exit {
    opacity: 0;
    transform: translateY(-120%);
}

/* Word colors */
.rotating-word-large[data-word="0"] { color: var(--olive-dark); }
.rotating-word-large[data-word="1"] { color: var(--terracotta); }
.rotating-word-large[data-word="2"] { color: var(--olive-medium); }
.rotating-word-large[data-word="3"] { color: var(--sage); }
.rotating-word-large[data-word="4"] { color: var(--olive-light); }
.rotating-word-large[data-word="5"] { color: var(--terracotta-light); }

/* Remove old conflicting rules */
.rotating-word-large.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rotating-word-large.exit {
    opacity: 0;
    transform: translateX(-50%) translateY(-120%);
}

/* Hero tan background */
.hero-tan-bg {
    position: relative;
    background: #D4C5B5;
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Hero warm background - Olive theme (keep for compatibility) */
.hero-warm-bg {
    position: relative;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--warm-cream) 100%);
}

.hero-warm-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(156, 175, 136, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(193, 127, 89, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 70% 80%, rgba(156, 175, 136, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 30% 70%, rgba(245, 241, 232, 0.20) 0%, transparent 50%);
    z-index: 0;
}

/* Elegant olive color blocks - hero background */
.muted-stripes {
    position: relative;
    background-color: var(--warm-white);
}

.muted-stripes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Soft sage block - top left */
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(156, 175, 136, 0.20) 0%, transparent 60%),
        /* Soft terracotta block - top right */
        radial-gradient(ellipse 70% 60% at 85% 15%, rgba(193, 127, 89, 0.15) 0%, transparent 55%),
        /* Soft cream block - bottom left */
        radial-gradient(ellipse 75% 55% at 15% 85%, rgba(245, 241, 232, 0.25) 0%, transparent 60%),
        /* Soft olive block - bottom right */
        radial-gradient(ellipse 80% 50% at 90% 80%, rgba(107, 117, 96, 0.12) 0%, transparent 55%),
        /* Soft muted accent - center left */
        radial-gradient(ellipse 60% 40% at 30% 50%, rgba(138, 148, 128, 0.10) 0%, transparent 50%),
        /* Soft sage accent - center right */
        radial-gradient(ellipse 50% 45% at 70% 60%, rgba(156, 175, 136, 0.08) 0%, transparent 50%);
    z-index: 0;
}

/* Zigzag pattern background for services section */
.zigzag-pattern {
    background-color: var(--olive-dark);
    position: relative;
    overflow: hidden;
}

.zigzag-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 12px,
            transparent 12px,
            transparent 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 12px,
            transparent 12px,
            transparent 22px
        );
    background-size: 30px 30px;
    opacity: 0.5;
}

.zigzag-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 L10 10 L20 20 L30 10 L40 20' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 30 L10 20 L20 30 L30 20 L40 30' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background: var(--warm-white);
    position: relative;
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--sage);
    box-shadow: 0 20px 40px rgba(156, 175, 136, 0.25);
}

.service-card:nth-child(2):hover { border-color: var(--terracotta); box-shadow: 0 20px 40px rgba(193, 127, 89, 0.25); }
.service-card:nth-child(3):hover { border-color: var(--warm-cream); box-shadow: 0 20px 40px rgba(245, 241, 232, 0.30); }
.service-card:nth-child(4):hover { border-color: var(--sage-light); box-shadow: 0 20px 40px rgba(184, 201, 169, 0.25); }
.service-card:nth-child(5):hover { border-color: var(--olive-muted); box-shadow: 0 20px 40px rgba(138, 148, 128, 0.25); }
.service-card:nth-child(6):hover { border-color: var(--terracotta-light); box-shadow: 0 20px 40px rgba(212, 154, 122, 0.25); }

/* Colored underlines for service headers */
.service-header {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover .service-header::after {
    width: 100%;
}

.service-card:nth-child(1) .service-header::after { background: var(--sage); }
.service-card:nth-child(2) .service-header::after { background: var(--terracotta); }
.service-card:nth-child(3) .service-header::after { background: var(--warm-cream); }
.service-card:nth-child(4) .service-header::after { background: var(--sage-light); }
.service-card:nth-child(5) .service-header::after { background: var(--olive-muted); }
.service-card:nth-child(6) .service-header::after { background: var(--terracotta-light); }

.county-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--warm-white);
}

.county-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--sage), var(--terracotta));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.btn-primary {
    background: var(--sage);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.4);
}

.btn-primary:hover {
    background: var(--olive-medium);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 175, 136, 0.5);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--terracotta);
    color: white;
    transform: translateY(-2px);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .area-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--sage), var(--terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 1.5rem;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--sage);
}

/* Hero Slideshow Styles - Square version for hero section */
.hero-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.5rem;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.hero-slide.active img {
    transform: scale(1.05);
}

.hero-slide-indicators {
    display: flex;
    gap: 12px;
    z-index: 30;
}

.hero-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-indicator:hover {
    background: var(--sage);
    border-color: var(--sage);
}

.hero-slide-arrow {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-slide-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive hero slideshow - Square aspect ratio */
@media (max-width: 1024px) {
    .hero-slideshow-container {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-slideshow-container {
        max-height: 350px;
    }
    
    .hero-slide-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow-container {
        max-height: 280px;
    }
}

/* Accordion/Dropdown Styles */
.county-accordion {
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--warm-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.county-accordion:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.county-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fafafa 0%, var(--warm-white) 100%);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.county-header:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.county-header.active {
    border-bottom-color: rgba(0,0,0,0.05);
}

.county-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
    background: var(--warm-white);
}

.county-content.open {
    max-height: 2000px;
    padding: 2rem;
}

.chevron-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    color: var(--olive-medium);
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.county-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    margin-right: 1rem;
}

.hunterdon-indicator { background: var(--sage); }
.morris-indicator { background: var(--terracotta); }
.somerset-indicator { background: var(--sage-light); }
.warren-indicator { background: var(--olive-muted); }

/* Navigation styles */
#navbar {
    transition: all 0.3s ease;
    background: rgba(250, 248, 243, 0.95);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(156, 175, 136, 0.2);
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* WordPress specific */
.wp-block {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .rotating-word-container-large {
        min-width: 480px;
    }
}

@media (max-width: 1024px) {
    .slideshow-container {
        height: 400px;
    }
    
    .rotating-word-container-large {
        min-width: 420px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
    
    .county-content.open {
        padding: 1rem;
    }
    
    .county-header {
        padding: 1rem 1.5rem;
    }
    
    .rotating-word-container-large {
        min-width: 360px;
    }
    
    .rotating-word-large {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .rotating-word-container-large {
        min-width: 280px;
    }
    
    .rotating-word-large {
        font-size: 0.7em;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .slide-indicators,
    .chevron-icon {
        display: none !important;
    }
    
    .service-card,
    .county-accordion {
        break-inside: avoid;
    }
}

/* ============================================
   STORY SECTION SLIDESHOW STYLES
   ============================================ */

.story-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
}

.story-slideshow-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--terracotta) 50%, var(--sage-light) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    z-index: 5;
    pointer-events: none;
}

/* Square aspect ratio for story slideshow */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 1;
    transform: scale(1.05);
}

.story-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.story-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.story-slide.active img {
    transform: scale(1.08);
}

.story-slide-indicators {
    display: flex;
    gap: 10px;
    z-index: 30;
}

.story-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.story-indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.4);
}

.story-indicator:hover {
    background: var(--sage);
    border-color: var(--sage);
}

.story-slide-arrow {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: all 0.3s ease;
}

.story-slideshow-container:hover .story-slide-arrow {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
}

.story-slide-arrow:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Aspect ratio for story slideshow */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* ============================================
   SCROLL ANIMATION STYLES
   ============================================ */

/* Initial states for scroll-animated elements */
.story-slideshow-wrapper {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-slideshow-wrapper.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.story-content-wrapper {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-content-wrapper.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations for story content */
.story-label {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.story-headline {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.story-text {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.story-stats {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
}

.stat-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item:nth-child(1) { transition-delay: 0.75s; }
.stat-item:nth-child(2) { transition-delay: 0.85s; }
.stat-item:nth-child(3) { transition-delay: 0.95s; }

/* When parent has animate-in, reveal children */
.story-content-wrapper.animate-in .story-label,
.story-content-wrapper.animate-in .story-headline,
.story-content-wrapper.animate-in .story-text,
.story-content-wrapper.animate-in .story-stats {
    opacity: 1;
    transform: translateY(0);
}

.story-content-wrapper.animate-in .stat-item {
    opacity: 1;
    transform: translateY(0);
}

/* Floating badge animation */
.story-slideshow-wrapper .absolute.-bottom-4 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.story-slideshow-wrapper.animate-in .absolute.-bottom-4 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive adjustments for story slideshow */
@media (max-width: 1024px) {
    .story-slideshow-container {
        max-width: 220px;
    }
    
    .story-slideshow-wrapper,
    .story-content-wrapper {
        opacity: 1;
        transform: none;
    }
    
    .story-label,
    .story-headline,
    .story-text,
    .story-stats,
    .stat-item {
        opacity: 1;
        transform: none;
    }
    
    .story-slide-arrow {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 768px) {
    .story-slideshow-container {
        max-width: 200px;
    }
    
    .story-slide-arrow {
        width: 32px;
        height: 32px;
    }
    
    .story-indicator {
        width: 8px;
        height: 8px;
    }
    
    .story-slideshow-wrapper .absolute.-bottom-4 {
        bottom: -8px;
        right: 8px;
        padding: 0.5rem;
    }
    
    .story-slideshow-wrapper .absolute.-bottom-4 .w-12 {
        width: 32px;
        height: 32px;
    }
    
    .story-slideshow-wrapper .absolute.-bottom-4 .font-display {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .story-slideshow-container {
        max-width: 180px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .story-slideshow-wrapper,
    .story-content-wrapper,
    .story-label,
    .story-headline,
    .story-text,
    .story-stats,
    .stat-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .story-slide {
        transition: opacity 0.3s ease;
    }
}

/* ============================================
   FLOATING CHAT BUTTON & MODAL STYLES
   ============================================ */

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--sage);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45, 51, 38, 0.25), 0 8px 32px rgba(156, 175, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.floating-chat-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(45, 51, 38, 0.35), 0 12px 40px rgba(156, 175, 136, 0.4);
    background: var(--olive-medium);
}

.floating-chat-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.floating-chat-btn svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.floating-chat-btn .chat-icon,
.floating-chat-btn .close-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.floating-chat-btn.active .chat-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.floating-chat-btn.active .close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.floating-chat-btn .close-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Chat Tooltip */
.chat-tooltip {
    position: absolute;
    right: 72px;
    background: var(--olive-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--olive-dark);
}

.floating-chat-btn:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-chat-btn.active .chat-tooltip {
    opacity: 0;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 51, 38, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active .contact-modal-overlay {
    opacity: 1;
}

.contact-modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 100px);
    background: var(--warm-white);
    border-radius: 24px 24px 0 0;
    margin: 0 24px 96px 24px;
    box-shadow: 0 -8px 40px rgba(45, 51, 38, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-modal.active .contact-modal-container {
    transform: translateY(0);
}

/* Modal Header */
.contact-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.contact-modal-header h3 {
    color: white;
    margin: 0;
}

.contact-modal-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.contact-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Modal Form Styles */
.contact-modal-body input,
.contact-modal-body select,
.contact-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    color: var(--olive-dark);
}

.contact-modal-body input:focus,
.contact-modal-body select:focus,
.contact-modal-body textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(156, 175, 136, 0.15);
}

.contact-modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--olive-dark);
    margin-bottom: 6px;
}

.contact-modal-body button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-modal-body button[type="submit"]:hover {
    background: var(--olive-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 175, 136, 0.4);
}

/* Success message in modal */
.modal-success-message {
    text-align: center;
    padding: 40px 24px;
}

.modal-success-message svg {
    width: 64px;
    height: 64px;
    color: var(--sage);
    margin-bottom: 16px;
}

.modal-success-message h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    color: var(--olive-dark);
    margin-bottom: 8px;
}

.modal-success-message p {
    color: var(--olive-medium);
    font-size: 14px;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .floating-chat-btn {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
    
    .floating-chat-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .chat-tooltip {
        display: none;
    }
    
    .contact-modal-container {
        max-width: 100%;
        margin: 0 0 80px 0;
        border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 80px);
    }
    
    .contact-modal-header {
        padding: 16px 20px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
}

@media (min-width: 641px) {
    .contact-modal-container {
        border-radius: 24px;
        margin-bottom: 100px;
        max-height: calc(100vh - 120px);
    }
}
