/* TSBR — refined slate & copper (unified brand palette) */
:root {
    --primary-color: #b8653a;
    --primary-color-dark: #8f4f2e;
    --secondary-color: #c4a35a;
    --tertiary-color: #c9785a;
    --accent-steel: #5b7c99;
    --accent-navy: #1e293b;
    --accent-slate: #243044;

    --cream: #f7f6f3;
    --cream-muted: #f0eeea;
    --slate-deep: #141b26;
    --slate-mid: #1e293b;
    --slate-soft: #2f3d52;

    /* Lever defaults — sections override below */
    --header-bg-color: #ffffff;
    --nav-item-color: #1e293b;
    --hero-bg-color: #141b26;
    --section-1-bg-color: var(--cream);
    --section-2-bg-color: var(--slate-mid);
    --section-3-bg-color: var(--slate-deep);
    --section-4-bg-color: var(--cream);
    --section-5-bg-color: var(--cream-muted);
    --section-6-bg-color: #ffffff;
    --card-bg-color: #ffffff;
    --footer-bg-color: var(--slate-deep);

    --text-dark: #1e293b;
    --text-light: #e8edf4;
    --text-muted-tsbr: #64748b;
    --text-muted-on-dark: #94a3b8;
    --white-color: #1e293b;

    --gradient-brand: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-heading: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    --gradient-heading-dark: linear-gradient(90deg, #e8edf4, var(--secondary-color), #e8edf4);
}

/* ── Base ── */
body.home {
    background-color: var(--cream);
    color: var(--text-dark);
}

body.home #header .navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

body.home .navbar .nav-link {
    color: var(--nav-item-color) !important;
}

body.home .navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border-color: var(--primary-color);
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
}

.btn.primary-button,
a.primary-button {
    color: #fff !important;
}

.effect-static-text {
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Top bar — clean neutral strip ── */
.top-bar-tsbr {
    background: linear-gradient(90deg, #ffffff, var(--cream-muted) 50%, #ffffff);
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    color: var(--text-muted-tsbr);
}

.top-bar-tsbr a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ── Trust bar — light with copper accent ── */
.trust-bar-tsbr {
    background: linear-gradient(90deg, #ffffff, var(--cream) 50%, #ffffff);
    border-top: 3px solid var(--secondary-color);
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
    padding: 2rem 0;
}

.trust-bar-tsbr .trust-item strong {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.trust-bar-tsbr .trust-item span {
    color: var(--text-muted-tsbr);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* ── LIGHT sections ── */
#skills,
#why,
#reviews,
#team,
#faq {
    background-color: inherit;
}

#skills.section-1,
#why.section-1,
#reviews.section-1 {
    background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%) !important;
    color: var(--text-dark);
}

#skills h2, #skills h4,
#why h2, #why h4,
#reviews h2, #reviews h4,
#team h2, #team h4,
#faq h2 {
    color: var(--text-dark);
}

#skills .text-max-800,
#why .text-max-800,
#reviews .text-max-800,
#team p,
#faq .text-max-800 {
    color: var(--text-muted-tsbr);
}

#team.section-4 {
    background: #ffffff !important;
    color: var(--text-dark);
}

#faq.section-5,
#silo.section-5 {
    background: linear-gradient(180deg, var(--cream-muted), var(--cream)) !important;
    color: var(--text-dark);
}

/* ── DARK sections ── */
#services.section-2,
#process.section-2,
#gallery.section-2 {
    background: linear-gradient(160deg, var(--slate-mid) 0%, var(--slate-deep) 100%) !important;
    color: var(--text-light);
}

#services h2, #process h2, #gallery h2,
#services h4, #process h4 {
    color: var(--text-light);
}

#services .text-max-800,
#process .text-max-800,
#gallery .text-max-800 {
    color: var(--text-muted-on-dark);
}

#services .effect-static-text,
#process .effect-static-text,
#gallery .effect-static-text {
    background: var(--gradient-heading-dark);
    -webkit-background-clip: text;
    background-clip: text;
}

#services .card,
#process .card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(196, 163, 90, 0.18);
    color: var(--text-light);
    backdrop-filter: blur(8px);
}

#services .card h4,
#process .card h4 {
    color: var(--secondary-color);
}

#services .card p,
#process .card p {
    color: var(--text-muted-on-dark);
}

#services .card .icon,
#process .card .icon {
    color: var(--secondary-color);
}

/* Results — unified slate depth */
#results.section-4 {
    background: linear-gradient(135deg, var(--slate-soft) 0%, var(--slate-mid) 55%, var(--slate-deep) 100%) !important;
    color: var(--text-light);
}

#results h2, #results h4 {
    color: var(--text-light);
}

#results .text-max-800 {
    color: var(--text-muted-on-dark);
}

#results .effect-static-text {
    background: var(--gradient-heading-dark);
    -webkit-background-clip: text;
    background-clip: text;
}

