/* Canadian Home Inspector, shared styles.
   Header and footer carry their own CSS inside their markup (site-wide).
   Homepage sections carry their own CSS. This file covers: base, inner pages
   (scoped to body.chi-inner so nothing leaks into the homepage hero), the request
   form and review cards used on several pages.
   Brand: navy #10314f, gold #e8a33d, action red #dc2626 (homepage buttons). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #2b2b2b; background: #fff; line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: #10314f; }
:focus-visible { outline: 3px solid #e8a33d; outline-offset: 2px; }
.chi-skip { position: absolute; left: -9999px; top: 8px; background: #10314f; color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 1000; }
.chi-skip:focus { left: 12px; }

/* ---------- inner pages ---------- */
.chi-inner main section { padding: 56px 20px; }
.chi-inner .chi-wrap { max-width: 1080px; margin: 0 auto; }
.chi-inner main h1, .chi-inner main h2, .chi-inner main h3 { color: #10314f; line-height: 1.2; text-wrap: balance; }
.chi-inner main h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 900; margin: 0 0 14px; letter-spacing: -0.01em; }
.chi-inner main h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 800; margin: 0 0 14px; }
.chi-inner main h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.chi-inner main p, .chi-inner main li { max-width: 72ch; }
.chi-inner main ul, .chi-inner main ol { padding-left: 22px; }
.chi-inner main li { margin-bottom: 6px; }

