/* Chambers Bay Heating & Cooling: mobile-first styles. Colors follow the old Avada theme
   (blue #41B8EA from the old site, charcoal #333, light grey #f6f6f6). */
:root {
  --accent: #41b8ea;
  --accent-deep: #0b6f99;      /* blue that passes contrast on white, for small text */
  --ink: #232323;
  --charcoal: #2b2b2b;
  --text: #3a3a3a;
  --muted: #646464;
  --line: #e2e2e2;
  --soft: #f6f6f6;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--text); background: var(--white); padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: currentColor; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eyebrow { font: 700 .82rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .8em; }
.placeholder { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font: 700 1rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #6cc9ef; color: var(--ink); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--ghost { border-color: var(--charcoal); color: var(--charcoal); }

/* Top bar + header */
.topbar { display: none; background: var(--charcoal); color: #d8d8d8; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { margin-right: auto; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
.header-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 1.25rem; }
.header-call span { display: none; }
.menu-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Nav: phone = slide-down panel */
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: calc(100vh - 68px); overflow-y: auto; padding: 8px 16px 20px; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.nav__item > a { flex: 1; padding: 14px 4px; font-weight: 500; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-deep); }
.nav__sub-toggle { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.nav__sub-toggle svg { fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub { display: none; list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; width: 100%; }
.nav__sub.is-open { display: block; }
.nav__sub a { display: block; padding: 10px 4px; text-decoration: none; color: var(--muted); }
.nav__cta { width: 100%; margin-top: 16px; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--charcoal); color: var(--white); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero__inner { position: relative; padding: 56px 16px 48px; }
.page-hero--photo .page-hero__inner { padding-top: 84px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero__lead { font-size: 1.15rem; max-width: 46ch; color: #eee; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.crumbs { font-size: .9rem; color: #ccc; margin-bottom: 12px; }
.crumbs a { color: #fff; }

/* Home hero */
.home-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: var(--white); background: var(--charcoal); overflow: hidden; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.82) 100%); }
@media (min-width: 900px) {
  .home-hero::after { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.05) 75%); }
}
.home-hero__inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; }
.home-hero h1 { color: var(--white); max-width: 15ch; }
.home-hero h1 span { color: var(--accent); }
.home-hero .eyebrow { color: var(--accent); }
.home-hero__lead { font-size: 1.15rem; max-width: 44ch; color: #f0f0f0; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.home-hero__actions .btn { flex: 1 1 200px; }

/* Home slider (Mark's original: 6 photos, slide animation, 4.5s, dots + arrows, parallax) */
.slider { position: relative; height: clamp(300px, 72vw, 560px); overflow: hidden; background: var(--charcoal); touch-action: pan-y; }
.slider__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 56px; text-decoration: none; }
.slide--right { justify-content: flex-end; }
.slide__img { position: absolute; left: 0; width: 100%; top: -10%; height: 120%; object-fit: cover; translate: 0 var(--py, 0px); }
.slide.is-active .slide__img { animation: drift 9s ease-out both; }
@keyframes drift { from { scale: 1.08; } to { scale: 1; } }
.slide__cap { position: relative; margin: 0; padding: .25em .6em; max-width: 100%; text-align: center; background: var(--cap, rgba(0,0,0,.6));
  color: #fff; font: 500 clamp(1.45rem, 5.6vw, 2.9rem)/1.2 var(--body); opacity: 0; transform: translateY(14px); transition: opacity .5s .35s, transform .5s .35s; }
.slide__cap--light { font-size: clamp(1.15rem, 4.2vw, 1.9rem); }
.slide.is-active .slide__cap { opacity: 1; transform: none; }
.slider__arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: rgba(0,0,0,.35); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.slider__arrow:hover { background: rgba(0,0,0,.6); }
@media (max-width: 639px) { .slider__arrow { display: none; } .slide { padding: 0 16px; } }
.slider__arrow--prev { left: 6px; }
.slider__arrow--next { right: 6px; }
.slider__controls { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 6px; }
.slider__dots { display: flex; }
.slider__dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 3px rgba(0,0,0,.5); }
.slider__dots button[aria-current="true"]::before { background: var(--accent); }
.slider__pause { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: .62rem; cursor: pointer; }
.slider [hidden] { display: none; }
.slider:not(.is-ready) .slide:not(:first-child) { visibility: hidden; }
.slider:not(.is-ready) .slide:first-child .slide__cap { opacity: 1; transform: none; }

