/* ==========================================================================
   THE BEARS MARKETING - WordPress Theme Styles
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Brand Colors - From The Bears presentation */
    --color-forest-dark: #1B4332;
    --color-forest: #2D6A4F;
    --color-forest-light: #40916C;
    --color-sage: #52B788;
    --color-mint: #74C69D;
    --color-mint-light: #95D5B2;
    --color-cream: #F8F6F0;
    --color-cream-warm: #FAF8F3;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;
    --color-text-light: #8A8A8A;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #40916C 70%, #74C69D 100%);
    --gradient-hero-radial: radial-gradient(ellipse at 30% 50%, #2D6A4F 0%, #1B4332 60%);
    --gradient-subtle: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Caveat', cursive;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 8px 40px rgba(27, 67, 50, 0.12);
    --shadow-xl: 0 20px 60px rgba(27, 67, 50, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-forest);
    color: var(--color-white);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--color-sage);
}

.highlight {
    color: var(--color-forest);
    position: relative;
}

.section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

.lead-text {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-white);
    border-color: var(--color-forest);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--color-forest);
    color: var(--color-white);
}

.btn-text {
    padding: var(--space-sm) 0;
    background: transparent;
    color: var(--color-forest);
    border: none;
}

.btn-text:hover {
    color: var(--color-forest-dark);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: var(--text-base);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-smooth);
}

/* WordPress Admin Bar adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header.scrolled {
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 var(--space-xl);
    }
}

.logo {
    display: flex;
    flex-direction: column;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

/* WordPress custom logo support */
.logo .custom-logo-link {
    display: block;
}

.logo .custom-logo {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-script);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1;
    transition: color var(--transition-base);
}

.scrolled .logo-text {
    color: var(--color-forest-dark);
}

.logo-tagline {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.scrolled .logo-tagline {
    color: var(--color-text-muted);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

.scrolled .nav-toggle-bar {
    background: var(--color-forest-dark);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
}

.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-forest-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    font-size: var(--text-xl);
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-mint);
}

.nav-menu .nav-cta {
    margin-top: var(--space-md);
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    color: var(--color-forest-dark);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.nav-menu .nav-cta:hover {
    background: var(--color-mint-light);
    color: var(--color-forest-dark);
}

@media (min-width: 900px) {
    .nav-menu {
        display: flex;
        position: static;
        background: transparent;
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .nav-menu a {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .scrolled .nav-menu a {
        color: var(--color-text);
    }
    
    .nav-menu a:hover {
        color: var(--color-white);
    }
    
    .scrolled .nav-menu a:hover {
        color: var(--color-forest);
    }
    
    .nav-menu .nav-cta {
        margin-top: 0;
        padding: 0.625rem 1.25rem;
        background: rgba(255, 255, 255, 0.15);
        color: var(--color-white);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-menu .nav-cta:hover {
        background: var(--color-white);
        color: var(--color-forest-dark);
        border-color: var(--color-white);
    }
    
    .scrolled .nav-menu .nav-cta {
        background: var(--color-forest);
        color: var(--color-white);
        border-color: var(--color-forest);
    }
    
    .scrolled .nav-menu .nav-cta:hover {
        background: var(--color-forest-dark);
        border-color: var(--color-forest-dark);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(116, 198, 157, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(82, 183, 136, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 50% 50%, rgba(45, 106, 79, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-mint);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero h1 em {
    color: var(--color-mint-light);
}

.hero-subheadline {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.6);
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.scroll-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; height: 40px; }
    50% { opacity: 1; height: 50px; }
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.problem-section h2 {
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.problem-content {
    max-width: 700px;
}

.value-list {
    margin: var(--space-lg) 0;
    display: grid;
    gap: var(--space-sm);
}

.value-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
}

.value-icon {
    color: var(--color-forest);
    font-size: var(--text-sm);
}

.problem-statement {
    margin-top: var(--space-xl);
    padding-left: var(--space-md);
    border-left: 3px solid var(--color-forest);
}

.problem-statement p {
    margin-bottom: var(--space-sm);
}

.problem-statement p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Model Section
   ========================================================================== */
.model-section {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .model-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: center;
    }
}

.model-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-base);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.model-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-mint-light);
    opacity: 0.3;
    line-height: 1;
}

.model-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-forest-dark);
    margin-bottom: var(--space-xs);
}

.model-card p {
    color: var(--color-text-muted);
}

.model-icon {
    margin-top: var(--space-lg);
    color: var(--color-forest);
}

.model-icon svg {
    width: 48px;
    height: 48px;
}

.model-arrow {
    display: none;
    font-size: var(--text-2xl);
    color: var(--color-forest-light);
    text-align: center;
}

@media (min-width: 768px) {
    .model-arrow {
        display: block;
    }
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid .service-card:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .services-grid .service-card:nth-child(5) {
        grid-column: 2 / 3;
    }
}

.service-card {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--color-forest);
    transform: translateY(-4px);
}

