/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2d5a3d;
    --color-secondary: #8b4513;
    --color-accent: #d4a574;
    --color-dark: #1a1a1a;
    --color-light: #f8f6f3;
    --color-white: #ffffff;
    --color-gray: #6b6b6b;
    --color-gray-light: #e8e5e1;
    --color-success: #4a7c59;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-light);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-dark);
}

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

p { margin-bottom: 1rem; }

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

/* Header & Navigation */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

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

.nav-menu a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: #6d360f;
    color: var(--color-white);
}

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

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

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-white);
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

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

.section-accent h2,
.section-accent h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--color-gray);
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #3d7a52 100%);
    color: var(--color-white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.hero .btn-primary:hover {
    background-color: var(--color-light);
}

.hero .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

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

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* Grid Layouts with Flexbox */
.grid-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.grid-2 > * {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
}

.grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.grid-3 > * {
    flex: 1 1 calc(33.333% - 1.34rem);
    min-width: 280px;
}

.grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.grid-4 > * {
    flex: 1 1 calc(25% - 1.125rem);
    min-width: 220px;
}

/* Service Cards */
.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-card .card-icon {
    background-color: var(--color-light);
    padding: 1rem;
    border-radius: var(--radius);
    width: fit-content;
}

.service-card h3 {
    margin-top: 1rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
    padding-top: 1rem;
}

/* Feature Blocks */
.feature-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-block-content {
    flex: 1;
}

.feature-block-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-block-visual svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
    }
}

/* Statistics */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.section-dark .stat-number,
.section-accent .stat-number {
    color: var(--color-white);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray);
}

.section-dark .stat-label,
.section-accent .stat-label {
    color: rgba(255,255,255,0.8);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    margin-bottom: 0;
}

.testimonial-info p {
    margin-bottom: 0;
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* Large Quote */
.quote-section {
    text-align: center;
    padding: 5rem 2rem;
}

.quote-text {
    font-size: 1.75rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.quote-author {
    font-weight: 600;
    color: var(--color-primary);
}

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

.faq-item {
    border-bottom: 1px solid var(--color-gray-light);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition);
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--color-gray);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 220px;
    text-align: center;
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
}

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

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: var(--color-light);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-block {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

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

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

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

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

.footer-section a {
    color: var(--color-gray-light);
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-gray);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

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

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

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    margin-bottom: 0;
}

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

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

.cookie-btn-accept:hover {
    background-color: #234830;
}

.cookie-btn-settings {
    background-color: transparent;
    border: 1px solid var(--color-gray);
    color: var(--color-light);
}

.cookie-btn-settings:hover {
    border-color: var(--color-light);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    padding: 1rem;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-modal-header h3 {
    margin-bottom: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cookie-modal-close svg {
    width: 24px;
    height: 24px;
}

.cookie-option {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

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

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-option h4 {
    margin-bottom: 0;
}

.cookie-option p {
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-gray-light);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Highlighted Panel */
.highlight-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3d7a52 100%);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.highlight-panel h2,
.highlight-panel h3 {
    color: var(--color-white);
}

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

.highlight-panel .btn-primary:hover {
    background-color: var(--color-light);
}

/* Trust Indicators */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.trust-badge svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.trust-badge span {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Values List */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.value-item {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.value-item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.value-item h4 {
    margin-bottom: 0.5rem;
}

.value-item p {
    margin-bottom: 0;
    color: var(--color-gray);
    font-size: 0.9375rem;
}

/* Industries */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.industry-tag {
    background-color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.industry-tag:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Milestones */
.milestones {
    position: relative;
    padding-left: 3rem;
}

.milestones::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.milestone-item {
    position: relative;
    padding-bottom: 2rem;
}

.milestone-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0;
    width: 14px;
    height: 14px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transform: translateX(-6px);
}

.milestone-year {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.milestone-item h4 {
    margin-bottom: 0.5rem;
}

.milestone-item p {
    color: var(--color-gray);
    margin-bottom: 0;
}

/* Icon List */
.icon-list {
    list-style: none;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.icon-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-success);
    margin-top: 0.2rem;
}

/* Thank You Page */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you svg {
    width: 80px;
    height: 80px;
    color: var(--color-success);
    margin-bottom: 2rem;
}

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

.legal-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3d7a52 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Alternating Content Blocks */
.alt-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem 0;
}

.alt-block:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-block-text {
    flex: 1;
}

.alt-block-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-light);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .alt-block,
    .alt-block:nth-child(even) {
        flex-direction: column;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .quote-text {
        font-size: 1.375rem;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