/* hero band */
.chi-inner .chi-hero { background: linear-gradient(135deg, #0b2440 0%, #10314f 60%, #1b4a72 100%); color: #fff; padding: 64px 20px 56px; }
.chi-inner .chi-hero h1 { color: #fff; max-width: 820px; }
.chi-inner .chi-hero p { color: #dce8f4; font-size: 18px; max-width: 720px; margin: 0 0 24px; }
.chi-inner .chi-hero .chi-crumbs { font-size: 13px; color: #a9c1d9; margin: 0 0 14px; }
.chi-inner .chi-hero .chi-crumbs a { color: #dce8f4; text-decoration: none; }
.chi-inner .chi-hero .chi-crumbs a:hover { text-decoration: underline; }
.chi-inner .chi-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chi-inner .chi-hero .chi-ghost { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid #e8a33d; padding-bottom: 2px; }
.chi-inner .chi-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: #dce8f4; list-style: none; padding: 0; }
.chi-inner .chi-hero__facts li { margin: 0; display: flex; gap: 6px; align-items: center; }
.chi-inner .chi-hero__facts li::before { content: "\2713"; color: #e8a33d; font-weight: 900; }

/* answer box (TL;DR) */
.chi-inner .chi-tldr { background: #eef4fa; border-left: 5px solid #10314f; border-radius: 0 10px 10px 0; padding: 22px 24px; }
.chi-inner section.chi-tldr { border-left: 0; border-radius: 0; padding: 44px 20px; }
.chi-inner section.chi-tldr .chi-wrap { border-left: 5px solid #10314f; padding-left: 22px; }
.chi-inner .chi-tldr h2 { font-size: 20px; margin-bottom: 8px; }
.chi-inner .chi-tldr ul { margin: 10px 0 0; }
.chi-inner .chi-tldr li { margin-bottom: 8px; }

/* cards and grids */
.chi-inner .chi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 24px; }
.chi-inner .chi-card { background: #fff; border: 1px solid #e2e8ee; border-radius: 10px; padding: 24px; box-shadow: 0 2px 6px rgba(16,49,79,.06); }
.chi-inner .chi-card h3 { margin-top: 0; }
.chi-inner .chi-card > :last-child { margin-bottom: 0; }
.chi-inner .chi-card .chi-card__price { font-size: 26px; font-weight: 900; color: #10314f; margin: 4px 0 8px; }
.chi-inner .chi-card a.chi-card__link { font-weight: 800; color: #dc2626; text-decoration: none; }
.chi-inner .chi-card a.chi-card__link:hover { text-decoration: underline; }
.chi-inner .chi-alt { background: #f7f9fb; }
.chi-inner .chi-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.chi-inner .chi-split > * { min-width: 0; }
.chi-inner .chi-split img { border-radius: 12px; box-shadow: 0 10px 30px rgba(16,49,79,.15); }
@media (max-width: 800px) { .chi-inner .chi-split { grid-template-columns: 1fr; } }
.chi-inner .chi-checklist { columns: 2 240px; column-gap: 32px; list-style: none; padding: 0; }
.chi-inner .chi-checklist li { break-inside: avoid; padding-left: 26px; position: relative; }
.chi-inner .chi-checklist li::before { content: "\2713"; position: absolute; left: 0; color: #dc2626; font-weight: 900; }
.chi-inner .chi-tools { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chi-inner .chi-tools li { background: #eef4fa; color: #10314f; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 6px 14px; margin: 0; }

/* price table */
.chi-inner .chi-table-wrap { overflow-x: auto; margin-top: 20px; }
.chi-inner .chi-price-table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
.chi-inner .chi-price-table th, .chi-inner .chi-price-table td { border: 1px solid #e2e8ee; padding: 12px 16px; text-align: left; }
.chi-inner .chi-price-table th { background: #10314f; color: #fff; }
.chi-inner .chi-price-table tr:nth-child(even) td { background: #f7f9fb; }
.chi-inner .chi-note { font-size: 14px; color: #5a6876; margin-top: 10px; }

/* steps */
.chi-inner .chi-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 18px; }
.chi-inner .chi-steps li { counter-increment: s; position: relative; padding-left: 58px; max-width: none; }
.chi-inner .chi-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #10314f; color: #fff; font-weight: 900; display: grid; place-items: center; }
.chi-inner .chi-steps h3 { margin-top: 6px; }

/* testimonials (city pages) */
.chi-inner .chi-testimonial { background: #fff; border-left: 4px solid #e8a33d; padding: 20px 24px; margin: 0 0 18px; border-radius: 0 8px 8px 0; box-shadow: 0 2px 6px rgba(16,49,79,.06); }
.chi-inner .chi-testimonial p { margin: 0 0 8px; font-style: italic; }
.chi-inner .chi-testimonial cite { font-style: normal; font-weight: 700; color: #10314f; }

/* FAQ */
.chi-inner .chi-faq details { background: #fff; border: 1px solid #e2e8ee; border-radius: 10px; margin-bottom: 12px; }
.chi-inner .chi-faq summary { font-weight: 800; color: #10314f; cursor: pointer; padding: 16px 20px; list-style: none; position: relative; padding-right: 48px; }
.chi-inner .chi-faq summary::-webkit-details-marker { display: none; }
.chi-inner .chi-faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: #e8a33d; }
.chi-inner .chi-faq details[open] summary::after { content: "\2212"; }
.chi-inner .chi-faq details > div { padding: 0 20px 16px; }
.chi-inner .chi-faq details > div p { margin: 0 0 10px; }

/* closing call to action */
.chi-inner .chi-cta-final { background: #10314f; color: #fff; text-align: center; }
.chi-inner .chi-cta-final h2 { color: #fff; }
.chi-inner .chi-cta-final p { color: #dce8f4; max-width: 700px; margin: 0 auto 22px; }
.chi-inner .chi-phone { font-size: 1.4em; font-weight: 800; color: #e8a33d; text-decoration: none; }
.chi-inner .chi-img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }

/* blog */
.chi-inner .chi-post { max-width: 760px; margin: 0 auto; }
.chi-inner .chi-post p, .chi-inner .chi-post li { font-size: 17px; }
.chi-inner .chi-post-meta { color: #a9c1d9; font-size: 14px; }

/* map */
.chi-map { position: relative; padding-bottom: 56%; height: 0; overflow: hidden; border-radius: 12px; border: 1px solid #e2e8ee; }
.chi-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- review cards (home section 04, testimonials, city pages) ---------- */
.chi-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 24px; }
.chi-review { background: #fff; border: 1px solid #e2e8ee; border-left: 4px solid #e8a33d; border-radius: 0 12px 12px 0; padding: 20px 22px; box-shadow: 0 2px 6px rgba(16,49,79,.06); display: flex; flex-direction: column; gap: 10px; margin: 0; }
.chi-review__stars { color: #e8a33d; letter-spacing: 2px; font-size: 14px; }
.chi-review p { margin: 0; font-size: 15px; line-height: 1.6; color: #2b2b2b; }
.chi-review footer { font-size: 13px; color: #5a6876; margin-top: auto; }
.chi-review footer strong { color: #10314f; }
.chi-rating { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8ee; border-radius: 12px; padding: 12px 18px; box-shadow: 0 8px 20px rgba(16,49,79,.08); color: #10314f; }
.chi-rating b { font-size: 26px; }
.chi-rating span { color: #e8a33d; letter-spacing: 2px; }

/* ---------- inspection request form ---------- */
.chi-form { background: #fff; border: 1px solid #e2e8ee; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(16,49,79,.08); }
.chi-form__intro { margin: 0 0 16px; color: #454b53; font-size: 15px; }
.chi-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.chi-form__f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #10314f; }
.chi-form__f--wide { grid-column: 1 / -1; }
.chi-form input, .chi-form select, .chi-form textarea { font: inherit; font-size: 15px; font-weight: 400; color: #2b2b2b; border: 1px solid #c7d0d9; border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%; min-width: 0; }
.chi-form input:focus, .chi-form select:focus, .chi-form textarea:focus { border-color: #10314f; outline: 2px solid #e8a33d; outline-offset: 0; }
.chi-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chi-form__submit { margin-top: 18px; width: 100%; justify-content: center; font-size: 16px !important; }
.chi-form__fine { font-size: 12.5px; color: #5a6876; margin: 12px 0 0; }
.chi-form__alert { background: #fdecec; color: #8f1d1d; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }

/* ---------- membership preview (TEST build only) ---------- */
.chi-preview-bar { background: #fff4e0; color: #6b4a12; border-bottom: 2px solid #e8a33d; padding: 10px 20px; font-size: 14px; text-align: center; }
.chi-inner .chi-hero .chi-eyebrow { color: #e8a33d; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.chi-inner .chi-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; align-items: stretch; }
.chi-inner .chi-tier { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8ee; border-radius: 12px; padding: 28px 24px; box-shadow: 0 2px 6px rgba(16,49,79,.06); }
.chi-inner .chi-tier--featured { border: 2px solid #e8a33d; box-shadow: 0 12px 30px rgba(16,49,79,.14); }
.chi-inner .chi-tier h3 { margin: 0 0 6px; font-size: 22px; }
.chi-inner .chi-tier__for { font-size: 13px; color: #5a6876; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.chi-inner .chi-tier__badge { position: absolute; top: -13px; left: 24px; background: #e8a33d; color: #10314f; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 4px 12px; margin: 0; }
.chi-inner .chi-tier__price { font-size: 40px; font-weight: 900; color: #10314f; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.chi-inner .chi-tier__price span { font-size: 16px; font-weight: 600; color: #5a6876; }
.chi-inner .chi-tier ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.chi-inner .chi-tier li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.chi-inner .chi-tier li::before { content: "\2713"; position: absolute; left: 0; color: #dc2626; font-weight: 900; }
.chi-inner .chi-tier .chi-btn { justify-content: center; }
.chi-inner .chi-btn--outline { background: transparent !important; color: #10314f !important; border: 2px solid #10314f; box-shadow: none; }
@media (max-width: 860px) { .chi-inner .chi-tiers { grid-template-columns: 1fr; max-width: 460px; } }

.chi-member-band { background: linear-gradient(135deg, #0b2440 0%, #10314f 70%); color: #fff; padding: 56px 20px; }
.chi-member-band__wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.chi-member-band__eyebrow { color: #e8a33d; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.chi-member-band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.chi-member-band p { color: #dce8f4; margin: 0 0 10px; }
.chi-member-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chi-member-band li { background: rgba(255,255,255,.08); border-left: 4px solid #e8a33d; border-radius: 0 8px 8px 0; padding: 10px 14px; font-weight: 700; }
.chi-member-band a.chi-member-band__btn { display: inline-block; margin-top: 12px; background: #e8a33d; color: #10314f; font-weight: 900; text-decoration: none; padding: 12px 22px; border-radius: 8px; }
@media (max-width: 760px) { .chi-member-band__wrap { grid-template-columns: 1fr; } }
/* extra Membership nav item: tighten the desktop header so Book stays on screen */
@media (min-width: 1161px) and (max-width: 1480px) {
  body .chi-header__nav:has(a[href="/membership/"]) { gap: 10px; }
  body .chi-header__nav:has(a[href="/membership/"]) ~ .chi-header__cta .chi-header__call { padding: 9px 9px; }
}
