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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ea580c;
    --accent-color: #16a34a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --spacing-unit: 8px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

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

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: calc(var(--spacing-unit) * 6);
    padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 8);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-dark);
}

.highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 4);
    line-height: 1.5;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cta-button.primary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: var(--background-light);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.service-card p {
    padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: calc(var(--spacing-unit) * 10) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-light);
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: var(--background-light);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.testimonial-card {
    background-color: var(--white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.stars {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.testimonial-card p {
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: calc(var(--spacing-unit) / 2);
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-unit) * 10) 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-dark);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 6);
    font-size: 1.125rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: calc(var(--spacing-unit) * 3);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: calc(var(--spacing-unit) * 1.5);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit));
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--white);
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: calc(var(--spacing-unit));
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 3);
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.legal-content h3 {
    margin-top: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.6;
    color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: calc(var(--spacing-unit) * 2);
    z-index: 1500;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.cookie-buttons .cta-button {
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 3);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        padding: calc(var(--spacing-unit) * 2);
    }
    
    .nav-links {
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--spacing-unit) * 16);
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .hero-content h1 {
        font-size: 1.875rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc2626;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--accent-color);
}