:root {
  --ink: #1f2a2e;
  --ink-2: #334045;
  --muted: #6b7375;
  --copper: #c76a2a;
  --copper-dark: #9f511d;
  --cream: #f7f3ec;
  --cream-2: #ede6db;
  --white: #ffffff;
  --forest: #304739;
  --line: rgba(31, 42, 46, .14);
  --shadow: 0 18px 55px rgba(21, 28, 31, .16);
  --shadow-soft: 0 10px 30px rgba(21, 28, 31, .10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 243, 236, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(31, 42, 46, .18);
}
.brand-mark svg { width: 38px; height: 38px; }
.brand-text { line-height: 1.05; }
.brand-name {
  display: block;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .98rem;
}
.brand-sub {
  color: var(--copper);
  display: block;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .68rem;
  margin-top: 4px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  padding: .66rem .78rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: .92rem;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .78rem 1rem;
  background: var(--copper);
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(199, 106, 42, .27);
}
.header-cta:hover { background: var(--copper-dark); }
.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: 13px;
  padding: .62rem .78rem;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 27, .88), rgba(17, 24, 27, .62) 40%, rgba(17, 24, 27, .16)), url("img/hero-soffit-wide.webp") center / cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(to top, var(--cream), transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 120px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8d4b7;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: .82rem;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--copper);
  border-radius: 999px;
}
.hero h1 {
  max-width: 830px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.06em;
  margin: 0 0 24px;
}
.hero .lead {
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 34px;
}
.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 1rem 1.18rem;
  font-weight: 950;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--copper); color: var(--white); box-shadow: 0 18px 36px rgba(199, 106, 42, .28); }
.button.primary:hover { background: var(--copper-dark); }
.button.secondary { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.34); backdrop-filter: blur(12px); }
.button.light { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-soft); }
.button.dark { background: var(--ink); color: var(--white); }

.trust-strip {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: -78px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-item {
  padding: 12px 14px;
  border-left: 3px solid var(--copper);
}
.trust-item span {
  display: block;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 1.02rem;
}
.trust-item small {
  color: var(--muted);
  font-weight: 700;
}

main { overflow: clip; }
.section { padding: 92px 0; }
.section.tight { padding: 62px 0; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.section-header {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}
.kicker {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 950;
  font-size: .78rem;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(2.05rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  margin: 0;
}
h3 {
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin: 0 0 .7rem;
}
.section-copy {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 720px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.card-pad { padding: 28px; }
.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}
.rounded-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note {
  color: var(--muted);
  font-size: .94rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 22, .9), rgba(15, 20, 22, .38)), var(--bg, linear-gradient(135deg, var(--forest), var(--ink)));
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}
.service-card:hover::before { transform: scale(1.04); }
.service-card > * { position: relative; z-index: 1; }
.service-card small {
  color: #ffd5b3;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  margin-bottom: 8px;
}
.service-card h3 { color: var(--white); }
.service-card p { color: rgba(255,255,255,.82); font-size: .98rem; }
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: .4rem;
  color: #ffd5b3;
  font-weight: 950;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}
.project-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.project-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: .8rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-2);
  padding: .38rem .66rem;
  border-radius: 999px;
  font-weight: 850;
  font-size: .78rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink);
  min-height: 210px;
  box-shadow: var(--shadow-soft);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: .9;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-tile:hover img { transform: scale(1.04); opacity: .76; }
.gallery-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: var(--white);
  font-weight: 950;
  text-shadow: 0 3px 14px rgba(0,0,0,.5);
}

