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

:root {
    /* Color System */
    --primary: 210 100% 50%; /* #0080FF */
    --primary-dark: 210 100% 40%; /* #0066CC */
    --secondary: 30 100% 50%; /* #FF8000 */
    --accent: 270 100% 50%; /* #8000FF */
    
    /* Neutral Colors */
    --background: 0 0% 100%; /* #FFFFFF */
    --surface: 210 11% 98%; /* #F5F7FA */
    --surface-dark: 210 11% 95%; /* #F0F2F5 */
    --border: 210 11% 90%; /* #E6E9EC */
    --text: 210 11% 15%; /* #1A1D21 */
    --text-light: 210 11% 45%; /* #6B7280 */
    --text-muted: 210 11% 65%; /* #9CA3AF */
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

/* Base Typography */
html {
    font-size: 16px;
    line-height: 1.6;
}

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: hsl(var(--primary-dark));
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

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

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

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

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    color: hsl(var(--text));
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: hsl(var(--surface));
    color: hsl(var(--primary));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text));
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl) 0;
    background: linear-gradient(135deg, hsl(var(--surface)) 0%, hsl(var(--background)) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    color: hsl(var(--text));
}

.hero-text p {
    font-size: 1.25rem;
    color: hsl(var(--text-light));
    margin-bottom: var(--space-xl);
}

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

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

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

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
}

.section-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--text-light));
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.services h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

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

.service-card {
    background-color: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
}

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

.service-card p {
    color: hsl(var(--text-light));
    margin-bottom: 0;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    color: hsl(var(--primary));
    margin-bottom: var(--space-sm);
}

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

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

.features h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.feature {
    background-color: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.feature h3 {
    margin-bottom: var(--space-md);
    color: hsl(var(--text));
}

.feature p {
    color: hsl(var(--text-light));
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.testimonial {
    background-color: hsl(var(--surface));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.testimonial blockquote {
    font-style: italic;
    color: hsl(var(--text-light));
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.testimonial cite {
    font-weight: 600;
    color: hsl(var(--text));
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: var(--space-lg);
}

.contact-details {
    margin-top: var(--space-xl);
}

.contact-item {
    margin-bottom: var(--space-lg);
}

.contact-item strong {
    display: block;
    margin-bottom: var(--space-sm);
    color: hsl(var(--text));
}

.contact-item p {
    color: hsl(var(--text-light));
    margin-bottom: 0;
}

/* Form Styles */
.contact-form {
    background-color: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: hsl(var(--text));
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg) 0;
}

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

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

.footer-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer h4 {
    margin-bottom: var(--space-md);
    color: white;
}

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: hsl(var(--text-muted));
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-light));
    padding-top: var(--space-lg);
    text-align: center;
    color: hsl(var(--text-muted));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text));
    color: white;
    padding: var(--space-lg);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

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

.cookie-buttons button {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-buttons button:hover {
    background-color: white;
    color: hsl(var(--text));
}

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

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--background));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: var(--space-md);
}

.cookie-option {
    margin-bottom: var(--space-md);
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.cookie-modal-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.cookie-modal-buttons button {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid hsl(var(--primary));
    background: hsl(var(--primary));
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.cookie-modal-buttons button:last-child {
    background: transparent;
    color: hsl(var(--primary));
}

.cookie-modal-buttons button:hover {
    opacity: 0.8;
}

/* Blog Styles */
.blog-hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl) 0;
    background-color: hsl(var(--surface));
    text-align: center;
}

.blog-hero h1 {
    margin-bottom: var(--space-md);
}

.blog-posts {
    padding: var(--space-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background-color: hsl(var(--background));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: var(--space-lg);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.blog-category {
    background-color: hsl(var(--primary));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.blog-card h2 {
    margin-bottom: var(--space-md);
}

.blog-card h2 a {
    color: hsl(var(--text));
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: hsl(var(--primary));
}

.read-more {
    font-weight: 500;
    color: hsl(var(--primary));
}

/* Newsletter Section */
.newsletter {
    background-color: hsl(var(--primary));
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

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

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: var(--space-lg) auto 0 auto;
    gap: var(--space-md);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
}

.newsletter-form button {
    background-color: hsl(var(--secondary));
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: hsl(30 100% 45%);
}

/* Article Styles */
.blog-article {
    padding: calc(80px + var(--space-xl)) 0 var(--space-3xl) 0;
}

.article-header {
    margin-bottom: var(--space-xl);
}

.breadcrumb {
    margin-bottom: var(--space-md);
    color: hsl(var(--text-muted));
}

.breadcrumb a {
    color: hsl(var(--primary));
}

.article-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    color: hsl(var(--text-muted));
    flex-wrap: wrap;
}

.article-image {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.25rem;
    color: hsl(var(--text-light));
    margin-bottom: var(--space-xl);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

.article-cta {
    background-color: hsl(var(--surface));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-3xl) 0;
}

.article-footer {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid hsl(var(--border));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.share-buttons h4,
.related-articles h4 {
    margin-bottom: var(--space-md);
}

.share-buttons a {
    display: inline-block;
    margin-right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: hsl(var(--primary));
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.share-buttons a:hover {
    background-color: hsl(var(--primary-dark));
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: var(--space-sm);
}

/* Legal Pages */
.legal-page {
    padding: calc(80px + var(--space-xl)) 0 var(--space-3xl) 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.last-updated {
    color: hsl(var(--text-muted));
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.contact-info {
    background-color: hsl(var(--surface));
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.cookie-controls {
    background-color: hsl(var(--surface));
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-xl);
}

/* Thank You Page */
.thank-you {
    padding: calc(80px + var(--space-xl)) 0 var(--space-3xl) 0;
    text-align: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: var(--space-xl);
}

.thank-you-message {
    font-size: 1.25rem;
    color: hsl(var(--text-light));
    margin-bottom: var(--space-xl);
}

.next-steps {
    margin: var(--space-3xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.step {
    background-color: hsl(var(--surface));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

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

.contact-info-box {
    background-color: hsl(var(--surface));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

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

@media (max-width: 768px) {
    :root {
        --space-3xl: 2rem;
        --space-2xl: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--background));
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .blog-article,
    .legal-page {
        padding-top: var(--space-md);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text: 0 0% 0%;
        --background: 0 0% 100%;
        --primary: 240 100% 50%;
    }
}
