/* Freedom Insulation website - laid out like the old site (website/brief/screenshots, look.json): dark navy, light text,
   Josefin Sans headings, Karla text, white and teal rounded buttons, a floating header. Phone first. Words never break in
   the middle (overflow-wrap: break-word - never "anywhere"). */
@font-face { font-family: 'Josefin Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/josefin-sans-600-latin.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 400 700; font-style: normal; font-display: swap; src: url(/fonts/karla-latin.woff2) format('woff2'); }
:root {
  --bg: #1D2231; --bar: #171B28; --card: #2C3142; --line: rgba(251, 252, 253, .22);
  --text: #FBFCFD; --teal: #73939C; --btn: #F8FBFD; --btn-text: #1E2028;
  --pad: clamp(20px, 2.4vw, 36px); --radius: 12px; --head-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.5 Karla, ui-sans-serif, system-ui, sans-serif; overflow-wrap: break-word; }
@media (min-width: 900px) { body { font-size: 20px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Josefin Sans', ui-sans-serif, system-ui, sans-serif; font-weight: 600; line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.3vw, 1.75rem); font-family: Karla, ui-sans-serif, sans-serif; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .8rem; font-weight: 700; margin: 0 0 1.1em; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--btn); color: var(--btn-text); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid #9CC3CC; outline-offset: 2px; }

/* buttons: white with dark text (main), the old site's teal (alt), see-through with a border (outline) */
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.4em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); background: var(--btn); color: var(--btn-text);
  font: 700 .95rem/1.25 Karla, ui-sans-serif, sans-serif; text-decoration: none; text-align: center; border: 1px solid var(--btn); transition: filter .12s, transform .12s; }
.btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.btn-alt { background: var(--teal); border-color: var(--teal); color: var(--btn-text); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
@media (max-width: 599px) { .btns .btn { flex: 1 1 100%; } } /* phones: a set of buttons stacks, all the same width */

/* header: a floating rounded bar over the page (the hero photo shows behind it) */
.top { position: sticky; top: 0; z-index: 30; height: var(--head-h); margin-bottom: calc(-1 * var(--head-h)); padding: 0 var(--pad); }
.top-bar { max-width: 1460px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 20px; background: var(--bar); border-radius: 0 0 18px 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.logo { display: flex; align-items: center; min-height: 48px; flex: none; } .logo img { width: 128px; height: auto; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: 1rem; padding: 10px 0; } .nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-phone { display: none; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-phone svg, .sticky-cta svg { width: 18px; height: 18px; flex: none; }
.top-est { min-height: 44px; padding: 10px 18px; white-space: nowrap; }
.menu { position: relative; flex: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--text); }
.menu nav { position: absolute; right: -4px; top: 52px; width: min(320px, calc(100vw - 2 * var(--pad))); background: var(--bar); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.menu nav a:not(.btn) { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; } .menu nav a:not(.btn):hover { background: var(--card); }
.menu nav .btn { margin-top: 6px; }
@media (min-width: 420px) { .logo img { width: 150px; } }
@media (min-width: 600px) { .top-phone { display: inline-flex; } }
@media (min-width: 1100px) { .nav { display: flex; gap: 22px; } .menu { display: none; } .top-cta { margin-left: 8px; } }
/* phones + small tablets: Call Now + Free Estimate always at the bottom of the screen (Corey, Nov 19); the page gets room for it */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--bar); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .3); }
.sticky-cta .btn { gap: 8px; min-height: 48px; padding: 10px 12px; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); } /* (a field scrolled to - focus, a tap, a #link - stays above the bar) */
@media (min-width: 900px) { .sticky-cta { display: none; } body { padding-bottom: 0; } html { scroll-padding-bottom: 0; } }
/* the call / estimate pair, the trust line, the short estimate form */
.cta-pair { margin-top: 1.1em; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: .8em 0 0; font-size: .95rem; font-weight: 700; }
.trust a { color: var(--text); } .trust .stars { color: #F4C542; letter-spacing: 1px; }
.trust span:not(.stars)::before { content: '✓ '; color: #8FD3A6; }
.hero-text .trust, .hero-split-text .trust { margin-bottom: .6em; }
.quick-in { display: grid; gap: 28px; align-items: start; }
.quick-text h2 { margin-top: 0; } .quick-call { font-size: 1rem; } .quick-call a { font-weight: 700; }
.lead-form-short { margin-top: 0; gap: 14px; background: var(--card); border-radius: 16px; padding: clamp(18px, 3vw, 28px); max-width: none; }
.lead-form-short textarea { min-height: 90px; }
@media (min-width: 640px) { .lead-form-short { grid-template-columns: 1fr 1fr; } .lead-form-short > :is(.field:has(textarea), .cf-turnstile, .form-note, button, .form-msg, .hp) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .quick-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; } }
.quick-post .quick-in { max-width: 1100px; margin: 0 auto; }
.post-cta { margin: 1.4em 0; } .post-cta .cta-pair { margin-top: 0; }
.post-license { font-size: .95rem; opacity: .9; margin-top: -.4em; }
.cta-strip { margin: 2em 0; padding: 20px 22px; border-radius: var(--radius); background: var(--card); border-left: 4px solid var(--teal); }
.cta-strip p { margin: 0; } .cta-strip .cta-pair { margin-top: .9em; }
.readmore h2 { margin-top: 0; }

/* hero: a full-width job photo with rounded bottom corners; text on the left, buttons lower right on a PC */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; overflow: hidden; border-radius: 0 0 22px 22px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 27, 40, .45), rgba(23, 27, 40, .62) 60%, rgba(23, 27, 40, .7)); }
.hero-in { position: relative; width: 100%; padding-top: calc(var(--head-h) + 70px); padding-bottom: 60px; display: grid; gap: 8px; align-items: end; }
.hero-text p { max-width: 34em; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 80px; } .hero-text { max-width: 640px; } .hero-btns { margin: 0; justify-content: flex-end; } }

