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

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #CD853F;
    --dark-color: #2C1810;
    --light-color: #F5F5DC;
    --text-color: #333;
    --text-light: #666;
    --border-color: #DDD;
    --background-light: #FAF8F5;
    --white: #FFF;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

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

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

/* Header and Navigation */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav {
    padding: 15px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--light-color) 100%);
}

.hero-content {
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
}

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

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

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

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

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

.section-header {
    margin-bottom: 50px;
}

.section-header.centered {
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Page Hero */
.page-hero {
    padding: 60px 0;
    background-color: var(--background-light);
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.lead {
    font-size: 20px;
    color: var(--text-light);
}

/* Grid Layouts using Flexbox */
.services-grid,
.values-grid,
.benefits-grid,
.team-grid,
.testimonials-grid,
.knowledge-grid,
.industries-list,
.reasons-grid,
.trust-grid,
.contact-grid,
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card,
.value-card,
.benefit-card,
.team-member,
.testimonial-card,
.knowledge-card,
.industry-item,
.reason-card,
.trust-item,
.contact-card,
.stat-item {
    flex: 1 1 100%;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

/* Cards */
.service-card,
.value-card,
.benefit-card,
.testimonial-card,
.knowledge-card,
.reason-card {
    border: 1px solid var(--border-color);
}

.service-card:hover,
.value-card:hover,
.benefit-card:hover,
.reason-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon,
.value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-icon img,
.value-icon img {
    width: 100%;
    height: 100%;
}

.service-card h3,
.value-card h3,
.benefit-card h3,
.knowledge-card h3,
.reason-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p,
.value-card p,
.benefit-card p,
.knowledge-card p,
.reason-card p {
    color: var(--text-light);
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 16px;
    color: var(--light-color);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--background-light);
    border: none;
}

.testimonial-text {
    margin-bottom: 20px;
}

.testimonial-text p {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

.testimonial-author strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.process-step {
    flex: 1 1 100%;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.process-step p {
    color: var(--text-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-light);
}

/* Team */
.team-member {
    border: 1px solid var(--border-color);
}

.member-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--text-light);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-content p {
    color: var(--text-light);
}

/* Services Detailed */
.service-detailed {
    margin-bottom: 50px;
    padding: 40px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.service-icon-large {
    width: 80px;
    height: 80px;
}

.service-icon-large img {
    width: 100%;
    height: 100%;
}

.service-title-block h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.service-description p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.service-features {
    list-style: disc;
    padding-left: 20px;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Contact Info */
.contact-card {
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.contact-icon img {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary-color);
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* Legal Content */
.legal-content {
    padding: 40px 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.legal-text p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-text ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.legal-text ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--accent-color);
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 30px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--background-light);
}

/* Thank You */
.thank-you-hero {
    padding: 100px 0;
    background-color: var(--background-light);
}

.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.thank-you-icon img {
    width: 100%;
    height: 100%;
}

.thank-you-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.thank-you-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.thank-you-actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 100%;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p {
    color: var(--light-color);
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-color);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
}

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

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

.cookie-content p {
    flex: 1 1 100%;
    margin: 0;
    color: var(--light-color);
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex: 1 1 100%;
}

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

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

.cookie-modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.cookie-modal-content h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

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

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

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

.cookie-option span {
    font-weight: 600;
    color: var(--dark-color);
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 30px;
    color: var(--text-light);
    font-size: 14px;
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Utility Classes */
.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.link-arrow:hover {
    color: var(--accent-color);
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        border: none;
        box-shadow: none;
    }

    .nav-menu li {
        border: none;
    }

    .nav-menu a {
        padding: 10px 20px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-content {
        margin-bottom: 0;
    }

    .service-card,
    .value-card,
    .benefit-card,
    .knowledge-card,
    .reason-card {
        flex: 1 1 calc(50% - 30px);
    }

    .testimonial-card {
        flex: 1 1 calc(50% - 30px);
    }

    .process-step {
        flex: 1 1 calc(50% - 30px);
    }

    .stat-item {
        flex: 1 1 calc(25% - 30px);
    }

    .contact-card {
        flex: 1 1 calc(33.333% - 30px);
    }

    .footer-col {
        flex: 1 1 calc(25% - 40px);
    }

    .cookie-content {
        flex-wrap: nowrap;
    }

    .cookie-content p {
        flex: 1 1 auto;
    }

    .cookie-actions {
        flex: 0 0 auto;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .service-card,
    .value-card,
    .benefit-card {
        flex: 1 1 calc(33.333% - 30px);
    }

    .testimonial-card {
        flex: 1 1 calc(33.333% - 30px);
    }

    .process-step {
        flex: 1 1 calc(33.333% - 30px);
    }

    .team-member {
        flex: 1 1 calc(50% - 30px);
    }

    .knowledge-card {
        flex: 1 1 calc(33.333% - 30px);
    }

    .industry-item {
        flex: 1 1 calc(50% - 30px);
    }

    .reason-card {
        flex: 1 1 calc(33.333% - 30px);
    }

    .trust-item {
        flex: 1 1 calc(25% - 30px);
    }
}

/* Additional Layout Helpers */
.expertise-layout,
.story-layout,
.location-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.expertise-text,
.story-content,
.location-content {
    flex: 1 1 100%;
}

.expertise-visual,
.story-visual,
.location-visual {
    flex: 1 1 100%;
}

.expertise-visual img,
.story-visual img,
.location-visual img {
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .expertise-text,
    .story-content,
    .location-content {
        flex: 1 1 55%;
    }

    .expertise-visual,
    .story-visual,
    .location-visual {
        flex: 1 1 40%;
    }
}

.expertise-list,
.achievements-list,
.waiting-grid,
.steps-grid,
.directions-grid,
.company-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.expertise-item,
.achievement-item,
.waiting-card,
.step-card,
.direction-item,
.company-info-item {
    flex: 1 1 100%;
}

.expertise-item h3,
.achievement-item h3,
.waiting-card h3,
.step-card h3,
.direction-item h3,
.company-info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.expertise-item p,
.achievement-item p,
.waiting-card p,
.step-card p,
.direction-item p,
.company-info-item p {
    color: var(--text-light);
}

@media (min-width: 768px) {
    .expertise-item,
    .achievement-item,
    .waiting-card,
    .step-card,
    .direction-item {
        flex: 1 1 calc(50% - 30px);
    }

    .company-info-item {
        flex: 1 1 calc(50% - 30px);
    }
}

.process-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.process-simple-step {
    flex: 1 1 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .process-simple-step {
        flex: 1 1 calc(25% - 30px);
    }
}

.process-simple-step .step-number {
    margin: 0 auto 20px;
}

.process-simple-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.process-simple-step p {
    color: var(--text-light);
}

/* Philosophy and other content sections */
.philosophy,
.story,
.about-location,
.directions,
.company-details,
.contact-reasons,
.working-with-us,
.approach,
.trust-indicators,
.achievements,
.next-steps,
.while-waiting,
.services-intro,
.service-benefits,
.process-overview,
.service-faq,
.contact-faq {
    background-color: var(--white);
}

.philosophy:nth-child(even),
.expertise:nth-child(even) {
    background-color: var(--background-light);
}

.philosophy-content,
.intro-content,
.approach-content,
.expectations-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content p,
.intro-content p,
.approach-content p,
.expectations-content p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-color);
    line-height: 1.8;
}