#results .case-card {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#results .case-card h4 {
    color: var(--text-light);
}

#results .case-card em {
    color: var(--text-muted-on-dark);
}

#results .case-metric strong {
    color: var(--secondary-color);
}

/* Locations — slate + steel accent */
#locations.section-3 {
    background: linear-gradient(160deg, var(--slate-deep) 0%, var(--accent-slate) 100%) !important;
    color: var(--text-light);
}

#locations h2, #locations h4 {
    color: var(--text-light);
}

#locations .text-max-800 {
    color: var(--text-muted-on-dark);
}

#locations .effect-static-text {
    background: linear-gradient(90deg, var(--accent-steel), #8ba3bc);
    -webkit-background-clip: text;
    background-clip: text;
}

#locations .card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(91, 124, 153, 0.28);
    color: var(--text-light);
    transition: border-color 0.2s, transform 0.2s;
}

#locations .card:hover {
    border-color: var(--accent-steel);
    transform: translateY(-3px);
}

#locations .card p {
    color: var(--text-muted-on-dark);
}

/* Contact — light shell, dark form panel */
#contact.section-6 {
    background: linear-gradient(180deg, #ffffff, var(--cream-muted)) !important;
    color: var(--text-dark);
}

#contact h2 {
    color: var(--text-dark);
}

#contact .nav-link {
    color: var(--text-dark) !important;
}

#contact #audit-form {
    background: linear-gradient(145deg, var(--slate-mid), var(--slate-deep));
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(184, 101, 58, 0.22);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

#contact .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* ── Hero & video — stay cinematic dark ── */
#slider.hero,
#get.section-3.hero {
    background: #0a0a0f !important;
}

#slider .title,
#get .title {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

#slider .description,
#get .description {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

#slider .effect-static-text,
#get .effect-static-text {
    background: var(--gradient-heading-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Hero metric chips */
.hero-metrics-row {
    gap: 1.5rem;
}

.hero-metric-chip {
    background: rgba(20, 27, 38, 0.55);
    border: 1px solid rgba(196, 163, 90, 0.28);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(6px);
}

.hero-metric-chip strong {
    color: var(--secondary-color) !important;
    font-size: 1.5rem;
}

.hero-metric-chip small {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Cards & components ── */
.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-top: 3px solid var(--secondary-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 10px 36px rgba(45, 42, 38, 0.08);
}

.testimonial-card .testimonial-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 8px 24px rgba(45, 42, 38, 0.12);
    display: block;
}

.testimonial-card .stars {
    color: var(--secondary-color);
}

.testimonial-card blockquote {
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-card cite strong {
    color: var(--text-dark);
}

.case-card {
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.faq-tsbr details {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-tsbr summary {
    color: var(--text-dark);
    font-weight: 600;
}

.faq-tsbr details[open] summary {
    color: var(--primary-color);
}

.faq-tsbr .faq-body {
    color: var(--text-muted-tsbr);
}

.gallery-tsbr img {
    border-radius: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid rgba(196, 163, 90, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s;
}

.gallery-tsbr img:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

#skills .radial span::after {
    color: var(--primary-color);
}

.navbar-brand img.tsbr-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
}

/* ── Footer — deep dark anchor ── */
#footer,
footer .footer {
    background: var(--footer-bg-color) !important;
    color: var(--text-light);
}

#footer .title,
footer .footer .title {
    color: #fff;
}

#footer p,
#footer .nav-link {
    color: var(--text-muted-on-dark) !important;
}

#copyright {
    background: #0f141c !important;
    border-top: 1px solid rgba(196, 163, 90, 0.15);
    color: var(--text-muted-on-dark);
}

/* ── Popup ── */
.tsbr-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.65);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tsbr-popup-overlay.is-open {
    display: flex;
}

.tsbr-popup {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: tsbrPopIn 0.35s ease;
}

@keyframes tsbrPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tsbr-popup-hero {
    background: var(--gradient-brand);
    color: #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.tsbr-popup-hero h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.tsbr-popup-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tsbr-popup-body { padding: 1.5rem; }

.tsbr-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.tsbr-popup-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted-tsbr);
}

.tsbr-popup-perks li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
}

.tsbr-form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.audit-series-note {
    font-size: 0.85rem;
    color: var(--text-muted-tsbr);
}

.audit-series-note strong {
    color: var(--primary-color);
}

/* Process phase badges on dark bg */
#process .badge.tag {
    background: rgba(91, 124, 153, 0.18);
    color: #a8bdd4;
    border: 1px solid rgba(91, 124, 153, 0.32);
}

/* Team badges on light */
#team .badge.tag {
    background: var(--cream-muted);
    color: var(--primary-color);
    border: 1px solid rgba(184, 101, 58, 0.18);
}

/* Homepage silo navigation */
.silo-nav-tsbr {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.silo-nav-list-tsbr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.silo-nav-list-tsbr a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.silo-nav-list-tsbr a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}