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

:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --background-light: #F9FAFB;
    --white: #FFFFFF;
    --error-color: #EF4444;
    --success-color: #10B981;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

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

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

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

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

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

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

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

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    position: relative;
}

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

/* Services Section */
.services {
    padding: 80px 24px;
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.services p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #E5E7EB;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 16px;
    text-align: center;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 24px;
    background: var(--background-light);
}

.testimonials h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text-dark);
}

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

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    quotes: '"' '"';
}

.testimonial-card blockquote::before {
    content: open-quote;
    font-size: 24px;
    color: var(--primary-color);
}

.testimonial-card blockquote::after {
    content: close-quote;
    font-size: 24px;
    color: var(--primary-color);
}

.testimonial-card cite {
    display: block;
    font-style: normal;
}

.testimonial-card cite strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
}

.testimonial-card cite span {
    color: var(--text-light);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 80px 24px;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.contact-form {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-dark);
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
    border-color: var(--error-color);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    min-height: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.policy-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

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

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 48px 24px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    color: #9CA3AF;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 16px;
}

.cookie-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-button.accept {
    background: var(--secondary-color);
    color: var(--white);
}

.cookie-button.accept:hover {
    background: #059669;
}

.cookie-button.manage {
    background: transparent;
    color: var(--white);
    border: 1px solid #6B7280;
}

.cookie-button.manage:hover {
    background: #374151;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .services,
    .testimonials,
    .contact {
        padding: 60px 16px;
    }
    
    .services h2,
    .testimonials h2,
    .contact-info h2 {
        font-size: 32px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 24px;
        width: 95%;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .services h2,
    .testimonials h2,
    .contact-info h2 {
        font-size: 28px;
    }
}

/* Focus States for Accessibility */
.cta-button:focus,
.submit-button:focus,
.cookie-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}