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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8b5a2b;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #8b5a2b;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: #8b5a2b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5d3a1a;
    text-decoration: underline;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.brand-text {
    color: #ecf0f1;
    font-size: 1.2rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: #ecf0f1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #8b5a2b;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f1c40f" width="1000" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.cta-button {
    display: inline-block;
    background-color: #8b5a2b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #5d3a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #8b5a2b;
    color: #8b5a2b;
}

.cta-button.secondary:hover {
    background-color: #8b5a2b;
    color: white;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #ecf0f1;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px 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 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

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

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

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

.blog-image, .article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card h3, .article-card h2 {
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-card p, .article-content p {
    padding: 0 1rem;
    color: #666;
}

.blog-card a, .article-card a {
    display: block;
    padding: 1rem;
    color: #8b5a2b;
    font-weight: bold;
}

.read-more {
    color: #8b5a2b;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #8b5a2b;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #8b5a2b;
    color: white;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

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

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: bold;
    color: #f1c40f;
}

/* Newsletter */
.newsletter {
    background-color: #8b5a2b;
    color: white;
    text-align: center;
}

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

.newsletter-form input {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #34495e;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item h3 {
    color: #8b5a2b;
    margin-bottom: 0.5rem;
}

.social-media {
    text-align: center;
    margin-top: 3rem;
}

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

.social-links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #8b5a2b;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #5d3a1a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

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

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

.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: #f1c40f;
}

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

/* Article Pages */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

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

.page-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.article-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-intro {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    line-height: 1.7;
}

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

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

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

.nav-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #8b5a2b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #5d3a1a;
    transform: translateY(-2px);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h2 {
    margin-top: 2rem;
    color: #2c3e50;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-year {
    background-color: #8b5a2b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    margin-right: 2rem;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.value-card h3 {
    color: #8b5a2b;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    padding-left: 2rem;
}

.benefits-list li:before {
    content: "✓";
    color: #8b5a2b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Thanks Page */
.thanks-section {
    text-align: center;
    padding: 4rem 0;
}

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

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

.newsletter-info {
    background: #ecf0f1;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.newsletter-info ul {
    margin-top: 1rem;
    padding-left: 2rem;
}

.social-follow {
    margin-top: 2rem;
}

/* Cookie Management */
.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: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cookie-buttons button:first-child {
    background-color: #8b5a2b;
    color: white;
}

.cookie-buttons button:nth-child(2) {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-buttons button:last-child {
    background-color: #34495e;
    color: white;
}

.cookie-buttons button:hover {
    transform: translateY(-2px);
}

.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

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

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.2rem;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #8b5a2b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background-color: #5d3a1a;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .services-grid, .blog-grid, .articles-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

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

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: flex-start;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .cookie-modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .cookie-banner, .cookie-modal {
        display: none;
    }

    main {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #8b5a2b;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .hero {
        background-color: black;
        color: white;
    }

    .header {
        background-color: black;
    }

    .footer {
        background-color: black;
    }
}

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

.newsletter p {
    color: #000;
}