/* TermitesGuide.com — site styles (used with Bootstrap 5.3) */
:root {
  --primary: #f6a623;
  --primary-dark: #d98c0f;
  --dark: #111114;
  --text-main: #212529;
  --text-muted: #5f666d;
  --line: #e2e3ea;
  --soft: #f9fafc;
}
* { box-sizing: border-box; }
body { font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text-main); background: #fff; }
h1, h2, h3, h4, h5, h6, .brand { font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #0b5cad; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 2000; background: #fff; padding: 8px 12px; }

/* Top bar & navbar */
.topbar-top { border-bottom: 1px solid rgba(0,0,0,.08); font-size: .85rem; }
.topbar-top i { color: var(--primary); }
.navbar { padding: .6rem 0; }
.brand { font-size: 1.7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); line-height: 1.1; }
.brand span { color: #fff; }
.brand-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9aa0a6; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.75); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:hover { color: var(--primary); }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); color: #111; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #111; }
.btn-pill { border-radius: 999px; padding: .75rem 1.6rem; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

/* Home hero */
.hero { position: relative; color: #fff; background: #1a1a1f center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.35)); }
.hero .container { position: relative; padding: 5.5rem 12px 5rem; }
.hero .kicker { letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--primary); font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; max-width: 44rem; text-shadow: 0 8px 28px rgba(0,0,0,.5); }
.hero p { max-width: 38rem; font-size: 1.1rem; color: #e9e9ef; }

.section-label { display: inline-block; padding: .25rem .9rem; border-radius: 999px; border: 2px solid var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }

/* Cards */
.guide-card { border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(0,0,0,.13); color: inherit; }
.guide-card img { height: 190px; object-fit: cover; width: 100%; background: #eee; }
.guide-card .body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.guide-card h3 { font-size: 1.2rem; font-weight: 800; }
.guide-card .more { margin-top: auto; font-weight: 700; color: #8a5a00; }
.guide-card .tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.icon-card { border-radius: 1rem; background: var(--soft); border: 1px solid var(--line); padding: 1.5rem; height: 100%; }
.icon-card i { color: var(--primary); }
.price-card { border-radius: 1rem; overflow: hidden; box-shadow: 0 14px 36px rgba(0,0,0,.08); height: 100%; background: #fff; }
.price-card .head { background: var(--primary); padding: 1rem 1.2rem; text-align: center; }
.price-card.featured .head { background: var(--dark); color: var(--primary); }
.price-card .price { font-size: 1.8rem; font-weight: 800; margin: 0; }
.price-card ul { list-style: none; padding: 1.2rem 1.4rem; margin: 0; }
.price-card li { padding: .3rem 0; }
.question-card { background: #fff; border-radius: 1rem; padding: 1.4rem; box-shadow: 0 10px 28px rgba(0,0,0,.06); height: 100%; border-left: 4px solid var(--primary); }
.question-card p { font-size: 1.05rem; margin: 0 0 .6rem; }
.question-card span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tool-card { background: #fff; border-radius: 1rem; padding: 1.3rem; height: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.tool-card img { border-radius: .6rem; margin-bottom: .8rem; max-height: 200px; object-fit: cover; width: 100%; }
.tool-card .btn { margin-top: auto; }
.cta-band { background: linear-gradient(135deg, #111114, #27242e); color: #fff; border-radius: 1.25rem; padding: 2.5rem; }
.cta-band p { color: #d8d8e0; }

/* Guide pages */
main.guide { padding: 2.2rem 0 4rem; }
.guide-layout { display: flex; flex-wrap: wrap; gap: 2rem; }
.guide-main { flex: 1 1 0; min-width: 0; max-width: 820px; }
.guide-sidebar { width: 320px; max-width: 100%; }
@media (max-width: 991px) { .guide-layout { display: block; } .guide-sidebar { width: 100%; margin-top: 2rem; } }
.breadcrumb-wrapper { font-size: .85rem; margin-bottom: .75rem; color: var(--text-muted); }
.breadcrumb-wrapper a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-wrapper a:hover { text-decoration: underline; }
.guide-kicker { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; display: inline-block; padding: .2rem .8rem; border-radius: 999px; border: 1px solid var(--primary); margin-bottom: .8rem; }
.guide-title { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: .4rem; }
.guide-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 46rem; }
.byline { font-size: .85rem; color: var(--text-muted); margin: .4rem 0 1.2rem; }
.guide-main h2 { margin-top: 2.2rem; margin-bottom: .5rem; font-size: 1.45rem; font-weight: 800; scroll-margin-top: 80px; }
.guide-main h3 { margin-top: 1.3rem; margin-bottom: .3rem; font-size: 1.12rem; font-weight: 700; }
.guide-main p, .guide-main li { font-size: 1rem; line-height: 1.7; }
.guide-main ul, .guide-main ol { padding-left: 1.3rem; }
.callout { border-left: 4px solid var(--primary); background: #fffaf2; padding: .9rem 1.1rem; border-radius: .5rem; margin: 1.2rem 0; }
.toc { border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1.2rem; margin: 1rem 0 1.5rem; font-size: .95rem; }
.toc ol { margin: .3rem 0 0; }
.data-table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.4rem; font-size: .93rem; }
.data-table th, .data-table td { border: 1px solid #e1e2e7; padding: .6rem .65rem; vertical-align: top; }
.data-table th { background: #f7f8fc; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; background: #f1f2f7; color: #555; font-weight: 700; }
.chip-high { background: #ffe5e0; color: #a3261a; }
.chip-medium { background: #fff3cd; color: #7a5b00; }
.chip-low { background: #e2f0d9; color: #155724; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.option-card { border-radius: .9rem; border: 1px solid var(--line); background: var(--soft); padding: 1rem 1.1rem; }
.option-card h3 { margin-top: 0 !important; }
.badge-pill { display: inline-block; border-radius: 999px; font-size: .68rem; padding: .15rem .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: .4rem; }
.aff-box { border: 1px solid #d2d2e0; background: #f7f7ff; padding: 1rem 1.1rem; border-radius: .8rem; margin: 1.4rem 0; }
.aff-box h3 { margin-top: 0 !important; font-size: 1.05rem !important; }
.aff-box small { display: block; color: var(--text-muted); margin-top: .4rem; }
.cta-box { background: #fff6e1; border: 1px solid #f5d188; border-radius: .9rem; padding: 1.1rem 1.2rem; margin: 1.6rem 0; }
.cta-box h2, .cta-box h3 { margin-top: 0 !important; }
.sidebar-card { background: var(--soft); border-radius: 1rem; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.sidebar-card h2 { font-size: .9rem; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .16em; color: #555; font-weight: 800; }
.sidebar-card ul { list-style: none; padding-left: 0; margin: 0; font-size: .93rem; }
.sidebar-card li { margin-bottom: .45rem; }
.faq details { border: 1px solid var(--line); border-radius: .7rem; padding: .8rem 1rem; margin-bottom: .7rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: .5rem; }
.sources { font-size: .86rem; color: var(--text-muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }
.sources h2 { font-size: 1rem !important; margin-top: 0 !important; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 0; font-size: 1.1rem; line-height: 1.55; }
.guide-main img { max-width: 100%; height: auto; border-radius: .6rem; margin: .4rem 0 1rem; }

/* Calculator */
.calc { border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.calc label { font-weight: 700; font-size: .92rem; }
.calc .form-text { font-size: .8rem; }
.calc-result { display: none; margin-top: 1.4rem; }
.calc-result.show { display: block; }
.calc-range { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: #8a5a00; letter-spacing: -.02em; }
tr.rec td { background: #fff8e8; font-weight: 600; }

/* Footer */
.footer { background: #171821; color: #d9d9e6; font-size: .92rem; }
.footer h2 { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer a { color: #d9d9e6; text-decoration: none; }
.footer a:hover { color: var(--primary); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: .25rem 0; }
.copyright { font-size: .82rem; background: var(--dark); color: rgba(255,255,255,.6); }
.copyright a { color: rgba(255,255,255,.7); }

/* Print (prevention checklist) */
@media print {
  .topbar-top, .navbar, .bg-dark, .guide-sidebar, .footer, .copyright, .no-print, .aff-box, .cta-box { display: none !important; }
  main.guide { padding: 0; }
  .guide-main { max-width: 100%; }
  .checklist li::before { content: "☐"; }
  a { color: #000; text-decoration: none; }
}
