/* CSS Variables */
:root {
    --primary-dark: 29 78% 216%; /* #1d4ed8 */
    --secondary: 168 76% 36%; /* #059669 */
    --accent: 220 38% 34%; /* #374151 */
    --background: 210 11% 98%; /* #F8FAFC */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text: 220 39% 11%; /* #111827 */
    --text-muted: 215 25% 27%; /* #374151 */
    --border: 220 13% 91%; /* #E5E7EB */
    --error: 0 84% 60%; /* #EF4444 */
    --success: 142 76% 36%; /* #059669 */
    --warning: 45 93% 47%; /* #F59E0B */
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --border-radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.15s ease-in-out;
}

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

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-1px);
}

.btn-secondary {
    background: hsl(var(--text-muted));
    color: #8d8b8b;
}

.btn-secondary:hover {
    background: hsl(var(--text));
}

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

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

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Header */
.header {
    background: hsl(var(--surface));
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: hsl(var(--text));
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary));
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: hsl(var(--text));
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--primary) / 0.05) 100%);
}

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

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

.hero-content p {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: hsl(var(--surface));
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

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

.service-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid hsl(var(--border));
    transition: var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.service-card p {
    color: hsl(var(--text-muted));
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

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

.product-card {
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    width: 100%;
    height: 200px;
    background: hsl(var(--background));
}

.product-card h3,
.product-card p {
    padding: 0 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: hsl(var(--text));
}

.product-card p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: hsl(var(--surface));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text));
}

.about-text p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat p {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

.about-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

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

.review-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid hsl(var(--primary));
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    width: 20px;
    height: 20px;
}

.review-card p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.reviewer strong {
    color: hsl(var(--text));
    display: block;
    margin-bottom: 0.25rem;
}

.reviewer span {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: hsl(var(--primary));
    color: black;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: black;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: black;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: hsl(var(--text));
    background: white;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.newsletter-form input::placeholder {
    color: hsl(var(--text-muted));
}

/* Blog Newsletter Section */
.blog-newsletter {
    padding: 4rem 0;
    background: hsl(var(--primary));
    text-align: center;
}

.newsletter-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: black;
}

.newsletter-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: black;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: hsl(var(--surface));
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h3 {
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: hsl(var(--text-muted));
    line-height: 1.6;
}

.contact-form {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

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

/* Footer */
.footer {
    background: hsl(var(--text));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: hsl(var(--primary) / 0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-muted));
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    padding: 1.5rem 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text));
}

.cookie-content p {
    color: hsl(var(--text-muted));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 1rem;
}

.modal-content {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: hsl(var(--text));
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-top: 0.25rem;
}

.cookie-category span {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Blog Styles */
.blog-hero {
    padding: 8rem 0 4rem;
    background: hsl(var(--background));
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.blog-hero p {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.blog-card {
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    width: 100%;
    height: 200px;
    background: hsl(var(--background));
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.blog-title a {
    color: hsl(var(--text));
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: hsl(var(--primary));
}

.blog-excerpt {
    color: hsl(var(--text-muted));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: hsl(var(--primary));
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Page Styles */
.article-header {
    padding: 8rem 0 2rem;
    background: hsl(var(--background));
}

.article-meta {
    color: hsl(var(--text-muted));
    margin-bottom: 1rem;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
    line-height: 1.2;
}

.article-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: hsl(var(--text));
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: hsl(var(--text));
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: hsl(var(--text-muted));
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: hsl(var(--text-muted));
}

.article-image {
    width: 100%;
    height: 300px;
    margin: 2rem 0;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
}

/* Success Page Styles */
.success-content {
    padding: 8rem 0 4rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: hsl(var(--success));
}

.success-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.success-content p {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Legal Pages */
.legal-content {
    padding: 8rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: hsl(var(--text));
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: hsl(var(--text));
}

.legal-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: hsl(var(--text));
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: hsl(var(--text-muted));
}

.legal-content ul,
.legal-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: hsl(var(--text-muted));
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .hero-buttons,
    .cookie-buttons,
    .modal-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .services,
    .products,
    .about,
    .reviews,
    .contact {
        padding: 3rem 0;
    }
    
    .service-card,
    .product-card,
    .review-card {
        padding: 1.5rem;
    }
}