.dark-band {
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band .section-copy, .dark-band p { color: rgba(255,255,255,.76); }
.dark-band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); box-shadow: none; }
.dark-band .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.82); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.area-list a,
.area-list span {
  display: inline-flex;
  padding: .72rem .88rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-weight: 850;
}
.area-map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(199,106,42,.26), transparent 24%), linear-gradient(135deg, #425b49, #1f2a2e);
  border: 1px solid rgba(255,255,255,.13);
}
.area-map::before,
.area-map::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  inset: 70px;
}
.area-map::after { inset: 125px; border-color: rgba(199,106,42,.45); }
.area-map.is-interactive {
  min-height: 460px;
  background: #d8e2d5;
}
.area-map.is-interactive::before,
.area-map.is-interactive::after {
  content: none;
}
.service-range-map {
  width: 100%;
  min-height: 460px;
  height: 100%;
  z-index: 1;
}
.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #425b49, #1f2a2e);
  font-weight: 900;
}
.area-map .leaflet-container {
  font-family: inherit;
  color: var(--ink);
}
.area-map .leaflet-control-zoom {
  border: 0;
  box-shadow: var(--shadow-soft);
}
.area-map .leaflet-control-zoom a {
  color: var(--ink);
  border-color: var(--line);
}
.area-map .leaflet-control-attribution {
  font-size: .68rem;
}
.service-range-label {
  display: inline-flex;
  width: max-content !important;
  height: auto !important;
  padding: .44rem .62rem;
  border-radius: 999px;
  background: rgba(31, 42, 46, .9);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: var(--shadow-soft);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.map-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 450;
  padding: .72rem .86rem;
  border-radius: 14px;
  background: rgba(31, 42, 46, .88);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-soft);
  font-size: .86rem;
  font-weight: 800;
}
.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, #425b49, #1f2a2e);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  font-weight: 950;
}
.map-pin .dot {
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  background: var(--copper);
  border: 5px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(199,106,42,.16);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 12px;
}
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(21, 28, 31, .06);
}
summary {
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -.02em;
}
details p { margin-top: 12px; color: var(--ink-2); }

.contact-box {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}
.contact-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,.78); }
.contact-list { display: grid; gap: 12px; margin: 24px 0 0; }
.contact-list a, .contact-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.13);
  color: var(--white);
  font-weight: 850;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 900; font-size: .92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .95rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 132px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(199, 106, 42, .18);
  border-color: rgba(199, 106, 42, .55);
}
.form-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.form-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-status.success { color: #246b3a; font-weight: 850; }
.form-status.error { color: #9f2f1d; font-weight: 850; }
button:disabled {
  cursor: wait;
  opacity: .72;
}

.page-hero {
  background: linear-gradient(90deg, rgba(31,42,46,.94), rgba(31,42,46,.72)), var(--hero-img, url("img/hero-soffit-wide.webp")) center / cover;
  color: var(--white);
  padding: 96px 0;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  letter-spacing: -.06em;
  line-height: .95;
  margin: 0 0 20px;
  max-width: 900px;
}
.page-hero p { max-width: 760px; color: rgba(255,255,255,.82); font-size: 1.2rem; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.68);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 22px;
}
.breadcrumbs a { color: #ffd5b3; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
  align-items: start;
}
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); margin: 2.2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 1.25rem 0 1.6rem;
}
.benefit-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.benefit-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.benefit-card span {
  display: block;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 1.35rem 0 1.7rem;
}
.work-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.work-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work-gallery figcaption {
  padding: .75rem .85rem .85rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.35;
}
.side-card {
  position: sticky;
  top: 106px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.side-card h3 { color: var(--white); }
.side-card p { color: rgba(255,255,255,.75); }
.side-card .button { width: 100%; margin-top: 10px; }
.side-list { display: grid; gap: 8px; margin: 16px 0; }
.side-list a { color: rgba(255,255,255,.78); font-weight: 800; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }

.site-footer {
  background: #151c1f;
  color: rgba(255,255,255,.75);
  padding: 54px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h3, .footer-grid strong { color: var(--white); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: .88rem;
}
.todo-note {
  display: inline-flex;
  padding: .6rem .75rem;
  border-radius: 14px;
  background: rgba(199,106,42,.12);
  color: #ffe0c7;
  border: 1px solid rgba(199,106,42,.25);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 83px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-menu[data-open="true"] { display: flex; }
  .nav-menu a { border-radius: 14px; padding: .86rem .9rem; }
  .header-cta { display: none; }
  .trust-strip, .service-grid, .steps, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header, .split, .feature-row, .contact-box, .content-grid { grid-template-columns: 1fr; }
  .side-card { position: relative; top: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .work-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-wrap { min-height: 74px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
  .brand-name { font-size: .82rem; }
  .brand-sub { font-size: .58rem; }
  .hero { min-height: 660px; }
  .hero::before { background-position: 58% center; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -56px; }
  .section { padding: 70px 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .work-gallery { grid-template-columns: 1fr; }
  .service-grid, .steps, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 70px 0; }
}
