/* =========================================================================
   Knockout Roofs — styles for the parts the HTML design does not draw:
   blog post and service detail pages, the kit's generic section types
   (cards, gallery, rich text...), form notices and the video pop-up.
   Loaded after client.css (the converted design).
   ========================================================================= */

:root {
    --site-primary: #e10600;
    --site-primary-rgb: 225, 6, 0;
    --site-primary-dark: #b30000;
    --site-text: #111;
    --site-muted: #555;
    --site-heading: #111;
    --site-surface: #f4f4f4;
    --site-border: #e3e3e3;
    --site-dark: #1a1a1a;
    --site-dark-text: #e5e5e5;
    --site-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: .5rem 1rem; background: #111; color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Bootstrap "primary" buttons used by the kit's partials follow the brand. */
.btn-primary {
    --bs-btn-bg: var(--site-primary); --bs-btn-border-color: var(--site-primary); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--site-primary-dark); --bs-btn-hover-border-color: var(--site-primary-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--site-primary-dark); --bs-btn-active-border-color: var(--site-primary-dark);
    border-radius: 0; font-weight: 600; text-transform: uppercase; font-size: 14px;
}
.btn-outline-primary {
    --bs-btn-color: var(--site-primary); --bs-btn-border-color: var(--site-primary);
    --bs-btn-hover-bg: var(--site-primary); --bs-btn-hover-border-color: var(--site-primary); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--site-primary); --bs-btn-active-border-color: var(--site-primary);
    border-radius: 0; font-weight: 600; text-transform: uppercase; font-size: 14px;
}
.page-link { color: var(--site-primary); }
.page-item.active .page-link { background: var(--site-primary); border-color: var(--site-primary); color: #fff; }

/* Service photo cropped from the top */
.service-img.pos-top { background-position: center top; }

/* Small label above a heading (optional in every section) */
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--site-primary); }

/* ---------------- Inspection form notices ---------------- */

/* ---------------- Page content (privacy, blog post, service) ---------------- */
.content-section { padding: 40px 0 90px; }
.prose { max-width: 800px; font-size: 17px; line-height: 1.75; color: #222; }
.prose-wide { max-width: none; }
.prose h2 { font-size: 30px; font-weight: 600; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 24px; font-weight: 600; margin: 1.6rem 0 .7rem; }
.prose a { color: var(--site-primary); }
.prose blockquote { border-left: 4px solid var(--site-primary); padding-left: 1rem; color: #444; }
.prose img { max-width: 100%; height: auto; }
.prose img.img-left { float: left; margin: .35rem 1.5rem 1rem 0; max-width: 50%; }
.prose img.img-right { float: right; margin: .35rem 0 1rem 1.5rem; max-width: 50%; }
.prose img.img-center { display: block; margin: 1.5rem auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) { .prose img.img-left, .prose img.img-right { float: none; display: block; max-width: 100%; margin: 1rem auto; } }

.post-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.2rem; font-size: 15px; color: var(--site-muted); }
.post-meta a { color: var(--site-primary); text-decoration: none; }
.post-featured { margin: 0 0 2rem; }
.post-featured img { display: block; width: 100%; height: auto; }
.post-featured figcaption { margin-top: .6rem; font-size: .875rem; color: var(--site-muted); text-align: center; }
.post-footer { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--site-border); }
.post-tag { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .8rem; background: rgba(var(--site-primary-rgb), .08); color: var(--site-primary); text-decoration: none; font-size: .9rem; }
.post-share { display: flex; gap: .75rem; align-items: center; }
.post-share a { color: var(--site-muted); font-size: 1.1rem; }
.post-share a:hover { color: var(--site-primary); }
.blog-widget { padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--site-border); }
.blog-widget h2 { font-size: 18px; font-weight: 600; margin: 0 0 .8rem; }
.blog-widget li { padding: .4rem 0; border-bottom: 1px solid var(--site-border); }
.blog-widget li:last-child { border-bottom: 0; }
.blog-widget a { color: #111; text-decoration: none; }
.blog-widget a:hover { color: var(--site-primary); }
@media (min-width: 992px) { .blog-sidebar { position: sticky; top: 24px; align-self: flex-start; } }

.cta-box { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-accent { background: var(--site-primary); color: #fff; }
.cta-accent h2, .cta-dark h2 { color: #fff; }
.cta-accent .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--site-primary); --bs-btn-border-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .9); --bs-btn-hover-color: var(--site-primary-dark); }
.cta-accent .btn-outline-primary, .cta-dark .btn-outline-primary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .6); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #111; }
.cta-dark { background: var(--site-dark); color: var(--site-dark-text); }
.cta-light { background: var(--site-surface); border: 1px solid var(--site-border); }
.cta-box p { max-width: 640px; margin: 0 auto 1.5rem; opacity: .9; }

