/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from design reference */
    --color-background: hsl(210, 20%, 98%);
    --color-foreground: hsl(220, 9%, 46%);
    --color-card: hsl(0, 0%, 100%);
    --color-card-foreground: hsl(220, 9%, 46%);
    --color-primary: hsl(142, 76%, 36%);
    --color-primary-foreground: hsl(0, 0%, 100%);
    --color-secondary: hsl(74, 64%, 47%);
    --color-secondary-foreground: hsl(220, 9%, 46%);
    --color-muted: hsl(210, 40%, 96%);
    --color-muted-foreground: hsl(215, 16%, 47%);
    --color-accent: hsl(38, 92%, 50%);
    --color-accent-foreground: hsl(220, 9%, 46%);
    --color-border: hsl(214, 32%, 91%);
    --color-input: hsl(214, 32%, 91%);
    --color-ring: hsl(142, 76%, 36%);
    
    /* Typography */
    --font-family: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hidden {
    display: none !important;
}

.text-primary {
    color: var(--color-primary);
}

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

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

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

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

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

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.btn-primary:hover {
    background-color: hsl(142, 76%, 32%);
}

.btn-secondary {
    background-color: var(--color-card);
    color: var(--color-foreground);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-muted);
}

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

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

.btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: var(--spacing-sm);
}

.full-width {
    width: 100%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.cookie-text p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Navigation */
.navbar {
    background-color: var(--color-card);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    height: 2rem;
    width: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-foreground);
    transition: all 0.3s ease;
}

.mobile-nav {
    background-color: var(--color-card);
    border-top: 1px solid var(--color-border);
}

.mobile-nav-content {
    padding: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    font-weight: 500;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-muted) 100%);
    background-image: radial-gradient(circle at 1px 1px, rgba(34,197,94,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    padding: var(--spacing-3xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-foreground);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-illustration {
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Sections */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Cards */
.card {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.hover-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 197, 94, 0.2);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    opacity: 0.1;
}

.card-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* Calculator */
.calculator-card {
    background-color: var(--color-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.calculator-inputs h3,
.calculator-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-lg);
}

.input-group {
    margin-bottom: var(--spacing-lg);
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.slider {
    width: 100%;
    height: 8px;
    background: var(--color-muted);
    border-radius: var(--radius-lg);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: var(--spacing-xs);
}

.slider-value {
    font-weight: 500;
    color: var(--color-primary);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.result-item {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-value {
    color: var(--color-primary);
    font-weight: 600;
}

.result-details {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: var(--spacing-xs);
}

.total-cost {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.cost-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.cost-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Case Studies */
.case-card {
    background-color: var(--color-background);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 12rem;
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.case-content {
    padding: var(--spacing-lg);
}

.case-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.case-location {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-sm);
}

.case-content p {
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-md);
}

.case-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.stat-highlight {
    color: var(--color-primary);
    font-weight: 500;
}

.stat-savings {
    color: var(--color-muted-foreground);
}

/* Blog Cards */
.blog-card {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 8rem;
    position: relative;
    overflow: hidden;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-category {
    font-size: 0.625rem;
    color: var(--color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.blog-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.blog-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: var(--spacing-3xl) 0;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: #0e0e0e;
    color: var(--color-background);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer-section h3 {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.company-info .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.company-description {
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.contact-item {
    color: var(--color-muted-foreground);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--color-muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}
