/* =========================================================
   Hobson Painting and Coatings — custom styles (Bootstrap 5.3, light)
   Colors from the logo: brush-handle blue, paint red, bristle cream, black.
   Paint-chip motif: services and section markers look like
   color chips from a paint store; red paint drips above the footer.
   ========================================================= */

:root {
    --ink: #1e2427;           /* text */
    --brand: #0b749b;         /* logo: brush-handle blue */
    --brand-dark: #075a78;
    --brand-tint: #e4f1f6;
    --accent: #9f1a23;        /* logo: paint red (white text on it) */
    --accent-text: #9f1a23;
    --cream: #e8d1a5;         /* logo: bristles */
    --charcoal: #24292d;
    --stone: #f3f5f6;         /* alternate section background */
    --line: #d5dce0;
    --radius: 6px;

    --bs-body-bg: #ffffff;
    --bs-body-color: var(--ink);
    --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: 1.08rem;
    --bs-body-line-height: 1.6;
    --bs-secondary-color: #56605f;
    --bs-heading-color: var(--ink);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 11, 116, 155;
    --bs-link-hover-color: var(--brand-dark);
    --bs-link-hover-color-rgb: 7, 90, 120;
    --bs-border-color: var(--line);
}

body { display: flex; flex-direction: column; min-height: 100vh; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 2000; background: var(--brand); color: #fff; padding: .5rem 1rem; }

h1, h2, h3, h4, .display-4, .display-5, .display-6 { font-family: "Zilla Slab", Georgia, serif; font-weight: 700; line-height: 1.1; letter-spacing: -.005em; }
h3, h4 { font-weight: 600; }
.lead { font-size: 1.25rem; color: #3b4447; }
p { max-width: 42em; }
.text-accent { color: var(--accent-text) !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--radius); padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.6rem; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
             --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
             --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
             --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #7f141b; --bs-btn-hover-border-color: #7f141b;
             --bs-btn-active-color: #fff; --bs-btn-active-bg: #7f141b; --bs-btn-active-border-color: #7f141b; }
.btn-line  { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-border-width: 2px;
             --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
             --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.wordmark-logo { height: 58px; width: auto; flex-shrink: 0; }
@media (max-width: 575.98px) { .wordmark-logo { height: 48px; } }
.wordmark-text { font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 1.75rem; line-height: .95; color: var(--charcoal); }
.wordmark-text small { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: .8rem; color: #56605f; letter-spacing: .02em; margin-top: .25rem; }

/* ---------- Top bar & nav ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.85); font-size: .9rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--cream); }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site-nav .nav-link { font-weight: 600; color: var(--ink); padding-left: .8rem !important; padding-right: .8rem !important; }
.site-nav .nav-link:hover { color: var(--brand); }
.site-nav .nav-link.active { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 1199.98px) { .site-nav .nav-link.active { box-shadow: inset 3px 0 0 var(--accent); } }

/* ---------- Hero ---------- */
.hero { background: var(--stone); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.hero h1 span { color: var(--brand); }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; }
.hero-facts i { color: var(--brand); margin-right: .35rem; }

/* ---------- House visualizer ---------- */
.visualizer { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(30, 36, 39, .08); }
.house { display: block; width: 100%; height: auto; }
.house .h-body { fill: var(--body); }
.house .h-trim { fill: var(--trim); }
.house .h-trim-stroke { stroke: var(--trim); }
.house .h-door { fill: var(--door); }
.house .h-body, .house .h-trim, .house .h-trim-stroke, .house .h-door { transition: fill .45s ease, stroke .45s ease; }
@media (prefers-reduced-motion: reduce) { .house * { transition: none !important; } }
.viz-panel { padding: 1.25rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.scheme-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: .35rem .7rem .35rem .4rem;
}
.scheme-btn:hover { border-color: var(--brand); }
.scheme-btn[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.swatch { display: inline-flex; border-radius: 3px; overflow: hidden; border: 1px solid rgba(0,0,0,.2); }
.swatch i { width: 10px; height: 22px; display: block; }
.swatch i:first-child { width: 16px; }
.viz-note { color: #56605f; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-stone { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.chip-bar { display: inline-flex; gap: 3px; margin-bottom: 1rem; }
.chip-bar span { width: 26px; height: 10px; border-radius: 2px; }
.chip-bar span:nth-child(1) { background: var(--brand); }
.chip-bar span:nth-child(2) { background: var(--accent); }
.chip-bar span:nth-child(3) { background: var(--charcoal); }

/* Chip colors */
.chip-blue { background: var(--brand); color: #fff; }
.chip-charcoal { background: var(--charcoal); color: #fff; }
.chip-red { background: var(--accent); color: #fff; }

/* ---------- Paint-chip service cards ---------- */
.chip-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.chip-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(30,36,39,.1); }
@media (prefers-reduced-motion: reduce) { .chip-card:hover { transform: none; } }
.chip-card .chip-color { min-height: 150px; padding: 1.25rem 1.4rem; display: flex; align-items: flex-end; }
.chip-card .chip-color h3 { margin: 0; font-size: 1.6rem; color: inherit; }
.chip-card.featured .chip-color { min-height: 220px; }
.chip-card .chip-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.chip-card .chip-body p { color: #3b4447; }
.chip-card .more { margin-top: auto; font-weight: 700; color: var(--brand); }
.chip-card .tag { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--accent-text); margin-bottom: .4rem; }

/* ---------- Process (real sequence: numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); padding: 1.4rem; }
.steps li:nth-child(2) { border-top-color: var(--accent); }
.steps li:nth-child(3) { border-top-color: var(--charcoal); }
.steps li:nth-child(4) { border-top-color: var(--brand-dark); }
.steps li::before { content: "Step " counter(step); display: block; font-weight: 700; font-size: .9rem; color: var(--accent-text); margin-bottom: .35rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.steps p { margin: 0; color: #3b4447; }

/* Check lists */
.check-list { list-style: none; padding: 0; margin: 0; columns: 2 15rem; column-gap: 2rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; break-inside: avoid; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--brand); font-weight: 700; }
.check-list.single { columns: 1; }

/* Simple bordered panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.panel h3 { font-size: 1.3rem; }
.panel-icon { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand); font-size: 1.3rem; margin-bottom: .9rem; }

/* Photos & placeholders */
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .4rem;
    background: repeating-linear-gradient(-45deg, #eceee9 0 14px, #e5e8e2 14px 28px);
    border: 1px solid var(--line);
    color: #7b8582;
    font-size: 3rem;
}
.photo-placeholder span { font-size: 1rem; font-weight: 700; color: #56605f; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.before-after figure { margin: 0; }
.before-after figcaption { font-weight: 700; margin-top: .4rem; }

/* Quotes */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; margin: 0; }
.quote .stars { color: #c98a14; margin-bottom: .6rem; }
.quote blockquote { font-size: 1.08rem; }
.quote figcaption { color: #56605f; font-size: .95rem; }

/* Service-area map */
.radius-map { max-width: 460px; margin: 0 auto; }
.radius-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.radius-map .area { fill: var(--brand-tint); stroke: var(--brand); stroke-width: 2.5; }
.radius-map .ring { fill: none; stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; }
.radius-map .ring-label { font: 600 10px "Source Sans 3", sans-serif; fill: var(--brand); text-anchor: middle; opacity: .8; }
.radius-map .town { fill: var(--charcoal); }
.radius-map .town-label { font: 600 11px "Source Sans 3", sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--brand-tint); stroke-width: 3px; }
.radius-map .home { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.radius-map .home-label { font: 700 13px "Zilla Slab", serif; fill: var(--brand-dark); text-anchor: middle; paint-order: stroke; stroke: var(--brand-tint); stroke-width: 3px; }
.town-list { margin: 1.5rem 0; }
.town-list dt { font-weight: 700; color: var(--brand); }
.town-list dd { margin: 0 0 .7rem; color: #3b4447; }

/* Page banner */
.page-banner { background: var(--stone); border-bottom: 1px solid var(--line); }
.page-banner .display-4 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.banner-chip { width: 72px; height: 12px; border-radius: 2px; margin-bottom: 1.25rem; }

/* Accordion */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius);
             --bs-accordion-active-bg: var(--brand-tint); --bs-accordion-active-color: var(--brand-dark); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(11,116,155,.35); }
.accordion-button { font-weight: 700; }

/* Forms */
.form-control, .form-select { border: 1.5px solid #c3cac1; border-radius: var(--radius); padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,116,155,.2); }
.form-label { font-weight: 700; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-sheet { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.88); }
.cta-band .btn-outline-light { --bs-btn-hover-color: var(--brand); border-width: 2px; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.88); }
.chip-strip { display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; }
.chip-strip span:nth-child(1) { background: var(--cream); }
.chip-strip span:nth-child(2) { background: var(--accent); }
.chip-strip span:nth-child(3) { background: var(--brand); }
.chip-strip span:nth-child(4) { background: #a3b196; }
.chip-strip span:nth-child(5) { background: #cbbfae; }
.chip-strip span:nth-child(6) { background: #33465f; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-brand .wordmark-text { color: #fff; }
.footer-brand .wordmark-text small { color: rgba(255,255,255,.75); }
.footer-heading { font-size: 1.25rem; color: #fff; margin-bottom: .9rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-muted { color: rgba(255,255,255,.7); }
.site-footer hr { border-color: rgba(255,255,255,.2); opacity: 1; }

/* Paint drips (from the logo) hanging above the footer */
.drips { display: block; width: 100%; height: 46px; color: var(--accent); }
.footer-brand .wordmark-logo { background: #fff; border-radius: 8px; padding: 4px; }