/* ---------------- The kit's generic section types ---------------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--site-surface); }
.section-dark { background: var(--site-dark); color: var(--site-dark-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
.img-frame { overflow: hidden; box-shadow: var(--site-shadow); }
.img-frame img { width: 100%; display: block; }
.img-placeholder { display: grid; place-items: center; aspect-ratio: 4/3; background: #eee; color: var(--site-muted); font-size: 3rem; }

.kit-hero { position: relative; padding: 230px 0 80px; background: linear-gradient(180deg, #dde8f3 0%, #eef3f9 100%); overflow: hidden; }
.kit-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.kit-hero .lead { font-size: 1.2rem; color: #333; max-width: 640px; }
.kit-hero-centered { text-align: center; }
.kit-hero-centered .lead { margin-left: auto; margin-right: auto; }
.kit-hero-background { color: #fff; background: #111; min-height: 70vh; display: flex; align-items: center; }
.kit-hero-background .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit-hero-background::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .3)); z-index: 1; }
.kit-hero-background .container { position: relative; z-index: 2; }
.kit-hero-background h1, .kit-hero-background .lead { color: #fff; }

.card-item { height: 100%; padding: 2rem; overflow: hidden; background: #fff; border: 1px solid var(--site-border); transition: transform .2s, box-shadow .2s; }
.card-item:hover { transform: translateY(-4px); box-shadow: var(--site-shadow); }
.card-item .card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; background: rgba(var(--site-primary-rgb), .1); color: var(--site-primary); font-size: 1.6rem; }
.card-item .card-img { width: calc(100% + 4rem); margin: -2rem -2rem 1.5rem; aspect-ratio: 16/10; overflow: hidden; }
.card-item .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.card-item p { color: var(--site-muted); }
.card-link { font-weight: 600; color: var(--site-primary); text-decoration: none; }

.gallery-item { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem; color: #fff; font-size: .875rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

.map-frame { width: 100%; border: 0; background: #eee; }
.team-photo { width: 160px; height: 160px; margin: 0 auto 1.25rem; border-radius: 50%; overflow: hidden; background: #eee; display: grid; place-items: center; font-size: 3rem; font-weight: 700; color: var(--site-muted); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-aside { padding: 2rem; background: var(--site-surface); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Video pop-up (promo band play button) ---------------- */
.video-modal .modal-content { background: #000; border: 0; border-radius: 0; }
.video-modal .modal-body { padding: 0; }
.video-modal .ratio { background: #000; }
.video-modal .btn-close { position: absolute; top: -34px; right: 0; filter: invert(1); opacity: 1; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Rich-text FAQ answers: no extra space under the last paragraph (the design uses plain text). */
.faq-a > :last-child { margin-bottom: 0; }
.faq-a > :first-child { margin-top: 0; }

/* ---------------- Inspection form: thank-you panel (replaces the form after sending) ---------------- */
.form-done { display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: #e8f6ec; color: #14532d; text-align: left; }
.form-done p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; }
.form-done-icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 28px; }
@media (max-width: 575.98px) { .form-done { flex-direction: column; text-align: center; padding: 20px; } .form-done p { font-size: 16px; } }
/* Hero form: the error list stays on a few short lines, and the dark band grows to hold it (desktop only; smaller screens already grow). */

/* ---------------- Inspection form: validation messages (dark form panels) ---------------- */
.form-alert { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 16px; background: #fff; border-left: 5px solid #e10600; color: #7f1d1d; font-size: 15px; font-weight: 500; line-height: 1.35; text-align: left; }
.form-alert i { flex: 0 0 auto; color: #e10600; font-size: 18px; }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; color: #ff8a84; font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: left; }
.field-error i { flex: 0 0 auto; margin-top: 2px; font-size: 13px; }
.form-inner .form-control.is-invalid, .form-inner .form-select.is-invalid,
.contact-form .form-control.is-invalid, .contact-form .form-select.is-invalid { border: 0; box-shadow: inset 0 -4px 0 #e10600; }
.form-inner .form-control.is-invalid:focus, .form-inner .form-select.is-invalid:focus,
.contact-form .form-control.is-invalid:focus, .contact-form .form-select.is-invalid:focus { box-shadow: inset 0 -4px 0 #e10600, 0 0 0 3px rgba(225, 6, 0, .25); }
/* The hero band grows to hold the messages (desktop; smaller screens already grow). */
@media (min-width: 1200px) { .hero-form.has-note { height: 500px; } }