:root {
  color-scheme: light;
  --ink: #15211b;
  --forest: #083f2a;
  --forest-deep: #052b1d;
  --green: #0c7049;
  --lime: #b9cf56;
  --gold: #f2c744;
  --gold-light: #ffe07d;
  --paper: #f7f6f0;
  --white: #ffffff;
  --muted: #5d6862;
  --line: #d9ddd6;
  --shell: 1180px;
  --shadow: 0 24px 70px rgba(16, 35, 26, .16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3ef;
  --green: #65c494;
  --paper: #0e1511;
  --white: #17211c;
  --muted: #b1bcb5;
  --line: #344039;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color 200ms ease, background-color 200ms ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #ffffff; background: var(--forest-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.build-note { color: #ffffff; background: var(--forest-deep); font-size: .78rem; font-weight: 700; }
.build-note__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.build-note p { margin: 0; }
.build-note p:first-child { display: flex; align-items: center; gap: 9px; letter-spacing: .04em; text-transform: uppercase; }
.build-note p:last-child { color: rgba(255,255,255,.65); font-weight: 500; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,199,68,.16); }

.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-bar { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { width: fit-content; display: inline-flex; }
.brand img { width: 116px; height: auto; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav-links a { position: relative; font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.theme-toggle:hover { color: var(--green); background: var(--paper); border-color: var(--green); }
.theme-icon { grid-area: 1 / 1; width: 20px; transition: opacity 200ms ease, transform 200ms ease; }
.theme-icon-moon { opacity: 0; transform: rotate(-20deg); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: rotate(20deg); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: rotate(0); }
.nav-call { min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; gap: 9px; color: #ffffff; background: var(--green); font-size: .9rem; font-weight: 800; text-decoration: none; transition: background-color 200ms ease; }
.nav-call:hover { background: var(--forest-deep); }
.nav-call svg { width: 18px; }
html[data-theme="dark"] .nav-call { color: #061a10; }

.hero { position: relative; min-height: 620px; overflow: hidden; }
.blueprint { position: absolute; inset: 0; opacity: .42; pointer-events: none; background-image: linear-gradient(rgba(8,63,42,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(8,63,42,.07) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000 0%, transparent 75%); }
.hero-grid { position: relative; min-height: 620px; padding: 62px 0 68px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr); align-items: center; gap: clamp(50px,7vw,100px); }
.eyebrow { margin-bottom: 14px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: var(--gold); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(2.25rem,3.7vw,3.25rem); font-weight: 800; }
.hero h1 span { display: block; color: var(--green); }
.hero h1 .hero-title-line { color: inherit; white-space: nowrap; }
.hero-lead { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 1.06rem; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.button-gold { padding: 13px 18px 13px 20px; color: var(--ink); background: var(--gold); box-shadow: 6px 6px 0 var(--forest); }
.button-gold:hover { background: var(--gold-light); }
.button-gold svg { width: 18px; }
.button-text { min-height: auto; padding: 4px 0; color: var(--green); border-bottom: 2px solid var(--green); }
.button-text:hover { color: var(--forest-deep); border-color: var(--forest-deep); }
.hero-meta { margin-top: 40px; padding-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; border-top: 1px solid var(--line); }
.hero-meta div { padding-right: 10px; }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { margin-bottom: 2px; font-size: .77rem; }
.hero-meta span { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.hero-meta a { text-underline-offset: 3px; transition: color 200ms ease; }
.hero-meta a:hover { color: var(--green); }

.hero-visual { position: relative; min-height: 490px; }
.roof-frame, .roof-photo { position: absolute; clip-path: polygon(50% 0,100% 17%,100% 100%,0 100%,0 17%); }
.roof-frame { inset: 8px -14px -14px 14px; background: var(--gold); }
.roof-photo { inset: 0; background: url("assets/hero-roof.jpg") 58% center / cover no-repeat; box-shadow: var(--shadow); }
.project-tag { position: absolute; z-index: 2; right: -22px; bottom: 30px; width: min(335px,80%); padding: 16px 18px; display: flex; align-items: center; gap: 13px; color: #ffffff; background: var(--forest-deep); box-shadow: var(--shadow); }
.project-tag__icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; color: var(--forest-deep); background: var(--gold); }
.project-tag__icon svg { width: 21px; }
.project-tag small, .project-tag strong { display: block; }
.project-tag small { margin-bottom: 2px; color: rgba(255,255,255,.65); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.project-tag strong { font-size: .86rem; }

.service-band { position: relative; color: #ffffff; background: var(--forest); overflow: hidden; }
.service-band::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 300px; height: 180px; border: 28px solid rgba(255,255,255,.035); transform: rotate(-34deg); }
.service-band__inner { position: relative; z-index: 1; padding: 70px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.service-intro { padding-right: 35px; border-right: 1px solid rgba(255,255,255,.14); }
.service-intro h2 { max-width: 360px; margin: 0; font-size: clamp(1.9rem,2.7vw,2.7rem); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.service-list article { display: flex; align-items: flex-start; gap: 15px; }
.service-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(255,255,255,.18); }
.service-icon svg { width: 20px; }
.service-list h3 { margin: 1px 0 5px; font-size: 1rem; letter-spacing: -.01em; }
.service-list p { margin: 0; color: rgba(255,255,255,.64); font-size: .83rem; line-height: 1.55; }

.work-section { padding: 105px 0; background: var(--white); transition: background-color 200ms ease; }
.work-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(60px,8vw,110px); }
.work-gallery { position: relative; min-height: 570px; }
.work-gallery figure { margin: 0; overflow: hidden; background: #d8ddd9; }
.work-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { position: absolute; inset: 0 95px 70px 0; }
.photo-small { position: absolute; right: 0; bottom: 0; width: 44%; height: 245px; border: 10px solid var(--white); box-shadow: var(--shadow); transition: border-color 200ms ease; }
.gallery-caption { position: absolute; z-index: 2; left: 26px; bottom: 37px; margin: 0; padding: 13px 17px; color: #ffffff; background: var(--forest-deep); font-size: .76rem; font-weight: 700; }
.gallery-caption span { color: var(--gold); }
.work-copy h2 { max-width: 580px; margin-bottom: 22px; font-size: clamp(2.1rem,3.4vw,3.2rem); }
.work-copy > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); font-size: 1rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 14px 0; display: flex; align-items: flex-start; gap: 13px; border-top: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list svg { width: 20px; flex: 0 0 20px; margin-top: 2px; color: var(--green); stroke-width: 2.4; }
.check-list strong, .check-list small { display: block; }
.check-list strong { margin-bottom: 1px; font-size: .87rem; }
.check-list small { color: var(--muted); font-size: .75rem; }

.areas-section { padding: 86px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(45px,6vw,80px); }
.areas-copy { position: relative; padding-left: 72px; }
.areas-pin { position: absolute; top: 2px; left: 0; width: 50px; height: 58px; display: grid; place-items: center; color: var(--green); border: 1px solid var(--line); }
.areas-pin::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 100%; height: 100%; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); pointer-events: none; }
.areas-pin svg { width: 24px; }
.areas-copy h2 { max-width: 480px; margin-bottom: 18px; font-size: clamp(2rem,3vw,2.85rem); }
.areas-copy > p:not(.eyebrow):not(.areas-help) { max-width: 480px; margin-bottom: 20px; color: var(--muted); font-size: .95rem; }
.areas-help { margin: 0; font-size: .82rem; font-weight: 700; }
.areas-help a { color: var(--green); text-underline-offset: 3px; }
.map-wrap { position: relative; min-width: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--gold); }
.map-heading { min-height: 46px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); background: var(--white); border-bottom: 1px solid var(--line); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.map-heading span:last-child { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.map-key { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--green); }
.map-key-home { margin-left: 5px; background: var(--gold); box-shadow: 0 0 0 2px var(--forest-deep); }
#service-map { z-index: 1; width: 100%; height: 410px; background: #dfe5dd; }
#service-map.map-unavailable { display: grid; place-items: center; }
#service-map.map-unavailable::after { content: "Map unavailable. Service areas are listed below."; max-width: 250px; padding: 20px; color: var(--muted); font-size: .82rem; text-align: center; }
#service-map .leaflet-control-zoom a { color: #173d29; }
#service-map .leaflet-control-attribution { font-size: 9px; }
.map-tooltip { padding: 4px 7px; color: #173d29; border: 0; border-radius: 0; box-shadow: 0 4px 14px rgba(0,0,0,.16); font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 700; }
.map-tooltip::before { border-top-color: #ffffff; }
.map-tooltip-home { color: #ffffff; background: var(--forest-deep); }
.map-tooltip-home::before { border-top-color: var(--forest-deep); }
.area-list { grid-column: 1 / -1; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.area-list li { min-height: 48px; padding: 12px 10px 12px 26px; position: relative; display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
.area-list li::before { content: ""; position: absolute; left: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.contact-section { padding: 0 0 90px; background: var(--white); }
.contact-panel { position: relative; padding: 52px 58px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; color: #ffffff; background: var(--forest-deep); box-shadow: 12px 12px 0 var(--gold); overflow: hidden; }
.contact-panel::before { content: ""; position: absolute; top: -120px; left: 26%; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { margin-bottom: 14px; font-size: clamp(2.1rem,3vw,3rem); }
.contact-copy > p:last-child { max-width: 440px; margin: 0; color: rgba(255,255,255,.66); font-size: .94rem; }
.contact-methods { position: relative; z-index: 1; display: grid; gap: 8px; }
.contact-methods > a, .contact-methods .address { min-height: 68px; padding: 12px 16px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.contact-methods > a { text-decoration: none; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease; }
.contact-methods > a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.contact-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); background: rgba(0,0,0,.15); }
.contact-icon svg { width: 19px; }
.contact-methods small, .contact-methods strong { display: block; }
.contact-methods small { color: rgba(255,255,255,.55); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-methods strong { font-size: .87rem; overflow-wrap: anywhere; }
.method-arrow { width: 18px; color: var(--gold); }

.site-footer { padding: 40px 0; color: rgba(255,255,255,.6); background: #041d14; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: .74rem; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 72px; }
.footer-brand p { max-width: 220px; margin: 0; line-height: 1.45; }
.social-links { display: flex; justify-content: center; gap: 18px; }
.social-links a { color: #ffffff; font-weight: 700; text-decoration: none; transition: color 200ms ease; }
.social-links a:hover { color: var(--gold); }
.copyright { margin: 0; text-align: right; }
.mobile-call { display: none; }

html[data-theme="dark"] .blueprint { opacity: .22; }
html[data-theme="dark"] .button-gold { color: #15211b; }
html[data-theme="dark"] .service-band { background: #073522; }
html[data-theme="dark"] .contact-panel { background: #041f15; }
html[data-theme="dark"] #service-map .leaflet-tile-pane { filter: brightness(.68) saturate(.7) contrast(1.08); }

a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .hero h1 { font-size: clamp(2.25rem,4.5vw,2.8rem); }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { display: flex; gap: 8px; }
  .hero-visual { min-height: 430px; }
  .service-band__inner { grid-template-columns: 1fr; gap: 40px; }
  .service-intro { padding: 0 0 30px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .work-grid { grid-template-columns: 1fr; }
  .work-gallery { max-width: 720px; width: 100%; }
  .areas-grid { grid-template-columns: 1fr; gap: 45px; }
  .map-wrap { width: 100%; }
  .area-list { grid-template-columns: repeat(4,1fr); }
  .contact-panel { grid-template-columns: 1fr; gap: 35px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px),var(--shell)); }
  body { padding-bottom: 66px; }
  .build-note__inner { min-height: 34px; justify-content: center; }
  .build-note p:last-child { display: none; }
  .nav-bar { min-height: 80px; grid-template-columns: 1fr auto; }
  .brand img { width: 95px; }
  .nav-links { display: none; }
  .theme-toggle, .nav-call { width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-call span { display: none; }
  .hero-grid { min-height: auto; padding: 50px 0 62px; grid-template-columns: 1fr; gap: 54px; }
  .hero h1 { font-size: clamp(2.35rem,10vw,3.15rem); }
  .hero-lead { font-size: 1rem; }
  .hero-meta { grid-template-columns: repeat(3,1fr); }
  .hero-meta div { display: block; }
  .hero-visual { min-height: 390px; }
  .roof-frame { inset: 7px -7px -10px 10px; }
  .project-tag { right: -2px; bottom: 18px; }
  .service-band__inner { padding: 60px 0; }
  .service-list { grid-template-columns: 1fr; gap: 26px; }
  .work-section { padding: 75px 0; }
  .work-gallery { min-height: 460px; }
  .photo-main { right: 55px; bottom: 55px; }
  .photo-small { width: 46%; height: 185px; border-width: 7px; }
  .gallery-caption { left: 14px; bottom: 25px; }
  .areas-section { padding: 68px 0; }
  .areas-copy { padding-left: 0; padding-top: 74px; }
  .area-list { grid-template-columns: repeat(2,1fr); }
  .map-heading span:first-child { display: none; }
  .map-heading { justify-content: center; }
  #service-map { height: 360px; }
  .contact-section { padding-bottom: 70px; }
  .contact-panel { width: calc(100% - 28px); padding: 38px 22px; box-shadow: 7px 7px 0 var(--gold); }
  .contact-methods > a, .contact-methods .address { grid-template-columns: 36px 1fr auto; padding: 10px; }
  .social-links { flex-wrap: wrap; }
  .mobile-call { position: fixed; z-index: 50; right: 12px; bottom: 12px; left: 12px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); background: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .88rem; font-weight: 800; text-decoration: none; }
  .mobile-call svg { width: 18px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(1.8rem,8vw,2.15rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .button-gold { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; gap: 7px; }
  .hero-meta div { display: flex; gap: 8px; }
  .hero-visual { min-height: 345px; }
  .project-tag { width: 92%; }
  .work-gallery { min-height: 400px; }
  .photo-main { right: 38px; }
  .photo-small { height: 155px; }
  .gallery-caption { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