/* sections */
.sec { padding: clamp(64px, 8vw, 120px) 0; }
.sec-line { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 clamp(64px, 8vw, 110px); } /* (the old site's line between sections) */
.sec-head { display: grid; gap: 4px 48px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin: 0; }
.sec-intro p { margin: .6em 0 0; }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } .sec-intro { padding-top: 1.6em; } .sec-intro .btns { justify-content: flex-end; } }

/* service rows: photo on the left, text on the right (stacked on a phone) */
.rows { display: grid; gap: 36px; }
.row { display: grid; gap: 22px; }
.row-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.row-text h3 { margin-top: .2em; } .row-text p { margin: 0; }
.row-text a { text-underline-offset: 3px; }
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; align-items: start; } }

/* reviews: a sideways-sliding row of cards with arrow buttons */
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 560px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .slides { grid-auto-columns: calc((100% - 20px) * .58); } }
.review { margin: 0; scroll-snap-align: start; background: var(--card); border-radius: 16px; padding: 32px 28px 30px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr auto; column-gap: 8px; }
.quote { font: 700 2.6rem/1 Georgia, serif; grid-row: 1 / 3; }
.review blockquote { margin: 0 0 28px; font-size: 1rem; }
.review figcaption { grid-column: 2; display: flex; flex-direction: column; gap: 2px; font-size: 1rem; } .review figcaption > span { font-size: .85rem; }
.slide-btns { display: flex; gap: 16px; margin-top: 24px; }
.arrow { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--text); background: transparent; color: var(--text); font: 400 1.6rem/1 Karla, sans-serif; cursor: pointer; }
.arrow:disabled { opacity: .4; cursor: default; }
@media (max-width: 599px) { .review { grid-template-columns: 1fr; } .quote { grid-row: auto; margin-bottom: 8px; } .review figcaption { grid-column: 1; } }

/* FAQ: intro on the left, the questions (tap to open) on the right */
.faq { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 60px; align-items: start; } .faq-intro { max-width: 520px; } }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 26px 64px 26px 26px; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 30px; top: 50%; width: 16px; height: 2px; background: var(--text); }
.faq-list summary::after { transform: rotate(90deg); transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 64px 26px 26px; margin: -6px 0 0; font-size: 1rem; }
@media (max-width: 599px) { .faq-list summary { padding: 22px 52px 22px 4px; } .faq-list summary::before, .faq-list summary::after { right: 12px; } .faq-list details p { padding: 0 8px 22px 4px; } }

/* banner: a job photo across the page with a centered call to action */
.banner { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 560px; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: rgba(23, 27, 40, .62); }
.banner-in { position: relative; text-align: center; padding-top: 90px; padding-bottom: 90px; max-width: 760px; }
.banner-in .btns { justify-content: center; }

