/* Brendan's Company LLC — Roofing.
   Hand-written from scratch for this build (no website-agency tooling).
   Aesthetic: warm heritage trade — espresso + warm paper + a single brick-red
   accent, rationed. Bitter (slab serif) headlines, Figtree body, DM Mono numerics.
   Mobile-first. */

:root {
  --ink:       #241d17;  /* warm espresso — dark bands, headings */
  --paper:     #f4efe6;  /* warm paper — page background */
  --paper-2:   #ece3d4;  /* deeper panel tint */
  --text:      #2c241c;  /* body text on paper */
  --muted:     #776c5e;  /* secondary text */
  --brick:     #9e3b2e;  /* accent — rationed: rules, marks, one CTA */
  --brick-dk:  #7f2e23;  /* accent hover */
  --line:      #e1d8c7;  /* hairline on paper */
  --line-dk:   rgba(244,239,230,0.16); /* hairline on ink */

  --container: 74rem;
  --r: 4px;              /* restrained radius — trade, not bubbly */

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 0.9rem;
}

/* Buttons — solid fills + a real border, never gradients. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease, border-color 150ms ease;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dk); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #15110d; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: 0 0 var(--r) 0; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-badge {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.brand-badge span { color: var(--brick); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.main-nav { display: none; margin-left: auto; gap: 1.6rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.main-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.header-phone { text-decoration: none; text-align: right; line-height: 1.1; display: grid; }
.header-phone .lbl { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.header-phone .no { font-weight: 600; font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.header-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 86svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { /* warm scrim */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20,15,11,0.92) 0%, rgba(20,15,11,0.55) 38%, rgba(20,15,11,0.12) 70%, rgba(20,15,11,0.30) 100%);
}
.hero-inner { padding-block: 3rem 3.25rem; color: var(--paper); }
.hero .eyebrow { color: #e6a08f; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 8vw, 4.75rem); max-width: 16ch; letter-spacing: -0.02em; }
.hero-sub { margin-top: 1.1rem; max-width: 50ch; font-size: 1.18rem; color: rgba(244,239,230,0.9); }
.hero-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-fineprint { margin-top: 1.4rem; font-size: 0.9rem; color: rgba(244,239,230,0.72); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: var(--paper); }
.trustbar ul { display: grid; grid-template-columns: 1fr; }
.trust-item { display: flex; align-items: center; gap: 0.7rem; padding-block: 1rem; border-bottom: 1px solid var(--line-dk); font-size: 0.96rem; }
.trustbar li:last-child { border-bottom: none; }
.trust-item::before { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border: 2px solid var(--brick); border-radius: 50%; }

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 5rem; }
.pad { padding-block: 4.5rem; }
.section-head { max-width: 52ch; }
.section-head h2 { font-size: clamp(1.85rem, 5vw, 2.85rem); }
.section-head .lede { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ---------- Services (editorial: sticky title + list) ---------- */
.services { background: var(--paper-2); }
.svc-grid { display: grid; gap: 2.5rem; }
.svc-list .svc {
  display: grid; gap: 0.4rem; padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.svc-list .svc:last-child { border-bottom: 1px solid var(--line); }
.svc-kicker { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brick); }
.svc h3 { font-size: 1.45rem; }
.svc p { color: var(--muted); max-width: 62ch; }

/* ---------- Process (timeline) ---------- */
.steps { display: grid; gap: 0; margin-top: 2.5rem; }
.step { position: relative; padding: 0 0 2rem 2.4rem; }
.step::before { /* node */
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brick); z-index: 1;
}
.step::after { /* connector */
  content: ""; position: absolute; left: calc(0.525rem - 1px); top: 1rem; bottom: 0;
  width: 2px; background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brick); }
.step h3 { font-size: 1.25rem; margin-top: 0.15rem; }
.step p { margin-top: 0.35rem; color: var(--muted); max-width: 46ch; }

/* ---------- Work / gallery ---------- */
.gallery { display: grid; gap: 1rem; margin-top: 2.5rem; }
.shot { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.shot figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1.4rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(20,15,11,0.82), transparent);
  color: var(--paper); font-size: 0.88rem; font-weight: 500;
}

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--paper); }
.why h2 { color: #fff; }
.why .lede { color: rgba(244,239,230,0.78); }
.why-grid { display: grid; gap: 0; margin-top: 2.25rem; }
.why-row { padding-block: 1.5rem; border-top: 1px solid var(--line-dk); }
.why-row:last-child { border-bottom: 1px solid var(--line-dk); }
.why-row h3 { color: #fff; font-size: 1.2rem; position: relative; padding-left: 1.1rem; }
.why-row h3::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 2px; background: var(--brick); }
.why-row p { margin-top: 0.45rem; color: rgba(244,239,230,0.78); max-width: 64ch; }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 2.5rem; }
.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.towns li { font-family: var(--font-mono); font-size: 0.8rem; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; }
.area-addr { margin-top: 1.75rem; color: var(--ink); font-weight: 500; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.35rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { flex: none; position: relative; width: 15px; height: 15px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; background: var(--brick); transition: transform 200ms ease; }
.faq-sign::before { top: 6.5px; left: 0; width: 15px; height: 2px; }
.faq-sign::after { left: 6.5px; top: 0; width: 2px; height: 15px; }
.faq-item[open] .faq-sign::after { transform: scaleY(0); }
.faq-item p { margin: 0 0 1.35rem; color: var(--muted); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-lines { margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.contact-lines li { display: flex; gap: 1rem; align-items: baseline; }
.contact-lines .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 4.5ch; }
.contact-lines a { color: var(--brick); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.form input, .form textarea { font: inherit; padding: 0.75rem 0.85rem; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brick); }
.form .fineprint { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 3rem 2rem; }
.cred { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-dk); }
.cred li { font-size: 0.78rem; color: rgba(244,239,230,0.78); position: relative; padding-left: 0.9rem; }
.cred li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 2px; background: var(--brick); }
.foot-main { display: grid; gap: 1.5rem; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { margin-top: 0.5rem; color: rgba(244,239,230,0.72); font-size: 0.9rem; max-width: 42ch; }
.foot-contact a { display: block; text-decoration: none; }
.foot-contact .fc-phone { font-family: var(--font-mono); font-weight: 500; font-size: 1.3rem; color: #fff; }
.foot-contact .fc-email { margin-top: 0.3rem; color: rgba(244,239,230,0.8); font-size: 0.92rem; }
.foot-fine { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dk); font-size: 0.78rem; color: rgba(244,239,230,0.55); }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .trustbar ul { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .trust-item { border-bottom: 1px solid var(--line-dk) !important; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot-lead { grid-column: 1 / -1; }
  .shot-lead img { aspect-ratio: 16 / 9; }
}
@media (min-width: 880px) {
  .main-nav { display: flex; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
  .trustbar ul { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: none !important; }
  .svc-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
  .svc-grid .section-head { position: sticky; top: 6rem; align-self: start; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { padding: 2.4rem 1.25rem 0 0; }
  .step::before { top: 0; }
  .step::after { left: 0; top: calc(0.525rem - 1px); right: 0; bottom: auto; width: auto; height: 2px; }
  .step:last-child::after { display: block; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .shot-lead { grid-column: span 2; grid-row: span 2; }
  .shot-lead img { aspect-ratio: auto; height: 100%; }
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .why-row:nth-child(2) { border-top: 1px solid var(--line-dk); }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
