/* Heritage Crest - town pages: "Recent work near X" + the area map flown in to the town (tools/area-map/build_town_pages.py), 27 Oct.
   Only our own projects, town-level only (no addresses, no Google). Gold #ac8d56, Urbanist. */
.hcb-near { --gold: #ac8d56; padding: 96px 24px 40px; background: #fff; font-family: 'Urbanist', sans-serif; }
.hcb-near-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.hcb-near-eyebrow { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; }
.hcb-near h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.2; color: #141414; margin: 0 0 12px; }
.hcb-near-head p { font-size: 16px; line-height: 1.65; color: #5a5a5a; margin: 0; }
.hcb-near-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hcb-near-tile { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #111; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; }
.hcb-near-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.22, .61, .36, 1); }
.hcb-near-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .12) 48%, transparent 70%); }
.hcb-near-tile .tx { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.hcb-near-tile .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #d9c49b; margin-bottom: 6px; }
.hcb-near-tile .t { display: block; font-size: 20px; line-height: 1.25; font-weight: 500; color: #fff; }
.hcb-near-tile .mi { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.hcb-near-tile .mi::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hcb-near-tile:hover img, .hcb-near-tile:focus-visible img { transform: scale(1.05); }
.hcb-near-tile:hover .t { color: #fff; }
.hcb-near-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hcb-near-tile .hfx-light { z-index: 1; }

.hcb-townmap { padding: 56px 24px 96px; background: #fff; }
.hcb-townmap-head { max-width: 760px; margin: 0 auto 26px; text-align: center; font-family: 'Urbanist', sans-serif; }
.hcb-townmap-head h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; color: #141414; margin: 0 0 8px; }
.hcb-townmap-head p { font-size: 15px; line-height: 1.6; color: #5a5a5a; margin: 0; }
.hcb-townmap-head a { color: #141414; border-bottom: 1px solid rgba(172, 141, 86, .6); text-decoration: none; }
.hcb-townmap-head a:hover { color: #ac8d56; }
.hcb-townmap-wrap { max-width: 1180px; margin: 0 auto; }

@media (max-width: 991px) {
  .hcb-near-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
  .hcb-near { padding: 64px 16px 24px; }
  .hcb-near-head { margin-bottom: 26px; }
  .hcb-near-grid { grid-template-columns: minmax(0, 1fr); }
  .hcb-near-tile { aspect-ratio: 4 / 3; }
  .hcb-townmap { padding: 36px 16px 64px; }
}
@media (prefers-reduced-motion: reduce) { .hcb-near-tile img { transition: none; } .hcb-near-tile:hover img { transform: none; } }

/* 4 Nov: each town's own copy (tools/seo/town_copy.py): links inside the text, and the town FAQ block */
.hcb-copy a { color: inherit; text-decoration: underline; text-decoration-color: rgba(172, 141, 86, .85); text-underline-offset: 3px; }
.hcb-copy a:hover { color: #ac8d56; }
/* the template sets town-page text in capitals (style.css .portfoliopage .gallery-text2 p, !important); fine for a line or two,
   hard to read at paragraph length, so each town's own copy reads in sentence case */
.portfoliopage .gallery-text2.hcb-copy p { text-transform: none !important; letter-spacing: .2px; }
.hcb-copy .list1 a { text-decoration: none; border-bottom: 1px solid rgba(172, 141, 86, .6); }
.hcb-town-faqs { --gold: #ac8d56; padding: 24px 24px 96px; background: #fff; font-family: 'Urbanist', sans-serif; }
.hcb-town-faqs-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.hcb-town-faqs h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.2; color: #141414; margin: 0; }
.hcb-town-faq { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hcb-town-faq div { background: #f6f3ee; border-top: 2px solid var(--gold); border-radius: 4px; padding: 24px 24px 26px; }
.hcb-town-faq dt { font-size: 18px; font-weight: 600; line-height: 1.4; color: #141414; margin: 0 0 10px; }
.hcb-town-faq dd { font-size: 15.5px; line-height: 1.7; color: #4a4a4a; margin: 0; }
.hcb-town-faq dd a { color: #141414; text-decoration: underline; text-decoration-color: rgba(172, 141, 86, .85); text-underline-offset: 3px; }
@media (max-width: 991px) { .hcb-town-faq { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
@media (max-width: 600px) { .hcb-town-faqs { padding: 8px 16px 64px; } }