.prose { max-width: 860px; } .prose figure { margin: 1.5em 0; } .prose figure img { border-radius: 14px; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; }

/* shorter photo hero (service pages) and the split hero: text on the left, the photo on the right half */
.hero-short { min-height: min(72svh, 640px); }
.hero-split { display: grid; padding-top: var(--head-h); }
.hero-split-text { padding: 44px var(--pad) 48px; }
.hero-split-text p { max-width: 34em; }
.hero-split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .hero-split { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 0; min-height: 620px; } .hero-split-text { padding: calc(var(--head-h) + 40px) var(--pad) 48px max(var(--pad), calc((100vw - 1520px) / 2 + var(--pad))); } .hero-split-img { height: 100%; aspect-ratio: auto; min-height: 620px; } }

/* a big photo with bordered cards beside it */
.split { display: grid; gap: 14px; }
.split-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; aspect-ratio: 4 / 3; }
.split-cards { display: grid; gap: 14px; align-content: start; }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 28px; } .box h3 { font-family: 'Josefin Sans', ui-sans-serif, sans-serif; font-weight: 600; } .box p { margin: 0; font-size: 1rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .split-img { aspect-ratio: auto; min-height: 100%; } }

/* photo tiles, three across */
.sec-alt { background: #232A3C; }
.grid { display: grid; gap: 34px 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile img { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.tile h3 { font-size: 1.35rem; margin-bottom: .3em; } .tile p { margin: 0 0 .6em; font-size: 1rem; } .tile a { text-underline-offset: 3px; }
.tile-tag { font-weight: 700; margin-top: .8em !important; }

/* process steps: what happens on the left, a short note on the right */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps h3 { font-size: 1.3rem; margin: 0 0 .3em; } .steps p { margin: 0; font-size: 1rem; }
.step-tag { font-size: 1rem; }
@media (min-width: 700px) { .steps li { grid-template-columns: minmax(0, 1fr) auto; } .step-tag { text-align: right; } }

/* centered section heads (galleries, centered FAQs) */
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.center-head .btns { justify-content: center; }
.center-head p { margin-left: auto; margin-right: auto; }

/* job photo gallery: a sideways row, photos about a third of the screen wide */
.gallery .slides { grid-auto-columns: min(78%, 420px); padding: 0 var(--pad) 6px; }
.gallery .shot { margin: 0; scroll-snap-align: center; } .gallery .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery .slide-btns { justify-content: center; }
@media (min-width: 900px) { .gallery .slides { grid-auto-columns: calc((100% - 2 * var(--pad) - 40px) / 3.4); } }

/* FAQ styles: centered (a narrow list under a centered head) and numbered (a bordered list beside the intro) */
.faq-center { max-width: 820px; margin: 0 auto; }
.faq-center summary::before { display: none; }
.faq-center summary::after { width: 9px; height: 9px; background: none; border: solid var(--text); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); right: 14px; }
.faq-center details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-center summary { padding-left: 4px; } .faq-center details p { padding-left: 4px; }
.faq-n { display: inline-block; min-width: 1.6em; font-weight: 400; }
.faq-table .faq-list { border: 1px solid var(--line); border-width: 0 0 1px 1px; }
@media (max-width: 899px) { .faq-table .faq-list { border-width: 0 0 1px; } }

/* the estimate block: text and a button on the left, a photo on the right */
.estimate { display: grid; gap: 34px; align-items: center; }
.estimate-img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .estimate { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

/* photo tiles with the text over the photo, two across (Hammond) */
.grid-overlay { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .grid-overlay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-overlay .tile { position: relative; overflow: hidden; border-radius: 10px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.grid-overlay .tile img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; }
.grid-overlay .tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 27, 40, .1) 30%, rgba(23, 27, 40, .85)); z-index: 1; }
.grid-overlay .tile > :not(img):not(picture) { position: relative; z-index: 2; }
.grid-overlay .tile h3 { font-size: 1.25rem; }
.left-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }

