/* CSS Custom Properties */
:root {
    --primary-color: 220 100% 50%; /* #0066FF */
    --primary-dark: 220 100% 40%; /* #0052CC */
    --secondary-color: 200 20% 25%; /* #3A4551 */
    --accent-color: 30 100% 50%; /* #FF8C00 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 220 20% 15%; /* #1F2937 */
    --text-secondary: 220 10% 35%; /* #6B7280 */
    --border-color: 220 10% 90%; /* #E5E7EB */
    --success: 142 71% 45%; /* #22C55E */
    --error: 0 84% 60%; /* #EF4444 */
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* 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.3;
    margin-bottom: 1rem;
}

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

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

h3 {
    font-size: 1.5rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: hsl(var(--secondary-color) / 0.8);
}

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

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

/* Navigation */
.navbar {
    background-color: hsl(var(--surface));
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    text-decoration: none;
}

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

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.9), hsl(var(--primary-dark) / 0.9)), 
                url('hero-image.svg') center/cover;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

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

.services-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: hsl(var(--background));
    transition: var(--transition);
}

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

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

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

/* About Preview */
.about-preview {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

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

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.review-card {
    padding: 2rem;
    background-color: hsl(var(--background));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

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

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

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--secondary-color)), hsl(var(--text-primary)));
    color: white;
    text-align: center;
}

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

.newsletter p {
    color: white;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    min-width: 300px;
}

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

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

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

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

.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: var(--transition);
}

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

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

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 1rem;
    z-index: 1001;
}

.cookie-content p {
    color: white;
    margin-bottom: 1rem;
}

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

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

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

.cookie-category {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
}

.cookie-category label {
    cursor: pointer;
}

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

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        min-width: unset;
        width: 100%;
        max-width: 400px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }
}

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

    .hero {
        padding: 120px 0 80px;
    }

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

    .services-preview,
    .about-preview,
    .reviews,
    .newsletter {
        padding: 60px 0;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
