/* Brightwork Remodeling — v1.2 presentation. Identity per Brightwork Identity v1.0 (single source of truth).
   v1.1 (2026-08-02): reference pass 1 — photographic hero, header phone, icon cards, numbered process, CTA band, footer columns.
   v1.2 (2026-08-02): reference pass 2 (Boston Builders + Pro Kitchen Design + Three Brothers; adapt, never copy):
   nav CTA button · crest-mark section hierarchy device · full-bleed photographic interlude · credentials band ·
   dual CTA closes · gallery lightbox · display-scale refinement. Copy remains locked v1.2 verbatim. */
:root {
  --ink: #1B2733;
  --brass: #B08A4E;
  --paper: #F7F3EC;
  --line: #ddd5c6;
  --card: #fffdf9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Avenir Next', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; line-height: 1.25; }
img { max-width: 100%; }
a { color: var(--ink); }

/* Accessibility: skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 300; text-decoration: none; }
.skip:focus { left: 0; }

/* Header / nav */
header.site {
  background: #ffffff; /* matches the logo PNG's render ground exactly — no visible box seam */
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}
.nav-wrap { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.nav-wrap img.logo { width: 280px; max-width: 72vw; height: auto; display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; }
nav a {
  text-decoration: none; font-size: 15px; letter-spacing: 1px; margin-left: 22px;
  padding-bottom: 3px; white-space: nowrap;
}
nav a.active, nav a:hover, nav a:focus-visible { border-bottom: 2px solid var(--brass); outline: none; }
a.nav-phone { display: inline-block; font-weight: 600; white-space: nowrap; }
a.nav-phone svg { vertical-align: -2px; margin-right: 6px; }
a.nav-phone:hover { border-bottom-color: transparent; }
a.btn-nav { display: none; }
header.site { position: sticky; top: 0; z-index: 50; }
@media (min-width: 980px) {
  a.btn-nav {
    display: inline-block; background: var(--brass); color: var(--ink);
    padding: 9px 18px; margin-left: 22px; font-weight: 600; font-size: 14px;
    letter-spacing: 0.5px; text-decoration: none;
  }
  a.btn-nav:hover { background: #c09a5e; border-bottom: none; }
}

/* Hero — photographic, ink overlay carries the locked promise */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 108px 20px;
  background-image:
    linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
    url("assets/hero-kitchen.jpg");
  background-image:
    linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
    image-set(url("assets/hero-kitchen.webp") type("image/webp"), url("assets/hero-kitchen.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
@media (max-width: 1100px) and (min-width: 701px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
      url("assets/hero-kitchen-1600.jpg");
    background-image:
      linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
      image-set(url("assets/hero-kitchen-1600.webp") type("image/webp"), url("assets/hero-kitchen-1600.jpg") type("image/jpeg"));
  }
}
@media (max-width: 700px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
      url("assets/hero-kitchen-800.jpg");
    background-image:
      linear-gradient(180deg, rgba(27, 39, 51, 0.68) 0%, rgba(27, 39, 51, 0.84) 22%, rgba(27, 39, 51, 0.84) 78%, rgba(27, 39, 51, 0.66) 100%),
      image-set(url("assets/hero-kitchen-800.webp") type("image/webp"), url("assets/hero-kitchen-800.jpg") type("image/jpeg"));
  }
}
.hero .inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(31px, 5.2vw, 54px); margin-bottom: 20px; }
.hero p { font-size: clamp(17px, 2.4vw, 20px); max-width: 640px; margin: 0 auto 30px; color: #e7e0d2; }
@media (max-width: 700px) { .hero { padding: 72px 20px; } }
@media (max-width: 700px) {
  header.site { padding: 8px 14px; }
  .nav-wrap { gap: 2px; }
  .nav-wrap img.logo { width: 186px; }
  nav { width: 100%; justify-content: space-between; }
  nav a { margin-left: 0; font-size: 14px; letter-spacing: 0.4px; padding: 12px 2px 8px; }
  a.nav-phone { display: inline-block; padding: 8px 6px; }
  a.nav-phone span { display: none; }
  a.nav-phone svg { width: 19px; height: 19px; margin-right: 0; vertical-align: -4px; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--brass); color: var(--ink);
  padding: 13px 30px; text-decoration: none; font-weight: 600; letter-spacing: 0.5px;
  border: none; font-size: 16px; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #c09a5e; transform: translateY(-1px); }
.btn:focus-visible, a.btn-nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* In-flow emphasis line (locked sentence, presentation only) */
.emline { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; border-left: 3px solid var(--brass); padding-left: 14px; margin: 14px 0; }

/* Homepage work strip */
.gallery.strip { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc-cards.strip-link { max-width: 300px; margin: 20px auto 0; }

/* Founder figure (activates with the photo) */
figure.founder { border: 1px solid var(--line); background: var(--card); padding: 8px; max-width: 440px; margin: 18px 0; }
figure.founder img { width: 100%; height: auto; display: block; }
figure.founder figcaption { font-size: 13px; color: #6b6357; margin-top: 8px; }

/* Contact form reply note */
.reply-note { margin: 18px 0 0; font-size: 15px; color: #6b6357; }

/* Crest divider (identity element — do not restyle) */
.crest { display: flex; align-items: center; justify-content: center; margin: 52px auto; max-width: 420px; }
.crest::before, .crest::after { content: ""; flex: 1; border-top: 1.5px solid var(--ink); }
.crest span { width: 10px; height: 10px; background: var(--brass); margin: 0 10px; }
.dark .crest::before, .dark .crest::after { border-color: var(--paper); }

/* Crest-mark — small identity mark above section headings (hierarchy device, no text) */
.crest-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.crest-mark::before { content: ""; width: 10px; height: 10px; background: var(--brass); }
.crest-mark::after { content: ""; width: 44px; border-top: 1.5px solid var(--ink); }
.dark .crest-mark::after, .cta-band .crest-mark::after { border-color: var(--paper); }

/* Credentials band — three columns, serif dignity */
.cred3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  margin: 26px 0 8px;
}
.cred3 div {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; text-align: center;
  padding: 26px 18px; border-left: 1px solid var(--line);
}
.cred3 div:first-child { border-left: none; }
@media (max-width: 700px) {
  .cred3 div { border-left: none; border-top: 1px solid var(--line); padding: 18px 12px; }
  .cred3 div:first-child { border-top: none; }
}

/* Dual CTA close — button + phone pairing */
.cta-duo { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 24px; }
.cta-duo a.tel {
  color: var(--ink); text-decoration: none; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px; white-space: nowrap;
}
.cta-duo a.tel svg { vertical-align: -3px; margin-right: 8px; }
.cta-duo a.tel:hover { color: var(--brass); }

/* Sections — wider rhythm */
section.band { padding: 76px 20px; }
section.band.dark { background: var(--ink); color: var(--paper); }
section.band.white { background: var(--card); }
.inner { max-width: 940px; margin: 0 auto; }
h2 { font-size: clamp(25px, 3.6vw, 36px); margin-bottom: 18px; }
h3 { font-size: 21px; margin: 30px 0 8px; }
h2.svch2 { font-size: 21px; margin: 30px 0 8px; }
p { margin-bottom: 12px; }
ul.plain { list-style: none; }
ul.std { padding-left: 24px; margin-bottom: 12px; }
@media (max-width: 700px) { section.band { padding: 54px 20px; } }

/* Trust grid — icon cards (icons: brass line work, square motif per identity) */
.grid6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 26px; }
.grid6 div {
  background: var(--card); border: 1px solid var(--line); padding: 20px;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 17px;
  display: flex; align-items: center; gap: 14px;
  border-top: 3px solid var(--brass);
}
.grid6 svg { flex: none; }

/* Service link cards */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.svc-cards a {
  display: block; background: var(--card); border: 1px solid var(--line);
  padding: 18px 20px; text-decoration: none;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.35;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.svc-cards a::after { content: "›"; color: var(--brass); font-weight: 600; margin-left: 8px; }
.svc-cards a:hover { border-color: var(--brass); transform: translateY(-2px); }

/* Process — numbered cards */
ol.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line); padding: 22px 20px 18px; margin: 0;
}
ol.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 34px; line-height: 1; color: var(--brass);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 10px; margin-bottom: 12px;
}
ol.steps li strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; }

/* Pillars — 2×2 card grid, crest-square marker */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 26px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); padding: 20px 22px; margin: 0;
}
.pillar::before { content: ""; display: block; width: 10px; height: 10px; background: var(--brass); margin-bottom: 12px; }
.pillar strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; }

