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

:root {
    --primary-blue: #1e3a8a;
    --secondary-orange: #ea580c;
    --accent-teal: #0891b2;
    --success-green: #059669;
    --warning-yellow: #d97706;
    --error-red: #dc2626;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --white: #ffffff;
    --spacing-unit: 8px;
}

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

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    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;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
}

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

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

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

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-weight: 800;
}

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

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    text-decoration: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--spacing-unit) * 2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background: var(--neutral-50);
    padding: calc(var(--spacing-unit) * 12) 0;
}

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

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

.service-card {
    background: var(--white);
    border-radius: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

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

.service-card p {
    color: var(--neutral-600);
    line-height: 1.7;
}

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

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

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

.testimonial-card {
    background: var(--neutral-50);
    border-radius: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 4);
    border-left: 4px solid var(--secondary-orange);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    color: var(--neutral-700);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-weight: 600;
    display: block;
}

.testimonial-author span {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    padding: calc(var(--spacing-unit) * 12) 0;
    color: var(--white);
}

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

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: calc(var(--spacing-unit) * 1);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--white);
    text-decoration: underline;
}

.submit-button {
    background: var(--secondary-orange);
    color: var(--white);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
}

.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 {
    color: var(--white);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
}

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

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

.footer-section a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: calc(var(--spacing-unit) * 3);
    text-align: center;
    color: var(--neutral-400);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-900);
    color: var(--white);
    padding: calc(var(--spacing-unit) * 3);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.btn-accept,
.btn-decline {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--success-green);
    color: var(--white);
}

.btn-accept:hover {
    background: #047857;
}

.btn-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--neutral-600);
}

.btn-decline:hover {
    background: var(--neutral-700);
}

.cookie-link {
    color: var(--white);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 3);
}

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

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-weight: 700;
}

.modal-content h3 {
    color: var(--neutral-800);
    margin: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 2) 0;
    font-weight: 600;
}

.modal-content p,
.modal-content li {
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.6;
}

.modal-content ul {
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.close-modal {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    text-decoration: none;
    border-radius: calc(var(--spacing-unit) * 1);
    margin-top: calc(var(--spacing-unit) * 3);
    font-weight: 500;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: var(--accent-teal);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .nav-links {
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
        text-align: center;
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
}

/* Additional hover effects and micro-interactions */
.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary-orange);
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

/* Loading states for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}