/* CSS Custom Properties */
:root {
    /* Colors - Using HSL format */
    --primary: 213 82% 63%; /* #4299e1 */
    --primary-dark: 213 78% 50%; /* #2b6cb0 */
    --secondary: 213 32% 18%; /* #1a365d */
    --accent: 32 91% 58%; /* #ed8936 */
    --success: 142 69% 58%; /* #48bb78 */
    --background: 210 11% 98%; /* #f7fafc */
    --surface: 0 0% 100%; /* #ffffff */
    --text-primary: 210 11% 15%; /* #2d3748 */
    --text-secondary: 210 9% 31%; /* #4a5568 */
    --text-muted: 210 8% 50%; /* #718096 */
    --border: 210 14% 89%; /* #e2e8f0 */
    --border-light: 210 16% 93%; /* #edf2f7 */
    --shadow: 210 10% 23%; /* #2d3748 */
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: hsl(var(--text-primary));
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-4);
    color: hsl(var(--text-secondary));
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.hidden {
    display: none !important;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--shadow), 0.15);
}

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

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

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

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

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

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-content h3 {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
}

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

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* Cookie Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--shadow), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: var(--space-4);
}

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

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

.cookie-category label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    margin-bottom: var(--space-2);
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.modal-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-4);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: hsl(var(--secondary));
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: hsl(var(--text-primary));
    transition: color var(--transition);
}

.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-color: hsl(var(--text-primary));
    transition: all var(--transition);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Sections */
section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
    padding: var(--space-20) 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-6);
    color: hsl(var(--secondary));
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    color: hsl(var(--text-secondary));
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

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

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-content h3 {
    color: hsl(var(--secondary));
    margin-bottom: var(--space-4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.stat {
    text-align: center;
    padding: var(--space-4);
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px hsla(var(--shadow), 0.1);
}

.stat strong {
    display: block;
    font-size: var(--font-size-2xl);
    color: hsl(var(--primary));
    margin-bottom: var(--space-2);
}

.about-svg {
    width: 100%;
    max-width: 300px;
}

/* Services Section */
.services {
    background-color: hsl(var(--surface));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background-color: hsl(var(--background));
    padding: var(--space-8);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px hsla(var(--shadow), 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px hsla(var(--shadow), 0.15);
}

.service-card.featured {
    border: 2px solid hsl(var(--primary));
    transform: scale(1.02);
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: var(--border-radius);
    z-index: -1;
}

.service-icon {
    margin-bottom: var(--space-4);
}

.service-card h3 {
    color: hsl(var(--secondary));
    margin-bottom: var(--space-4);
}

.service-card ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-4);
}

.service-card li {
    list-style: disc;
    margin-bottom: var(--space-2);
    color: hsl(var(--text-secondary));
}

.price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: hsl(var(--primary));
    margin-top: var(--space-4);
}

.popular {
    position: absolute;
    top: -12px;
    right: var(--space-4);
    background-color: hsl(var(--accent));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.method-step {
    text-align: center;
    padding: var(--space-6);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.method-step h3 {
    color: hsl(var(--secondary));
    margin-bottom: var(--space-3);
}

/* Testimonials Section */
.testimonials {
    background-color: hsl(var(--surface));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.testimonial {
    background-color: hsl(var(--background));
    padding: var(--space-6);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px hsla(var(--shadow), 0.1);
}

.testimonial-content {
    margin-bottom: var(--space-4);
}

.stars {
    color: hsl(var(--accent));
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: hsl(var(--text-primary));
    margin-bottom: var(--space-1);
}

.author-info span {
    color: hsl(var(--text-muted));
    font-size: var(--font-size-sm);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.newsletter-text h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.newsletter-text p {
    color: hsla(0, 0%, 100%, 0.9);
    font-size: var(--font-size-lg);
}

.newsletter-form {
    max-width: 400px;
}

.form-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.form-group input {
    flex: 1;
    padding: var(--space-3);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
}

.form-disclaimer {
    font-size: var(--font-size-sm);
    color: hsla(0, 0%, 100%, 0.8);
    margin: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

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

.contact-details h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
    color: hsl(var(--secondary));
}

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

.contact-form {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px hsla(var(--shadow), 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition);
}

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

/* Footer */
.footer {
    background-color: hsl(var(--secondary));
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

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

.footer-section p {
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: var(--space-4);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: hsla(0, 0%, 100%, 0.8);
    transition: color var(--transition);
}

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

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: hsla(0, 0%, 100%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}

.social-links a:hover {
    background-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    color: hsla(0, 0%, 100%, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    section {
        padding: var(--space-12) 0;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .modal {
        padding: var(--space-2);
    }
    
    .modal-content {
        padding: var(--space-4);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal,
    .newsletter,
    .footer {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    section {
        break-inside: avoid;
        padding: var(--space-4) 0;
    }
    
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.3);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: 0 0% 0%;
        --text-secondary: 0 0% 20%;
        --border: 0 0% 40%;
        --background: 0 0% 100%;
        --surface: 0 0% 100%;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