/* Inner-page photo banner: title in a caption box, as on the old site */
.photo-hero { position: relative; height: clamp(220px, 52vw, 440px); display: flex; align-items: center; justify-content: center; padding: 0 16px; overflow: hidden; background: var(--charcoal); }
.photo-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 9s ease-out both; }
.photo-hero__title { position: relative; margin: 0; padding: .25em .6em; text-align: center; color: #fff; background: rgba(61, 38, 35, .8);
  font: 500 clamp(1.5rem, 5.6vw, 2.8rem)/1.2 var(--body); max-width: 22ch; }
.hero-bar .crumbs { margin-bottom: 8px; }

/* Bar under the slider: the page's real headline and the two calls to action */
.hero-bar { background: var(--charcoal); color: #ddd; border-bottom: 5px solid var(--accent); }
.hero-bar__inner { display: grid; gap: 18px; padding-top: 26px; padding-bottom: 28px; }
.hero-bar h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: .3em; }
.hero-bar p { margin: 0; max-width: 60ch; }
.hero-bar__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bar__actions .btn { flex: 1 1 200px; }
@media (min-width: 900px) {
  .hero-bar__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .hero-bar__actions .btn { flex: 0 0 auto; }
  .slider__arrow { width: 63px; height: 40px; }
  .slide { padding: 0 90px; }
}

/* Trust strip */
.trust { background: var(--accent); color: var(--ink); }
.trust ul { list-style: none; margin: 0; padding: 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.trust li { font-weight: 700; line-height: 1.25; font-size: .98rem; }
.trust strong { display: block; font: 700 1.7rem/1 var(--head); }

/* Sections */
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--charcoal); color: #e6e6e6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 680px; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section__head p { color: #cfcfcf; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Service cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.12); color: var(--text); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 18px 20px 22px; }
.card__body h3 { margin-bottom: .3em; }
.card__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card__more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.chips a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--accent); }