/* Mid-page CTA band — second conversion point (button + phone, nothing else) */
.cta-band { background: var(--ink); color: var(--paper); padding: 44px 20px; }
.cta-band .inner {
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 36px;
}
.cta-band a.tel {
  color: var(--paper); text-decoration: none; font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(22px, 3.4vw, 30px); white-space: nowrap;
}
.cta-band a.tel svg { vertical-align: -3px; margin-right: 10px; }
.cta-band a.tel:hover { color: #c09a5e; }

/* Footer — three columns + site-map row */
footer.site { background: var(--ink); color: #cfc7b8; padding: 56px 20px 28px; font-size: 15px; }
footer.site .inner { max-width: 1080px; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
footer.site img { width: 240px; margin-bottom: 16px; }
footer.site a { color: var(--paper); }
footer.site .foot-h {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px; color: var(--paper); letter-spacing: 1px;
  border-left: 3px solid var(--brass); padding-left: 10px; margin-bottom: 14px;
}
.foot-cols ul { list-style: none; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols ul a { text-decoration: none; }
.foot-cols ul a:hover { color: #c09a5e; }
.promise { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 16px; color: var(--paper); margin-bottom: 14px; }
.foot-bar {
  border-top: 1px solid rgba(247, 243, 236, 0.18);
  margin-top: 40px; padding-top: 20px; text-align: center; font-size: 14px;
}
.foot-bar nav { display: block; margin-bottom: 10px; }
.foot-bar nav a { margin: 0 6px; font-size: 14px; display: inline-block; padding: 12px 6px; }
@media (max-width: 820px) {
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Forms */
form.contact label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 15px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--card);
  font-family: inherit; font-size: 16px; color: var(--ink);
}
form.contact textarea { min-height: 130px; }
form.contact button { margin-top: 20px; }

/* Contact — two columns at desktop */
.contact-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; margin-top: 10px; }
.contact-aside { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: 24px; }
.contact-aside h2 { font-size: 19px; margin: 18px 0 6px; }
@media (max-width: 820px) {
  .contact-cols { grid-template-columns: 1fr; gap: 20px; }
  .contact-cols aside.contact-aside { order: -1; }
}

/* Gallery — uniform 4:3 rhythm */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 26px; }
.gallery figure { background: var(--card); border: 1px solid var(--line); padding: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; display: block; }
.gallery figcaption { font-size: 14px; color: #6b6357; margin-top: 10px; }
.gallery figure a { display: block; cursor: zoom-in; }
.gallery figure a:hover img { opacity: 0.92; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(27, 39, 51, 0.94);
  align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox figcaption {
  position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center;
  color: var(--paper); font-size: 15px; font-family: 'Source Sans 3', sans-serif;
}
.lightbox .lb-close {
  position: absolute; top: 12px; right: 12px; width: 48px; height: 48px;
  background: rgba(27, 39, 51, 0.6); border: none;
  color: var(--paper); font-size: 30px; line-height: 1; cursor: pointer; font-family: inherit;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; background: rgba(27, 39, 51, 0.6); border: none;
  color: var(--paper); font-size: 40px; line-height: 1; cursor: pointer; font-family: inherit;
}
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover, .lightbox .lb-close:hover { background: rgba(27, 39, 51, 0.9); }
body.lb-open { overflow: hidden; }
.ph-img { background: #e9e2d4; height: 190px; display: flex; align-items: center; justify-content: center; color: #a89f8e; font-size: 13px; letter-spacing: 1px; }

/* Services — side figures where real photos exist */
.svc { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.svc figure { border: 1px solid var(--line); background: var(--card); padding: 8px; margin-top: 34px; }
.svc figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; display: block; }
.svc figcaption { font-size: 13px; color: #6b6357; padding: 8px 4px 2px; }
@media (max-width: 700px) { .svc { grid-template-columns: 1fr; } .svc figure { margin-top: 0; max-width: 420px; } }
