/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors using HSL format */
    --primary: 217 91% 60%; /* #3b82f6 */
    --primary-dark: 217 91% 50%; /* #2563eb */
    --secondary: 159 61% 50%; /* #10b981 */
    --accent: 45 93% 47%; /* #f59e0b */
    --background: 210 40% 98%; /* #f8fafc */
    --surface: 0 0% 100%; /* #ffffff */
    --text-primary: 222 84% 5%; /* #0f172a */
    --text-secondary: 215 25% 27%; /* #374151 */
    --text-muted: 215 16% 47%; /* #6b7280 */
    --border: 220 13% 91%; /* #e2e8f0 */
    --border-light: 210 20% 95%; /* #f1f5f9 */
    --shadow: 220 13% 91%; /* #e2e8f0 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: hsl(var(--text-primary));
}

h2 {
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
}

h3 {
    font-size: 1.75rem;
    color: hsl(var(--text-primary));
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-secondary));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: white;
}

.btn-secondary:hover {
    background-color: hsl(159 61% 45%);
    transform: translateY(-1px);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -4px 20px hsla(var(--shadow) / 0.1);
    z-index: 1000;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0 0% 0% / 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.modal-content {
    background-color: hsl(var(--surface));
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: hsl(var(--text-muted));
}

.modal-body {
    padding: 24px;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--border));
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.category-info h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.category-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
}

.modal-footer {
    padding: 0 24px 24px;
}

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow) / 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    text-decoration: none;
}

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

.nav-menu a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--border-light)));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-secondary));
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background-color: hsl(var(--surface));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
}

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

.service-card {
    background-color: hsl(var(--surface));
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid hsl(var(--border));
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px hsla(var(--shadow) / 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--border-light)), hsl(var(--background)));
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: hsl(var(--surface));
    border-radius: 12px;
    box-shadow: 0 2px 10px hsla(var(--shadow) / 0.1);
}

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

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

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: hsl(var(--surface));
}

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

.testimonial-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid hsl(var(--border));
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-secondary));
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
}

/* Process Section */
.process {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--border-light)));
}

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

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
}

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

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: hsla(0 0% 100% / 0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid hsl(var(--accent));
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: hsl(var(--surface));
}

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

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
    transition: transform 0.3s ease;
    border: 1px solid hsl(var(--border));
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: hsl(var(--text-primary));
    text-decoration: none;
}

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

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

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

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--border-light)));
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: hsl(var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0;
    color: hsl(var(--text-secondary));
}

.contact-form {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a {
    color: hsla(0 0% 100% / 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: hsla(0 0% 100% / 0.1);
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: hsl(var(--primary));
}

.footer-bottom {
    border-top: 1px solid hsla(0 0% 100% / 0.1);
    padding-top: 2rem;
    text-align: center;
    color: hsla(0 0% 100% / 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content,
    .about-content,
    .newsletter-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .services,
    .about,
    .testimonials,
    .process,
    .blog-preview,
    .contact {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}