/* text + points beside a tall photo */
.feature { display: grid; gap: 34px; align-items: start; }
.points { display: grid; gap: 22px 28px; margin-top: 28px; }
.points h3 { font-size: 1.15rem; margin-bottom: .3em; } .points p { margin: 0; font-size: .95rem; }
.feature-img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 600px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
/* photos in a grid, three across on a PC */
.ba { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ba-shot { margin: 0; position: relative; }
.ba-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ba-shot figcaption { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 24, 33, .78); color: #fff; font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { .ba { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
/* a heading with a little text, and a list of short headed paragraphs */
.text-only { max-width: 820px; } .text-only h2 { max-width: 16em; }
.textlist { display: grid; gap: 26px; max-width: 980px; } .textlist h3 { font-size: 1.2rem; margin-bottom: .25em; } .textlist p { margin: 0; font-size: 1rem; } .textlist a { text-underline-offset: 3px; }

/* a banner without a photo: centered heading and text */
.banner-plain { min-height: 0; } .banner-plain .banner-in { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }

/* footer */
.foot { padding: 64px 0 56px; }
.foot-top { display: grid; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.foot-info img { width: 150px; height: auto; margin-bottom: 36px; }
.foot-info p { margin: 0 0 18px; font-size: .95rem; } .foot-info .foot-k { margin-bottom: 6px; }
.foot-info a { text-decoration: none; }
.social { display: flex; gap: 6px; margin-top: 18px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; } .social a:hover { background: var(--card); }
.social svg { width: 24px; height: 24px; }
.foot-links { column-count: 2; column-gap: 24px; }
.foot-links a { display: flex; align-items: center; min-height: 40px; text-decoration: none; break-inside: avoid; font-size: .95rem; } .foot-links a:hover { text-decoration: underline; }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) auto; } .foot-links { column-count: 4; column-gap: 28px; } .foot-links a { font-size: .9rem; } }
.foot-note { font-size: .9rem; margin: 0; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* breadcrumbs (Home › Services › this page) - above the page's heading, matching the structured data */
.crumbs ol { list-style: none; margin: 0 0 .6em; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; padding: 0 .45em; opacity: .7; }
.crumbs a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a[aria-current] { text-decoration: none; opacity: 1; }
.crumbs-top { padding-top: calc(var(--head-h) + 24px); }

/* centered heading + text (About "Our mission is simple...") */
.text-center h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.photo-grid picture { display: block; }
@media (min-width: 900px) { .photo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* About: each person - photo left, name, title, a line, their story; two side by side on a PC */
.team { display: grid; gap: 48px; margin-top: clamp(36px, 5vw, 64px); }
.person { display: grid; gap: 22px; align-content: start; }
.person-img { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.person h3 { margin-bottom: .2em; } .person-role { font-size: .9rem; margin: 0 0 1em; } .person .rule { margin: 0 0 1.2em; } .person p { font-size: 1rem; }
.person-badge { margin-top: 1.2em; padding: 16px 18px; border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--card); }
.person-badge h4 { margin: 0 0 .4em; font-size: 1rem; } .person-badge p { font-size: .95rem; margin: 0 0 .6em; } .person-badge-link { margin: 0; } .person-badge-link span { opacity: .75; }
@media (min-width: 640px) { .person { grid-template-columns: minmax(140px, 40%) 1fr; } }
@media (min-width: 1100px) { .team { grid-template-columns: 1fr 1fr; } }

/* a plain page heading (Blog) */
.pagehead { padding-top: 0; padding-bottom: 0; } .pagehead p { max-width: 40em; }

/* blog post cards (Blog page, Related Posts) */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .12s; }
.card:hover { transform: translateY(-2px); } .card:hover h2, .card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-text { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
/* (a card's title: h2 on the blog page, h3 under Related Posts - same look) */
.card h2, .card h3 { font-family: 'Josefin Sans', ui-sans-serif, sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.card p { font-size: .95rem; } .card .byline { margin: auto 0 0; padding-top: 8px; }
.cards-small .card h3 { font-size: 1.3rem; } .cards-small .card p { margin: 0; }
.tags { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.tags li { background: var(--btn); color: var(--btn-text); border-radius: 999px; padding: 4px 12px; }
.tags-plain li { background: none; color: inherit; padding: 0; } .tags-plain { gap: 4px 14px; font-size: .75rem; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .85rem; opacity: .9; }

/* one blog post */
.post-wrap { max-width: 860px; }
.post-head { margin-bottom: 28px; } .post-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post-img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: clamp(36px, 5vw, 64px); }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { font-family: Karla, ui-sans-serif, sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.4em; }
.post-body h3 { margin-top: 1.2em; }
.post-body figcaption { font-size: .85rem; opacity: .85; margin-top: .6em; }
.post-fig { margin: 0 0 clamp(36px, 5vw, 64px); } .post-fig .post-img { margin-bottom: 0; } .post-fig figcaption { font-size: .85rem; opacity: .85; margin-top: .6em; }
.prose ol { padding-left: 1.4em; }
.post-body blockquote { margin: 1.6em 0; padding: 18px 20px; border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--card); }
.post-body blockquote p { margin: 0; font-style: italic; } .post-body blockquote cite { display: block; margin-top: .7em; font-style: normal; font-weight: 700; font-size: .9rem; }
.draft-note { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: #F4C542; color: #1E2028; font-weight: 700; font-size: .85rem; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--card); } .table-wrap tr:last-child td { border-bottom: 0; }
.related { margin-top: clamp(56px, 7vw, 90px); } .related h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.prev-next { display: grid; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.prev-next a { display: block; text-decoration: none; padding: 8px 0; font-size: 1.1rem; } .prev-next a:hover { text-decoration: underline; }
.prev-next a span { display: block; font-size: .8rem; opacity: .8; margin-bottom: 4px; }
.prev-next .next { text-align: right; }
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr 1fr; } }

/* the estimate forms (Contact, Metal Buildings) */
.form-sec { padding-top: 0; }
.lead-form { display: grid; gap: 18px; margin-top: 1.6em; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .choice legend { font-size: .9rem; font-weight: 700; }
.lead-form input:not([type=checkbox]):not([type=radio]), .lead-form select, .lead-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(251, 252, 253, .55); background: transparent; color: var(--text); font: inherit; font-size: 1rem; }
.lead-form select option { color: #1E2028; }
.lead-form textarea { resize: vertical; min-height: 150px; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.choice legend { margin-bottom: 6px; padding: 0; }
.choice label { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 1rem; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--btn); flex: none; }
.lead-form .btn { justify-self: start; min-width: 220px; }
.form-note { font-size: .85rem; opacity: .85; margin: 0; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 700; } .form-msg.bad { color: #FFB4A8; }
.hp { position: absolute; left: -9999px; width: 300px; } /* (the robot trap: off screen, people never see it) */
.req { opacity: .8; }

/* the contact card (Contact) */
.contact-card { display: grid; gap: 24px; background: var(--card); border-radius: 16px; padding: 30px; max-width: 520px; }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 .2em; } .contact-card p { margin: 0 0 .3em; font-size: 1rem; }
.contact-card a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 3px; }
.form-sec .estimate { align-items: start; } @media (min-width: 900px) { .form-sec .estimate-img { position: sticky; top: 90px; } }

/* the thank-you box that takes the form's place once it's sent (the old site's words) */
.form-thanks { margin-top: 1.6em; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 4vw, 44px); scroll-margin: 90px; }
.form-thanks[hidden] { display: none; }
.form-thanks h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.form-thanks p { margin: 0 0 .8em; } .form-thanks .thanks-call { margin: 0; font-weight: 700; }
.form-thanks a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 3px; }
.form-thanks:focus { outline: none; }
.lead-form[hidden] { display: none; }

/* "Nearby areas we serve" on city pages */
.nearby { padding-top: 0; }
.nearby h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nearby-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nearby-links a:hover { background: var(--card); }

/* Nov 7 (subfloor + Baton Rouge): a headless text list that carries on from the section above, bullets and linked
   headings in a text list, and the quote form in a card inside the closing banner */
.sec-follow { padding-top: 0; }
.textlist ul { margin: .2em 0 .6em; padding-left: 1.2em; font-size: 1rem; } .textlist li { margin: .3em 0; }
.textlist h3 a { color: inherit; text-underline-offset: 4px; }
.banner-card { margin: 1.8em auto 0; max-width: 640px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 36px); }
.banner-card .lead-form { margin-top: 0; }
.banner-card .form-thanks { margin: 0; padding: 0; border: 0; background: none; }
.banner-card .form-thanks h2 { margin-top: 0; }
/* Text us (Nov 21): only where a texting app can open - phones and tablets (a computer can't send a text from a link) */
@media (hover: hover) and (pointer: fine) { .btn-text, .text-only, .menu [data-text] { display: none !important; } }
