/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8rem;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 1rem;
    z-index: 1001;
    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: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-buttons button:hover {
    background: white;
    color: #2c3e50;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Company Info Section */
.company-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.info-text h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.info-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.testimonial-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
}

.testimonial-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-item h4 {
    color: #2c3e50;
    margin: 0;
}

/* Blog Section */
.blog-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

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

.blog-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.blog-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-item h3 a:hover {
    color: #3498db;
}

.blog-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #666;
}

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

.blog-link a {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Subscription Section */
.subscription {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.subscription h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.subscription p {
    color: #bdc3c7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.subscription-form input {
    padding: 1rem;
    border: 1px solid #34495e;
    border-radius: 6px;
    font-size: 1rem;
    background: #34495e;
    color: white;
}

.subscription-form input::placeholder {
    color: #bdc3c7;
}

.subscription-form button {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscription-form button:hover {
    background: #2980b9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #bdc3c7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
}

.social-links img {
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.social-links img:hover {
    filter: brightness(1);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    min-height: 70vh;
}

.legal-page h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.legal-page section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

/* Thanks Page */
.thanks-page {
    padding: 120px 0 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thanks-content h1 {
    color: #27ae60;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.thanks-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Page */
.blog-page {
    padding: 120px 0 80px;
}

.blog-page h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.blog-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

.blog-content {
    padding: 2rem;
}

.blog-content h2 {
    margin-bottom: 1rem;
}

.blog-content h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-content h2 a:hover {
    color: #3498db;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.blog-date,
.blog-category {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* Article Page */
.article-page {
    padding: 120px 0 80px;
}

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

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #999;
}

.article-date,
.article-category,
.article-author {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.article-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.article-body ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body ul li {
    margin-bottom: 0.5rem;
}

.article-body em {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #3498db;
    display: block;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-navigation a {
    color: #3498db;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.article-navigation a:hover {
    background: #3498db;
    color: white;
}

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

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

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    margin: 1rem;
}

.cookie-modal h3 {
    margin-bottom: 1rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-switch.active {
    background: #3498db;
}

.cookie-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-switch.active::before {
    transform: translateX(25px);
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.cookie-modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-buttons button.primary {
    background: #3498db;
    color: white;
}

.cookie-modal-buttons button:hover {
    background: #3498db;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .subscription-form {
        padding: 0 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .services h2,
    .testimonials h2,
    .blog-preview h2 {
        font-size: 2rem;
    }
    
    .cookie-modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .subscription,
    .footer {
        display: none;
    }
    
    .article-page,
    .legal-page {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
    
    p, ul, ol {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
    }
    
    .service-item:hover,
    .testimonial-item:hover,
    .blog-item:hover {
        box-shadow: 0 0 0 2px black;
    }
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
