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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.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;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

a:hover {
    color: #2980b9;
}

ul {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cookie-buttons button:first-child {
    background: #27ae60;
    color: white;
}

.cookie-buttons button:first-child:hover {
    background: #219a52;
}

.cookie-buttons button:nth-child(2) {
    background: #f39c12;
    color: white;
}

.cookie-buttons button:nth-child(2):hover {
    background: #d68910;
}

.cookie-buttons button:last-child {
    background: #95a5a6;
    color: white;
}

.cookie-buttons button:last-child:hover {
    background: #7f8c8d;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.cookie-modal-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.cookie-option {
    margin-bottom: 15px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

/* 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;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

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

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #219a52;
    color: white;
}

.banner-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

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

.about-text h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.service-card p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: #555;
}

.service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: #f8f9fa;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3498db;
    opacity: 0.3;
}

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

.testimonial-author strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.blog-content {
    padding: 1.5rem;
}

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

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

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.blog-date,
.blog-category {
    position: relative;
}

.blog-category::before {
    content: "•";
    margin-right: 5px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.submit-button {
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #219a52;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: #3498db;
}

.social-media h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.social-links a {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a: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 p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

.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;
}

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

/* Legal Pages */
.legal-page {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.legal-page section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.legal-page section:last-child {
    border-bottom: none;
}

.legal-page h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.legal-page h3 {
    color: #34495e;
    margin-bottom: 1rem;
}

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

/* Thanks Page */
.thanks-page {
    padding: 100px 0;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.thanks-submessage {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.thanks-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

/* Blog Article Pages */
.blog-article {
    padding: 100px 0;
}

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

.article-meta {
    margin-bottom: 1rem;
}

.article-date,
.article-category {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-category::before {
    content: "•";
    margin: 0 10px;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100px;
    height: 100px;
    opacity: 0.6;
}

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

.article-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 5px 5px 0;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

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

.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #34495e;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.article-content th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: #f8f9fa;
}

.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-blog {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog:hover {
    color: #2980b9;
}

.share-article {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-article span {
    color: #7f8c8d;
    font-weight: 600;
}

.share-article a {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.share-article a:hover {
    background: #2980b9;
    color: white;
}

.cookie-settings-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-actions .btn-primary,
    .thanks-actions .btn-secondary {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 1rem 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        margin: 0 15px;
    }
    
    .newsletter-form {
        padding: 0 15px;
    }
    
    .article-content {
        padding: 0 15px;
    }
    
    .article-content .lead {
        margin: 0 -15px 2rem;
        padding: 1rem 15px;
    }
    
    .share-article {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .share-article a {
        margin: 0 5px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal,
    .article-navigation,
    .article-cta {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .article-content {
        max-width: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary,
    .cta-button,
    .submit-button {
        border: 2px solid #000;
    }
}

/* 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;
    }
}
