@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --maple-ink: #24312d;
    --maple-muted: #65716b;
    --maple-forest: #315c4c;
    --maple-forest-dark: #203f35;
    --maple-clay: #b86f4b;
    --maple-linen: #f5f1eb;
    --maple-paper: #fffdf9;
    --maple-line: #e7dfd5;
    --maple-shadow: 0 14px 34px rgba(36, 49, 45, 0.09);
}

body {
    background: var(--maple-paper) !important;
    color: var(--maple-ink) !important;
    font-family: 'DM Sans', sans-serif !important;
    user-select: text !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--maple-ink);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
}

.btn-primary,
.btn-success {
    background: var(--maple-forest);
    border-color: var(--maple-forest);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: var(--maple-forest-dark);
    border-color: var(--maple-forest-dark);
}

.btn-outline-primary {
    border-color: var(--maple-forest);
    color: var(--maple-forest);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--maple-forest);
    border-color: var(--maple-forest);
    color: #fff;
}

.page-title-section {
    background: linear-gradient(90deg, rgba(20, 39, 32, 0.88), rgba(20, 39, 32, 0.38)), url('photos/1739873384070.jpeg') center / cover !important;
    margin-bottom: 0 !important;
    min-height: 380px !important;
    padding: 6rem 0 7rem !important;
}

.page-title-section h1,
.page-title-section h2,
.page-title-section p {
    color: #fff !important;
    text-shadow: none !important;
}

.page-title-section h1,
.page-title-section h2 {
    font-size: clamp(2.8rem, 7vw, 5.3rem) !important;
    line-height: 1 !important;
}

.page-title-section .lead {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
}

.content-section,
.testimonials-main-content,
.jobs-main-content {
    background: var(--maple-paper) !important;
    border-color: var(--maple-line) !important;
    box-shadow: none !important;
}

.content-section {
    border-radius: 4px !important;
    margin-bottom: 1.5rem !important;
}

.content-section h3,
.content-section h4,
.content-section h5,
.testimonials-main-content h3,
.job-detail-panel h4 {
    color: var(--maple-ink) !important;
}

.content-section p,
.content-section li,
.testimonials-main-content p {
    color: var(--maple-muted);
}

.first-letter { color: var(--maple-clay) !important; }

.service-card,
.feature-box,
.value-card,
.testimonial-card,
.add-testimonial-form-card,
.contact-info,
.contact-form,
.filter-form-section,
.job-list-panel,
.job-detail-panel {
    background: #fff !important;
    border: 1px solid var(--maple-line) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 16px rgba(36, 49, 45, 0.04) !important;
}

.service-card,
.feature-box {
    min-height: 230px;
    padding: 1.75rem !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.feature-box:hover,
.testimonial-card:hover,
.job-list-item:hover {
    border-color: var(--maple-clay) !important;
    box-shadow: var(--maple-shadow) !important;
    transform: translateY(-4px);
}

.service-card i,
.feature-box i,
.key-capability-item i,
.manufacturing-feature i,
.contact-info p i,
.office-location h4 i {
    color: var(--maple-clay) !important;
}

.service-card h4,
.feature-box h4,
.key-capability-item h5,
.manufacturing-feature h5 {
    color: var(--maple-forest) !important;
}

.key-capability-item,
.manufacturing-feature {
    background: var(--maple-linen) !important;
    border-left-color: var(--maple-clay) !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: none !important;
}

.quote-section {
    background: var(--maple-linen) !important;
    border-left-color: var(--maple-clay) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.quote-section blockquote {
    color: var(--maple-forest) !important;
    font-family: 'Playfair Display', serif;
}

.quote-section footer.blockquote-footer { color: var(--maple-clay) !important; }

.trust-bar,
.filter-form-section,
.admin-alert {
    background: var(--maple-linen) !important;
    border-color: var(--maple-line) !important;
}

.form-control,
.form-select {
    border-color: var(--maple-line);
    border-radius: 3px;
    color: var(--maple-ink);
    padding: 0.7rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--maple-forest);
    box-shadow: 0 0 0 0.2rem rgba(49, 92, 76, 0.14);
}

.office-location {
    background: var(--maple-linen) !important;
    border-color: var(--maple-line) !important;
    box-shadow: none !important;
}

.office-location h4 { color: var(--maple-forest) !important; }
.office-photo { border-radius: 3px; }
.contact-info a { color: var(--maple-forest) !important; }

.testimonial-card,
.add-testimonial-form-card {
    padding: 1.5rem !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-content {
    color: var(--maple-ink) !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.author-image img,
.navbar-user-photo { border-color: #f0c3a5 !important; }

.job-list-item,
.applied-job-item,
.job-detail-panel,
.applied-jobs-panel {
    background: #fff !important;
    border-color: var(--maple-line) !important;
    border-radius: 4px !important;
}

.job-list-item { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.job-list-item.active-job-card { border-left-color: var(--maple-clay) !important; }
.job-meta span,
.job-meta-brief span { color: var(--maple-muted); }
.job-meta span i,
.job-meta-brief span i { color: var(--maple-clay) !important; }

body > footer:not(.footer-global) {
    background: var(--maple-forest) !important;
    color: #c6d0c9 !important;
    margin-top: 1rem !important;
    padding: 1.25rem 0 !important;
}

#loading-spinner { color: var(--maple-forest); }

@media (max-width: 767.98px) {
    .page-title-section { min-height: 330px !important; padding: 5rem 0 6rem !important; }
    .content-section { padding: 2rem 1rem !important; }
    .service-card,
    .feature-box { min-height: 0; }
}