/* Split (text + photo) */
.split { display: grid; gap: 28px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23232323' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Projects */
.projects { display: grid; gap: 18px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; display: block; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s; }
.project:hover img { transform: scale(1.04); }
.project__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.project__label strong { display: block; font: 700 1.25rem/1.15 var(--head); }
.project__label span { font-size: .92rem; color: #ddd; }

/* Testimonials */
.quotes { display: grid; gap: 18px; }
.quote { margin: 0; background: #363636; border-radius: var(--radius); padding: 26px 24px; border-top: 4px solid var(--accent); }
.quote p { color: #f2f2f2; margin: 0 0 12px; }
.quote footer { color: var(--accent); font-weight: 700; font-size: .95rem; }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 8px; }

/* Divisions */
.divisions { display: grid; gap: 18px; }
.division { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--white); }
.division img { height: 60px; width: auto; }
.division:hover { border-color: var(--accent); }

/* CTA band */
.cta-band { background: var(--charcoal) linear-gradient(120deg, #2b2b2b 0%, #3a3a3a 100%); color: #e6e6e6; padding: 48px 0; border-top: 6px solid var(--accent); }
.cta-band h2 { color: var(--white); }
.cta-band__inner { display: grid; gap: 22px; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #1e1e1e; color: #bdbdbd; font-size: .97rem; }
.site-footer a { color: #f0f0f0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: 34px; padding: 56px 16px 40px; }
.site-footer h2 { font: 700 .85rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__brand img { width: 190px; margin-bottom: 14px; }
.site-footer__tagline { font-style: italic; color: #ddd; }
.site-footer__member img { width: 110px; margin-top: 8px; background: #fff; padding: 6px; border-radius: 6px; }
.social { display: flex !important; gap: 10px !important; margin-top: 16px !important; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #2f2f2f; font-size: 1.15rem; }
.site-footer__bottom { border-top: 1px solid #333; padding: 18px 0; font-size: .88rem; }

/* Sticky call bar (phones) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding-bottom: env(safe-area-inset-bottom); font-weight: 700; text-decoration: none; }
.callbar__call { background: var(--charcoal); color: var(--white); }
.callbar__quote { background: var(--accent); color: var(--ink); }

/* Tablet */
@media (min-width: 640px) {
  .cards, .projects, .divisions { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero__actions .btn { flex: 0 0 auto; }
  .brand img { width: 180px; }
}
@media (min-width: 720px) {
  .cards, .projects { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--flip .split__media { order: -1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .section { padding: 88px 0; }
  .header-call { width: auto; height: auto; padding: 10px 16px; border-radius: 999px; gap: 8px; font-size: 1rem; font-weight: 700; text-decoration: none; }
  .header-call span { display: inline; }
}
/* Desktop: inline nav with hover dropdowns, no call bar */
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .callbar, .menu-toggle { display: none; }
  .topbar { display: block; }
  .site-header__inner { min-height: 84px; }
  .brand img { width: 210px; }
  .nav { display: flex !important; align-items: center; gap: 18px; position: static; box-shadow: none; border: 0; padding: 0; background: none; overflow: visible; max-height: none; }
  .nav__list { display: flex; gap: 2px; }
  .nav__item { border: 0; position: relative; flex-wrap: nowrap; }
  .nav__item > a { padding: 10px 10px; font-size: .98rem; }
  .nav__sub-toggle { width: 22px; height: 30px; font-size: .95rem; margin-left: -6px; }
  .nav__sub { display: block; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px 0; margin: 0; background: var(--white);
    border-top: 3px solid var(--accent); box-shadow: var(--shadow); border-radius: 0 0 8px 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
  .nav__sub a { padding: 9px 18px; color: var(--text); }
  .nav__sub a:hover { background: var(--soft); }
  .has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__cta { width: auto; margin: 0; }
  .header-call { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Option B (lean homepage preview): no top bar, like the original site */
.lean .topbar { display: none !important; }

/* Photo galleries + viewer */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.viewer { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; background: rgba(0,0,0,.94); color: #fff; }
.viewer::backdrop { background: rgba(0,0,0,.9); }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.viewer .viewer__close { top: 12px; right: 12px; }
.viewer .viewer__prev { left: 10px; top: 50%; translate: 0 -50%; }
.viewer .viewer__next { right: 10px; top: 50%; translate: 0 -50%; }
.viewer__count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .9rem; color: #ccc; }

/* Feature grid (h3 + text blocks) */
.features { display: grid; gap: 22px; margin-top: 8px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 22px 22px 18px; border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.feature h3 { margin-bottom: .4em; }
.feature p:last-child { margin-bottom: 0; }
.feature .card__more { margin-top: 4px; text-decoration: none; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }

/* Accordion (FAQ, repairs) */
.accordion { max-width: 860px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 1.12rem/1.35 var(--body); color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > div { padding: 0 0 18px; }

/* Project facts, article, person, lists */
.facts { background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 0 0 24px; }
.facts p { margin: 0 0 6px; }
.facts p:last-child { margin: 0; }
.person { display: grid; gap: 20px; align-items: start; }
.person img { width: 180px; border-radius: 50%; box-shadow: var(--shadow); }
@media (min-width: 760px) { .person { grid-template-columns: 200px 1fr; } }
.areas { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
.article { max-width: 760px; }
.article h2 { margin-top: 1.4em; }
.article .meta { color: var(--muted); font-size: .95rem; }
.post-list { display: grid; gap: 18px; }
@media (min-width: 720px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.note { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 14px 18px; }

/* Contact form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; min-height: 48px; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--muted); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin-bottom: .6em; }

/* Very small phones (320px): let grid items shrink and long web addresses wrap */
.split > *, .cards > *, .features > *, .divisions > *, .projects > *, .quotes > *, .post-list > * { min-width: 0; }
.card__more, .article a, .division span, .contact-card a, .site-footer a { overflow-wrap: anywhere; }

/* Roofing home slider: one banner photo stays put and the captions slide, as on the old site
   (every old slide used the same roofer banner). The roofer stands at the right edge, so crop from the right. */
.slider--captions .slider__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.slider--captions::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 70%); }
.slider--captions .slider__track { position: relative; z-index: 1; }
.slider--captions .slide { justify-content: flex-start; padding-right: 30%; }
.slider--captions .slide__cap { transition-delay: .15s; }
.slide__cap .btn { margin-top: 14px; font-size: 1rem; }
.slide__cap--stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
@media (max-width: 639px) { .slider--captions .slide { padding-right: 16px; align-items: flex-start; padding-top: 28px; } }

/* Two badges side by side in the footer */
.site-footer__member img { display: inline-block; margin-right: 8px; vertical-align: middle; }
.badges { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.badges img { height: 90px; width: auto; }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* HTML sitemap */
.sitemap-list { columns: 1; padding-left: 1.1em; margin: 0 0 28px; }
.sitemap-list li { margin-bottom: 6px; break-inside: avoid; }
@media (min-width: 760px) { .sitemap-list { columns: 2; column-gap: 40px; } }
.figure { margin: 22px 0; }
.figure img { border-radius: var(--radius); }
.seer__out { background: var(--white); border-radius: 8px; padding: 12px 14px; line-height: 1.8; }
.prose a { overflow-wrap: anywhere; }