.service-card:hover * {
    color: var(--color-white);
}

.service-card:hover .service-icon {
    color: var(--color-mint-light);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.service-icon {
    color: var(--color-forest);
    transition: color var(--transition-base);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-forest-dark);
    transition: color var(--transition-base);
}

.service-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.service-outcome {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

.services-note {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==========================================================================
   How We Work Section
   ========================================================================== */
.how-section {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
    text-align: center;
}

.how-section h2 {
    margin-bottom: var(--space-xl);
}

.benefits-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.benefits-bar li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.benefit-icon {
    color: var(--color-forest);
    font-weight: 600;
}

.quote-callout {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.quote-callout p {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-forest-dark);
    margin: 0;
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-section {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .industries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.industry-item:hover {
    background: var(--color-forest);
    transform: translateY(-4px);
}

.industry-item:hover .industry-icon {
    color: var(--color-mint-light);
}

.industry-item:hover .industry-name {
    color: var(--color-white);
}

.industry-icon {
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.industry-icon svg {
    width: 40px;
    height: 40px;
}

.industry-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.industries-note {
    text-align: center;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-section {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.results-carousel {
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.results-track {
    display: flex;
    gap: var(--space-md);
    transition: transform var(--transition-smooth);
}

@media (min-width: 768px) {
    .results-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    flex: 0 0 calc(100% - var(--space-md));
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .result-card {
        flex: none;
    }
}

.result-metric {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.result-desc {
    color: var(--color-text-muted);
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .carousel-nav {
        display: none;
    }
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 1px solid var(--color-forest);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--color-forest);
    color: var(--color-white);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: var(--space-xs);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--color-text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--color-forest);
    transform: scale(1.2);
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--color-forest-dark);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-section h2 em {
    color: var(--color-mint-light);
}

.cta-subtext {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.required {
    color: var(--color-mint);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-mint);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #dc3545;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--color-forest-dark);
    color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 640px) {
    .form-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.form-actions .btn-primary {
    background: var(--color-white);
    color: var(--color-forest-dark);
    border-color: var(--color-white);
}

.form-actions .btn-primary:hover {
    background: var(--color-mint-light);
    border-color: var(--color-mint-light);
}

.form-actions .btn-text {
    color: rgba(255, 255, 255, 0.8);
}

.form-actions .btn-text:hover {
    color: var(--color-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--color-cream);
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-family: var(--font-script);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-forest-dark);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-forest);
}

.footer-contact p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(27, 67, 50, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* ==========================================================================
   Case Studies Modal
   ========================================================================== */
.case-studies-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.case-studies-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 67, 50, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
    overflow: hidden;
}

.case-studies-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-hero);
    color: var(--color-white);
    flex-shrink: 0;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.modal-body {
    flex: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-cream);
    border-top: 1px solid rgba(27, 67, 50, 0.1);
    flex-shrink: 0;
}

.modal-footer .btn {
    min-width: 140px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .case-studies-modal {
        padding: 0;
    }
    
    .modal-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .modal-header h2 {
        font-size: var(--text-lg);
    }
    
    .modal-footer {
        flex-direction: column;
        padding: var(--space-sm) var(--space-md);
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Animations for Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Notification Styles
   ========================================================================== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInUp 0.3s ease-out;
}

.notification-success {
    background: var(--color-forest);
    color: white;
}

.notification-error {
    background: #dc3545;
    color: white;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .hero-scroll-indicator,
    .carousel-nav,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: #fff;
        color: #000;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}
