/* ==========================================================================
   Affordable Siding Company — theme styles.
   Ported from the original static design (ink / pine / sand / coral) and
   extended for CMS blocks, inner pages and multi-column footer.
   Section bg/text/accent per block come from the engine scheme CSS
   (bc_render_scheme_css → --sch-* vars); this file handles everything else.
   ========================================================================== */

:root {
  --ink: #082d35; --deep: #062129; --pine: #375e50; --sand: #f3efe6; --paper: #fffdfa;
  --line: #d8dfd9; --coral: #c84d2b; --coral-dark: #a93f22; --coral-soft: #f9d8cb;
  --muted: #56625f; --cream: #fbf8f0;
  --shadow: 0 18px 55px rgba(6,33,41,.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ff9f7d; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.shell.narrow { width: min(780px, calc(100% - 40px)); }

/* ---------- Scheme sections ---------- */
.band { padding: 82px 0; color: var(--sch-text, var(--ink)); }
.section-tag { margin: 0 0 7px; color: var(--sch-accent, var(--coral)); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; font-size: .74rem; }
.section-title { font: clamp(2rem, 3.5vw, 3.1rem)/1.04 var(--serif); letter-spacing: -.045em; margin: 0; }
.band .lede { color: var(--sch-muted, var(--muted)); font-size: 1rem; max-width: 620px; margin: 16px 0 0; }
.band-head { margin-bottom: 34px; }

/* ---------- Buttons ---------- */
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--coral); color: #fff; min-height: 51px; padding: 13px 20px; border-radius: 4px; text-decoration: none; font-weight: 800; transition: .16s ease; position: relative; z-index: 1; }
.button:hover { background: var(--coral-dark); transform: translateY(-1px); }
.button svg { transition: transform .16s ease; }
.button:hover svg { transform: translateX(3px); }
.button-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.light .button-ghost:hover, .grey .button-ghost:hover, .cream .button-ghost:hover { background: rgba(8,45,53,.06); }

/* ---------- Top line + header ---------- */
.topline { color: #ecf5f1; background: var(--deep); font-size: .82rem; letter-spacing: .04em; }
.topline .shell { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 9px 0; }
.topline p { margin: 0; }
.topline a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.availability { display: flex; align-items: center; gap: 8px; }
.availability i { width: 8px; height: 8px; display: block; border-radius: 50%; background: #8bd4a9; box-shadow: 0 0 0 4px rgba(139,212,169,.12); }

.site-header { position: relative; z-index: 20; background: var(--deep); border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; }
body:has(main > .hero-top:first-child) .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255,255,255,.22); }
.site-nav { height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 11px; font-weight: 780; line-height: 1.05; letter-spacing: -.02em; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; padding: 5px; display: grid; gap: 3px; background: var(--coral); border-radius: 4px; flex: 0 0 auto; }
.brand-mark b { background: #fff7ec; display: block; }
.brand small { display: block; margin-top: 3px; font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #ff9f7d; text-decoration-thickness: 2px; }
.nav-links .nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 10px 15px; border-radius: 999px; white-space: nowrap; }
.nav-links .nav-cta:hover { background: #fff; color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; width: 46px; height: 42px; position: relative; color: #fff; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; content: ""; transition: .2s; }
.nav-toggle__bar { top: 20px; }
.nav-toggle__bar::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero / page head ---------- */
.hero-top { position: relative; isolation: isolate; color: #fff; background: var(--deep); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.page-head__bg { position: absolute; inset: 0; background: center/cover no-repeat; }
.page-head__bg picture, .page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero { min-height: 636px; }
.hero::before { background: linear-gradient(90deg, rgba(4,24,30,.92) 0%, rgba(4,24,30,.78) 39%, rgba(4,24,30,.28) 70%, rgba(4,24,30,.22) 100%); }
.hero-copy { padding: 164px 0 110px; }
.hero-copy > * { max-width: 670px; }
.hero-eyebrow { display: inline-flex; gap: 9px; align-items: center; border: 1px solid rgba(255,255,255,.3); background: rgba(6,33,41,.45); padding: 7px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-eyebrow > span:first-child { width: 7px; height: 7px; background: #a3dfbd; border-radius: 50%; }
.hero-top h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -.05em; margin: 20px 0; max-width: 700px; font-weight: 700; }
.hero-lede { font-size: 1.12rem; line-height: 1.58; max-width: 560px; color: #ebf0ed; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; gap: 10px 24px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; color: #edf4f0; font-size: .91rem; font-weight: 650; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: #a3dfbd; }

.page-head::before { background: linear-gradient(90deg, rgba(4,24,30,.94) 0%, rgba(4,24,30,.84) 50%, rgba(4,24,30,.55) 100%); }
.page-head:not(.page-head--photo) { background: radial-gradient(circle at 85% 20%, #164a52 0, var(--deep) 55%); }
.page-head__copy { padding: 150px 0 72px; }
.page-head h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); margin: 10px 0 18px; }
.page-head .section-tag { color: #ff9f7d; margin-top: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .82rem; color: #c8d8d2; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Estimator ---------- */
.calc-wrap { margin-top: -85px; position: relative; z-index: 3; }
.estimator { display: grid; grid-template-columns: 1.23fr .77fr; background: var(--paper); box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.calculator { padding: 38px 40px 35px; }
.calculator .section-tag { color: #b8461f; }
.calculator h2 { margin: 0; font: 2rem/1.05 var(--serif); letter-spacing: -.04em; }
.helper { margin: 7px 0 26px; color: var(--muted); font-size: .94rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
label { display: block; color: #253f43; font-size: .82rem; font-weight: 780; letter-spacing: .015em; }
select, input, textarea { width: 100%; margin-top: 7px; min-height: 48px; border: 1px solid #aebbb4; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 4px; outline: none; }
textarea { min-height: 90px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(200,77,43,.18); }
.material-label { margin: 22px 0 9px; color: #253f43; font-size: .82rem; font-weight: 780; }
.materials { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.material { border: 1px solid #c5cfca; border-radius: 5px; padding: 12px 8px; min-height: 76px; text-align: left; background: #fff; color: var(--ink); transition: 150ms ease; }
.material strong { display: block; font-size: .9rem; line-height: 1.1; }
.material small { display: block; font-size: .74rem; color: var(--muted); margin-top: 5px; }
.material:hover { border-color: var(--ink); }
.material.active { color: #fff; border-color: var(--ink); background: var(--ink); box-shadow: 0 7px 15px rgba(8,45,53,.16); }
.material.active small { color: #c7dfd4; }
.estimate-note { margin: 19px 0 0; padding-top: 16px; border-top: 1px solid #e1e6e0; color: #56625f; font-size: .8rem; }
.result { background: var(--ink); padding: 38px; color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.result::after { content: ""; position: absolute; right: -60px; bottom: -65px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.03), 0 0 0 76px rgba(255,255,255,.025); pointer-events: none; }
.result .section-tag { color: #ff9f7d; }
.result-title { margin: 0; font: 1.63rem/1.08 var(--serif); letter-spacing: -.04em; }
.range-label { color: #b9d2c7; font-weight: 740; font-size: .84rem; margin: 28px 0 7px; }
.price { margin: 0; letter-spacing: -.06em; font-family: var(--serif); font-size: clamp(2.5rem, 4.2vw, 4rem); font-weight: bold; line-height: 1; }
.price-suffix { color: #c1d4cb; margin: 9px 0 0; font-size: .9rem; }
.breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin: 30px 0; position: relative; z-index: 1; }
.breakdown div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 9px; }
.breakdown dt { color: #adc6bc; font-size: .74rem; margin-bottom: 2px; }
.breakdown dd { margin: 0; font-size: .92rem; font-weight: 700; }
.result .button { margin-top: auto; }
.result .disclaimer { color: #b5c7c0; margin: 13px 0 0; font-size: .74rem; line-height: 1.45; position: relative; z-index: 1; }
.calc-wrap + .band { padding-top: 75px; }

/* ---------- Benefits / features ---------- */
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; }
.benefits.cols-2 { grid-template-columns: repeat(2,1fr); }
.benefits.cols-4 { grid-template-columns: repeat(4,1fr); gap: 28px; }
.benefit { padding-left: 54px; position: relative; }
.benefit .icon { position: absolute; left: 0; top: 1px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #b8461f; background: var(--coral-soft); }
.benefit h3 { margin: 0 0 7px; font-size: 1.02rem; letter-spacing: -.02em; }
.benefit p { color: var(--sch-muted, var(--muted)); font-size: .92rem; margin: 0; }
.benefit p a { color: inherit; }
.features-band:not(:has(.band-head)) { padding: 60px 0; }

/* ---------- Material cards ---------- */
.guide-header { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 27px; }
.guide-header > p { max-width: 380px; color: var(--sch-muted, var(--muted)); font-size: .95rem; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.card { background: var(--paper); color: var(--ink); padding: 25px 21px; min-height: 250px; border-top: 4px solid var(--ink); box-shadow: 0 5px 17px rgba(8,45,53,.06); display: flex; flex-direction: column; }
.card:nth-child(2) { border-color: #78846b; } .card:nth-child(3) { border-color: #c47745; } .card:nth-child(4) { border-color: var(--coral); }
.card small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.card h3 { margin: 10px 0 13px; font: 1.48rem/1 var(--serif); letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: .88rem; margin: 0; }
.card .from { color: var(--ink); font-size: .88rem; font-weight: 800; margin-top: 21px; }
.card-link { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: #b8461f; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border-radius: 8px; box-shadow: 0 5px 17px rgba(8,45,53,.07); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); min-width: 640px; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.compare-table tbody th { font-family: var(--serif); font-size: 1.08rem; }
.compare-table tbody tr:nth-child(even) { background: #f8f5ee; }
.table-note { font-size: .82rem; color: var(--sch-muted, var(--muted)); margin: 14px 0 0; }

/* ---------- Content + fact card ---------- */
.split { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.fact-card dd, .fact-card__areas { overflow-wrap: anywhere; }
.prose-body .section-title { margin-bottom: 22px; }
.rich { font-size: 1.02rem; line-height: 1.7; }
.rich h2 { font: clamp(1.7rem, 2.8vw, 2.3rem)/1.1 var(--serif); letter-spacing: -.035em; margin: 1.6em 0 .55em; }
.rich h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; letter-spacing: -.01em; }
.rich > :first-child { margin-top: 0; }
.rich p, .rich ul, .rich ol { margin: 0 0 1.05em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li { margin-bottom: .4em; }
.rich li::marker { color: #b8461f; }
.rich a { color: #b8461f; font-weight: 650; }
.dark .rich a, .charcoal .rich a, .gold-tint .rich a { color: #ffb399; }
.rich blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--coral); font-family: var(--serif); font-size: 1.2rem; }
.rich table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .92rem; background: var(--paper); }
.rich th, .rich td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.rich thead th { background: var(--ink); color: #fff; }
.rich .note { font-size: .88rem; color: var(--sch-muted, var(--muted)); padding: 14px 16px; background: rgba(8,45,53,.05); border-radius: 6px; }
.fact-card { position: sticky; top: 24px; background: var(--ink); color: #fff; border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.fact-card__title { font: 1.4rem/1.1 var(--serif); letter-spacing: -.03em; margin: 0 0 16px; }
.fact-card dl { margin: 0 0 18px; }
.fact-card dl div { border-top: 1px solid rgba(255,255,255,.16); padding: 10px 0; }
.fact-card dt { color: #adc6bc; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fact-card dd { margin: 2px 0 0; font-weight: 700; }
.fact-card__areas { font-size: .86rem; color: #c8d8d2; margin: 0 0 20px; }
.fact-card__areas strong { color: #fff; }
.fact-card .button { width: 100%; }

/* ---------- Areas ---------- */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.area-grid li { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(8,45,53,.06); }
.area-grid a, .area-name { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.area-grid a svg, .area-name svg { color: #b8461f; flex: 0 0 auto; }
.area-grid a:hover span { text-decoration: underline; }
.area-grid small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; padding-left: 25px; }

/* ---------- Lead form ---------- */
.lead-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: 70px; align-items: start; }
.lead-copy .lede { max-width: 410px; }
.process { display: grid; gap: 17px; margin: 32px 0 0; padding: 0; list-style: none; }
.process li { display: flex; gap: 13px; align-items: flex-start; }
.process p { margin: 0; }
.step { flex: 0 0 auto; color: var(--pine); background: #d9ecdf; font-size: .75rem; height: 23px; width: 23px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; }
.process b { display: block; font-size: .95rem; }
.process span:not(.step) { display: block; color: var(--sch-muted, #deede5); font-size: .86rem; margin-top: 2px; }
.lead-form { background: var(--paper); padding: 31px; color: var(--ink); border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.lead-form h3 { margin: 0; font: 1.72rem/1 var(--serif); letter-spacing: -.035em; }
.lead-form__lede { color: var(--muted); font-size: .9rem; margin: 9px 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: span 2; }
.optional { font-weight: 500; color: var(--muted); }
.lead-form .button { width: 100%; margin-top: 21px; }
.form-fine { font-size: .78rem; line-height: 1.45; color: #56625f; margin: 12px 0 0; }
.form-notice { padding: 12px 14px; border-radius: 6px; font-size: .9rem; }
.form-notice--ok { background: rgba(46,160,67,.12); color: #1a6b2e; }
.form-notice--err { background: rgba(200,60,60,.12); color: #9b1c1c; }

/* ---------- FAQ ---------- */
.questions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 82px; }
details { border-top: 1px solid #cbd4ce; padding: 17px 0; }
details:last-child { border-bottom: 1px solid #cbd4ce; }
summary { cursor: pointer; list-style: none; padding-right: 32px; position: relative; }
summary h3 { font-size: 1rem; font-weight: 760; margin: 0; letter-spacing: -.01em; display: inline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -7px; color: var(--sch-accent, var(--coral)); font-weight: 400; font-size: 1.65rem; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; max-width: 700px; font-size: .92rem; color: var(--sch-muted, var(--muted)); }
details p a { color: var(--sch-accent, #b8461f); font-weight: 650; }

/* ---------- CTA band ---------- */
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #c8d8d2; padding: 60px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-about p { margin: 16px 0; max-width: 340px; }
.footer-nap { font-style: normal; display: grid; gap: 8px; }
.footer-nap a, .footer-nap span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-nap a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #fff; }
.footer-col__title { color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #c8d8d2; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
/* Accordion toggle (created by site.js). Desktop: looks like a plain heading. */
.footer-acc { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: default; }
.footer-acc svg { display: none; }
.footer-col.is-acc { border-top: 1px solid rgba(255,255,255,.12); }
.footer-col.is-acc .footer-col__title { margin: 0; }
.footer-col.is-acc .footer-acc { cursor: pointer; min-height: 52px; box-sizing: border-box; padding: 4px 2px; }
.footer-col.is-acc .footer-acc:focus-visible { outline: 3px solid #ff9f7d; outline-offset: 2px; }
.footer-col.is-acc .footer-acc svg { display: block; transition: transform .2s ease; color: #ff9f7d; }
.footer-col.is-acc.is-open .footer-acc svg { transform: rotate(180deg); }
.footer-col.is-acc ul { display: none; padding: 0 2px 12px; }
.footer-col.is-acc.is-open ul { display: grid; animation: footer-acc-in .2s ease; }
@keyframes footer-acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; }
.brand--footer .brand__text { font-size: 1.05rem; }

/* ---------- Engine form message + admin helpers ---------- */
.bc-form-msg { font-size: .9rem; }
.admin-panel { margin-top: 14px; padding: 14px; background: #fff8db; border: 1px dashed #d4b43c; border-radius: 6px; font-size: 13px; color: #333; }
.admin-panel table { margin-top: 8px; border-collapse: collapse; }
.admin-panel th, .admin-panel td { border: 1px solid #e3d18a; padding: 4px 8px; text-align: left; }
.admin-hint { display: block; font-size: 11px; color: #8a6d00; }
.hero__media.bc-bg-host { position: absolute; }

/* ---------- Editor format classes (engine rich toolbar) ---------- */
.bc-lh-xtight,[data-bc-fmt~="bc-lh-xtight"]{line-height:1.0 !important}
.bc-lh-tighter,[data-bc-fmt~="bc-lh-tighter"]{line-height:1.1 !important}
.bc-lh-tight,[data-bc-fmt~="bc-lh-tight"]{line-height:1.25 !important}
.bc-lh-snug,[data-bc-fmt~="bc-lh-snug"]{line-height:1.4 !important}
.bc-lh-relaxed,[data-bc-fmt~="bc-lh-relaxed"]{line-height:1.8 !important}
.bc-lh-loose,[data-bc-fmt~="bc-lh-loose"]{line-height:2.1 !important}
.bc-ta-center,[data-bc-fmt~="bc-ta-center"]{text-align:center !important}
.bc-ta-right,[data-bc-fmt~="bc-ta-right"]{text-align:right !important}
.bc-ta-justify,[data-bc-fmt~="bc-ta-justify"]{text-align:justify !important}
.bc-rt-figure { margin: 28px 0; max-width: 100%; }
.bc-rt-figure img { display: block; height: auto; border-radius: 6px; }
.bc-rt-figure figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.bc-rt-figure img.bc-rt-img-s { width: 30%; } .bc-rt-figure img.bc-rt-img-m { width: 55%; } .bc-rt-figure img.bc-rt-img-l { width: 80%; } .bc-rt-figure img.bc-rt-img-full { width: 100%; }
.bc-rt-fig-c { margin-left: auto; margin-right: auto; text-align: center; }
.bc-rt-fig-fl { float: left; margin: 6px 28px 18px 0; max-width: 50%; }
.bc-rt-fig-fr { float: right; margin: 6px 0 18px 28px; max-width: 50%; }

/* ---------- Content photo (service-body) ---------- */
.body-photo { position: relative; margin: 0 0 28px; border-radius: 8px; overflow: hidden; background: #d9dfdb; aspect-ratio: 16 / 9; }
.body-photo .page-head__bg { position: absolute; inset: 0; }
.body-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 10px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(4,24,30,.75)); }
.body-photo figcaption:empty { display: none; }
.page-head--photo { min-height: 480px; display: flex; align-items: flex-end; }
.page-head--photo > .shell { width: min(1180px, calc(100% - 40px)); }
.page-head--photo::before { background: linear-gradient(90deg, rgba(4,24,30,.92) 0%, rgba(4,24,30,.74) 42%, rgba(4,24,30,.28) 78%, rgba(4,24,30,.2) 100%), linear-gradient(0deg, rgba(4,24,30,.45), transparent 45%); }

/* ---------- Material swatches ---------- */
.card-swatch { margin: -25px -21px 18px; height: 96px; overflow: hidden; border-bottom: 1px solid rgba(8,45,53,.08); }
.swatch { display: block; width: 100%; height: 100%; }

/* ---------- Cost chart ---------- */
.chart { margin: 0; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 26px 28px 20px; box-shadow: 0 5px 17px rgba(8,45,53,.07); }
.chart-head, .chart-row, .chart-axis { display: grid; grid-template-columns: 150px 1fr 130px; gap: 18px; align-items: center; }
.cost-chart .chart:not(:has(.chart-total)) :is(.chart-head, .chart-row, .chart-axis) { grid-template-columns: 150px 1fr; }
.chart-head { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chart-head span:last-child { text-align: right; }
.chart-rows { list-style: none; margin: 0; padding: 0; }
.chart-row { padding: 16px 0; border-bottom: 1px solid #edf0ed; transition: opacity .2s; }
.chart-row.is-muted { opacity: .45; }
.chart-label { font-family: var(--serif); font-size: 1.1rem; }
.chart-row.is-hl .chart-label { font-weight: 700; }
.chart-track { position: relative; height: 30px; background: repeating-linear-gradient(90deg, #eef1ee 0 1px, transparent 1px 16.666%); border-radius: 4px; }
.chart-bar { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: linear-gradient(90deg, #6f8f82, var(--pine)); }
.chart-row:nth-child(2) .chart-bar { background: linear-gradient(90deg, #8e9a7f, #5f705e); }
.chart-row:nth-child(3) .chart-bar { background: linear-gradient(90deg, #d19a6a, #a8703f); }
.chart-row:nth-child(4) .chart-bar { background: linear-gradient(90deg, #e08a64, var(--coral)); }
.chart-row.is-hl .chart-bar { box-shadow: 0 0 0 3px rgba(200,77,43,.25); }
.chart-val { position: absolute; top: 50%; transform: translateY(-50%); font: 700 .78rem var(--sans); color: var(--ink); white-space: nowrap; }
.chart-val--lo { right: calc(100% + 6px); }
.chart-val--hi { left: calc(100% + 6px); }
.chart-total { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-axis { padding-top: 8px; }
.chart-ticks { position: relative; height: 18px; font-size: .72rem; color: var(--muted); }
.chart-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-variant-numeric: tabular-nums; }
.chart figcaption { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* ---------- Wall diagram ---------- */
.wd-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.wd-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.wd-legend li { display: flex; gap: 13px; align-items: flex-start; }
.wd-legend p { margin: 0; }
.wd-legend b { display: block; font-size: .96rem; }
.wd-legend span:not(.wd-badge) { display: block; font-size: .88rem; color: var(--sch-muted, var(--muted)); }
.wd-badge, .wd-num circle { flex: 0 0 auto; }
.wd-badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 850; color: #fff; background: var(--coral); }
.wd-figure { margin: 0; }
.wd-figure svg { width: 100%; height: auto; display: block; }
.wd-figure figcaption { font-size: .8rem; color: var(--sch-muted, var(--muted)); margin-top: 8px; text-align: center; }
.wd-studs polygon { fill: #d9b98f; stroke: #a8865e; stroke-width: 1; }
.wd-sheath polygon { fill: #cdb68d; stroke: #9f8a63; stroke-width: 1; }
.wd-wrb polygon { fill: #e9eef0; stroke: #9fb0b7; stroke-width: 1; }
.wd-wrb-text { font: 800 22px var(--sans); fill: #9fb0b7; letter-spacing: .2em; }
.wd-furring polygon { fill: #b98a5c; stroke: #8e653e; stroke-width: 1; }
.wd-siding polygon { fill: #7d8f7c; stroke: #5f705e; stroke-width: 1; }
.wd-line { stroke: #4d5c4c; stroke-width: 1.5; }
.wd-trim polygon { fill: #fffdfa; stroke: #b3bcb8; stroke-width: 1.2; }
.wd-trim .wd-flash { fill: #9aa7ad; stroke: #7d8a90; }
.wd-seam { stroke: #9f8a63; stroke-width: 1; stroke-dasharray: 3 3; }
.wd-ground { stroke: var(--line); stroke-width: 1; }
.wd-num circle { fill: var(--coral); }
.wd-num text { font: 800 12px var(--sans); fill: #fff; }

/* ---------- Area map ---------- */
.areas-with-map { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 28px; align-items: start; }
.areas-with-map .area-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.map-wrap { margin: 0; background: var(--paper); border-radius: 8px; padding: 12px; box-shadow: 0 4px 14px rgba(8,45,53,.06); }
.area-map { display: block; width: 100%; height: auto; }
.map-wrap figcaption { font-size: .76rem; color: var(--muted); padding: 8px 4px 0; }
.map-land { fill: #f1ede3; }
.map-water { fill: #cfe0e2; stroke: #b3cdd1; stroke-width: 1; }
.map-water-label { font: italic 13px var(--serif); fill: #5f8a90; }
.map-water-label--sm { font-size: 10px; }
.map-road { fill: none; stroke: #d8cfbd; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1 0; }
.map-halo { fill: rgba(200,77,43,.12); }
.map-dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.map-pin.is-on .map-dot { fill: var(--coral); }
.map-pin.is-on .map-halo { fill: rgba(200,77,43,.22); }
.map-pin:not(.is-on) { opacity: .75; }
.map-label { font: 700 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #f1ede3; stroke-width: 4px; stroke-linejoin: round; }
.area-map a:hover .map-label, .area-map a:focus .map-label { fill: #b8461f; text-decoration: underline; }
.map-scale rect { fill: var(--ink); }
.map-scale text, .map-north text { font: 700 10px var(--sans); fill: var(--ink); }
.map-north path { fill: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; }
.gallery--three { grid-template-columns: repeat(3, 1fr); }
.gallery--four { grid-template-columns: repeat(4, 1fr); }
.gallery--mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
.gallery--mosaic .is-big { grid-column: span 2; grid-row: span 2; }
.gallery-item { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #d9dfdb; aspect-ratio: 4 / 3; }
.gallery--mosaic .gallery-item { aspect-ratio: auto; }
.gallery-item .page-head__bg { position: absolute; inset: 0; }
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; font-size: .84rem; font-weight: 650; color: #fff; background: linear-gradient(transparent, rgba(4,24,30,.8)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .86rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); padding: 10px 20px 22px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; border-radius: 4px; background: var(--coral); border-color: var(--coral); }
  .site-header .shell { position: static; }
  .site-header { position: relative; }
}
@media (max-width: 850px) {
  .hero-copy { padding-top: 150px; }
  .estimator { grid-template-columns: 1fr; }
  .result { min-height: 375px; }
  .cards, .benefits.cols-4 { grid-template-columns: 1fr 1fr; }
  .lead-layout, .questions, .split { grid-template-columns: 1fr; gap: 42px; }
  .benefits { gap: 24px; }
  .fact-card { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .wd-layout, .areas-with-map { grid-template-columns: 1fr; gap: 32px; }
  .map-wrap { max-width: 380px; }
  .chart-head, .chart-row, .chart-axis { grid-template-columns: 110px 1fr 100px; gap: 12px; }
  .gallery--four { grid-template-columns: repeat(2, 1fr); }
  .gallery--mosaic { grid-auto-rows: 170px; }
}
@media (max-width: 560px) {
  .shell, .shell.narrow { width: min(100% - 28px, 1180px); }
  .topline .shell { justify-content: center; }
  .topline .availability { display: none; }
  .site-nav { height: 69px; }
  .hero { min-height: 590px; }
  .hero .page-head__bg img { object-position: 61% center; }
  .hero-copy { padding: 125px 0 70px; }
  .page-head__copy { padding: 120px 0 52px; }
  .hero-lede { font-size: 1rem; }
  .hero-meta { gap: 10px 13px; font-size: .84rem; }
  .calc-wrap { margin-top: -35px; }
  .calculator, .result { padding: 27px 20px; }
  .field-grid, .form-grid { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .material { min-height: 70px; }
  .form-grid .wide { grid-column: auto; }
  .benefits, .benefits.cols-2, .benefits.cols-4, .cards { grid-template-columns: 1fr; }
  .band { padding: 58px 0; }
  .guide-header { display: block; }
  .guide-header > p { margin-top: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { flex-direction: column; }
  .price { font-size: 3.1rem; }
  .chart { padding: 18px 14px; }
  .gallery--three, .gallery--mosaic { grid-template-columns: 1fr 1fr; }
  .gallery--three .gallery-item:first-child { grid-column: span 2; }
  .gallery--mosaic { grid-auto-rows: 140px; }
  .chart-head, .chart-row, .chart-axis { grid-template-columns: 76px 1fr 78px; gap: 8px; }
  .chart-label { font-size: .92rem; }
  .chart-total { font-size: .8rem; }
  .chart-val { font-size: .7rem; }
  .lead-form { padding: 24px 18px; }
  .cta-actions, .cta-actions .button { width: 100%; }
}
/* ---------- Touch / mobile usability ----------
   Form fields at 16px (iOS Safari zooms into anything smaller), standalone
   links and controls at ≥ 44px touch height, labels ≥ 12px, and a sticky
   call-to-action bar on phones. */
input, select, textarea { font-size: 16px; }
.mobile-cta { display: none; }
@media (max-width: 850px), (pointer: coarse) {
  .breadcrumbs a { display: inline-block; padding: 12px 0; }
  .breadcrumbs ol { row-gap: 0; }
  details { padding: 6px 0; }
  summary { padding-block: 11px; min-height: 44px; }
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-nap a { display: inline-flex; align-items: center; min-height: 44px; }
  .topline a { padding-block: 12px; }
  .topline .shell { padding-block: 0; }
  .card-link { min-height: 44px; padding-top: 8px; }
  .area-grid a { min-height: 44px; }
  .brand--footer { min-height: 44px; }
  .nav-toggle { width: 48px; height: 48px; }
  .nav-toggle__bar { top: 23px; }
}
@media (max-width: 850px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 28px; }
  .footer-about { padding-bottom: 22px; }
  .section-tag { font-size: .8rem; }
  .brand small { font-size: .75rem; }
  .material small, .card small, .breakdown dt, .fact-card dt, .chart-head, .chart-ticks, .map-wrap figcaption, .table-note, .form-fine { font-size: .8rem; }
  .chart-val { font-size: .75rem; }
  .result .disclaimer, .estimate-note { font-size: .8rem; }
  .compare-table { font-size: .95rem; }

  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(6,33,41,.96);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18); transition: transform .25s ease; }
  .mobile-cta a { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 6px; font-weight: 800; text-decoration: none; font-size: .95rem; }
  .mobile-cta .mobile-cta__primary { background: var(--coral); color: #fff; }
  .mobile-cta .mobile-cta__secondary { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
  .mobile-cta.is-hidden, .menu-open .mobile-cta { transform: translateY(110%); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
