/* bamrg.com inner pages, direction C "Warm New England". Loads after site.css and theme.css.
   Restyles the existing site.css components in place; no markup or text changes. */

/* ---------- page frame ---------- */
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1 { font-weight: 700; letter-spacing: -.03em; }
h2, h3 { font-weight: 700; }
.section--paper { background: var(--alt); }
.band-dark { background: var(--charcoal); }
.lede { color: var(--muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
img { background: var(--alt); border-radius: 0; }

.crumbs { padding-top: 1.5rem; font-size: .9rem; line-height: 1.45; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.crumbs li { display: flex; align-items: center; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.crumbs a { display: inline; padding: 0; margin: 0; color: var(--muted); text-decoration: none; font-size: inherit; line-height: inherit; font-weight: 400; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current="page"], .crumbs span { display: inline; margin: 0; padding: 0; font-size: inherit; line-height: inherit; font-weight: 400; }
.crumbs li + li::before { content: "/"; margin-inline: .4rem; color: var(--line); font-size: inherit; line-height: inherit; }
.page-head { padding-top: 1.75rem; padding-bottom: 2.75rem; border-bottom: 0; }
.page-head h1 { max-width: 22ch; }
.updated { color: var(--muted); }

/* ---------- cards: callouts, data and boxed content ---------- */
.quickread { background: var(--card); border-left: 5px solid var(--red); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 1.5rem 1.75rem; }
.cta-box { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.25rem); }
.data-block, .town-aside .facts { background: var(--card); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 1.5rem 1.75rem; }
.town-aside .facts { border-top: 4px solid var(--red); }
.author-box { background: var(--card); border-top: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 1.5rem 1.75rem; }
.disclaimer { border-top-color: var(--line); }
.faq h3 { margin-top: 2rem; }
.answer { color: var(--ink); }
.band-red { border-radius: var(--radius); }

/* ---------- tables ---------- */
.table-wrap { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: .5rem 1.25rem 1rem; }
caption { padding-top: .75rem; }
th, td { border-bottom-color: var(--line); }
thead th { border-bottom: 2px solid var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- video ---------- */
.facade { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--charcoal); }
.facade img { transition: transform .4s; }
.facade:hover img { transform: scale(1.03); }
.facade__play, .facade__more { border-radius: 999px; padding: .6rem 1.1rem; }
.video iframe { border-radius: var(--radius); }
.video figcaption { color: var(--muted); }
.video-list .facade { border-radius: var(--radius-sm); }
.video-list .meta { color: var(--muted); }
details.transcript { background: var(--card); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: .25rem 1.5rem; }
details.transcript summary { min-height: 52px; }
details.transcript[open] { padding-bottom: 1.25rem; }

/* ---------- town pages ---------- */
.subnav { top: var(--header-h); background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav a:not(.btn) { color: var(--ink); }
.subnav .btn { min-height: 44px; }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 4rem); }
.town-aside { top: calc(var(--header-h) + 4.5rem); }
.town-photo img { border-radius: var(--radius); }
.photo-split > img { border-radius: var(--radius); }
.meet img { border-radius: var(--radius-sm); }
.region-label { color: var(--red); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

.town-index { display: grid; gap: 1.5rem; border-top: 0; }
.town-index > li { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.town-index img { border-radius: var(--radius-sm); }
.town-index h3 a { color: var(--ink); }
.town-index .villages { color: var(--red); font-weight: 700; font-size: .9rem; }

.guide-list { display: grid; gap: 1rem; border-top: 0; }
.guide-list > li { position: relative; background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem 3.5rem 1.5rem 1.75rem; transition: transform .15s, box-shadow .15s; }
.guide-list > li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-list > li::after { content: "\2192"; position: absolute; right: 1.5rem; top: 1.5rem; font-weight: 700; color: var(--red); }
.guide-list h3 a { color: var(--ink); }
.guide-list h3 a:hover { color: var(--red); text-decoration: none; }
.guide-list h3 a::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.reviews { gap: 1.25rem; }
.review { height: 100%; background: var(--card); border-top: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem; }
.review blockquote { font-size: 1.0625rem; }
.review figcaption { color: var(--ink); font-style: normal; font-weight: 700; }

.town-groups > div { background: var(--card); border-radius: var(--radius-sm); padding: 1.5rem; box-shadow: 0 2px 10px rgba(57, 58, 64, .06); }
.town-groups h3 a { color: var(--red); }

/* ---------- buy / sell timeline ---------- */
.timeline { border-top: 0; display: grid; gap: .75rem; }
.timeline > li { background: var(--card); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 1.25rem 1.5rem; }
.timeline > li::before { color: var(--red); font-weight: 800; }
.timeline h3, .article-body .timeline h3 { font-weight: 700; letter-spacing: -.015em; }
.timeline__note { font-style: normal; color: var(--muted); }

/* ---------- forms ---------- */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea { background: var(--card); border: 1px solid #CFC6B6; border-radius: 12px; padding: .7rem .9rem; min-height: 48px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(180, 1, 1, .35); outline-offset: 1px; border-color: var(--red); }
.stepform .choice, .consult .choice { border-radius: 999px; background: var(--card); }
.form .btn, .step__nav .btn { font-weight: 700; }

/* ---------- contact map ---------- */
.map-embed { border-top: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- home value flow (no site header or footer on these pages) ---------- */
.hv-head { background: rgba(251, 248, 243, .94); border-bottom-color: var(--line); }
.hv-page h1, .step__h, .hv-more__h { font-weight: 300; letter-spacing: -.02em; }
.hv-lede, .step__lede { font-style: normal; }
.stepbar { background: var(--bg); }
.hv-more { background: var(--alt); border-top: 0; }
.hv-foot { background: var(--bg); border-top-color: var(--line); }

/* /consult/ has its own scoped styles; let the page background show through */
body .consult { background: transparent; }
