/* CSS Custom Properties */
:root {
    --primary: 220 100% 50%; /* #0066FF */
    --primary-dark: 220 100% 40%; /* #0052CC */
    --secondary: 210 11% 98%; /* #F5F7FA */
    --accent: 142 70% 45%; /* #10b981 */
    --text-primary: 220 13% 18%; /* #1f2937 */
    --text-secondary: 220 9% 46%; /* #6b7280 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --border: 220 13% 91%; /* #e5e7eb */
    --shadow: 220 26% 14% / 0.1; /* rgba(0,0,0,0.1) */
}

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

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

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

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

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px hsl(var(--shadow));
}

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

.cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

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

.cookie-banner.hidden {
    display: none;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

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

.cookie-category {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
}

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

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

.cookie-category span {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text-primary));
    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: hsl(var(--text-primary));
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--surface)));
    padding: 120px 0 80px;
    margin-top: 70px;
}

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

.hero-content h1 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

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

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

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: hsl(var(--text-secondary));
}

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

.service-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px hsl(var(--shadow));
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px hsl(var(--shadow));
}

.service-icon {
    margin-bottom: 1.5rem;
}

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

.service-card p {
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: hsl(var(--secondary));
}

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

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    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 {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: hsl(var(--surface));
}

.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: 12px;
    box-shadow: 0 4px 6px hsl(var(--shadow));
    border-left: 4px solid hsl(var(--primary));
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

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

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: hsl(var(--primary));
    color: white;
}

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

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

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

.newsletter-form button {
    background: white;
    color: hsl(var(--primary));
    border: none;
}

.newsletter-form button:hover {
    background: hsl(var(--secondary));
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: hsl(var(--secondary));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

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

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

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px hsl(var(--shadow));
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
}

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

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background: 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-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px hsl(var(--shadow));
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .services, .about, .reviews, .contact {
        padding: 60px 0;
    }

    .service-card, .review-card {
        padding: 1.5rem;
    }
}
