*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0; color: var(--navy-900); }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
[data-icon] { display: inline-flex; }
[data-icon] svg { width: 1.15em; height: 1.15em; }
/* round badges that also carry data-icon must stay perfectly centered */
.icon-badge[data-icon] { display: inline-grid; place-items: center; align-items: center; justify-content: center; }
.icon-badge svg { display: block; margin: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 15px/1 var(--font); letter-spacing: .01em;
  padding: 13px 20px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-accent { background: var(--blue-500); color: #fff; box-shadow: 0 6px 18px rgba(47,127,208,.35); }
.btn-accent:hover { background: #2a73bd; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--navy-700); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font: 600 15px var(--font); color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--navy-700); }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700) !important; font-weight: 700 !important; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2.5px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, #2a5f9a 0%, transparent 60%), linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0 140px; }
.eyebrow { font: 700 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 14px; }
.eyebrow.dark { color: var(--blue-500); }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); font-weight: 900; letter-spacing: -.015em; }
.hero h1 span { color: var(--blue-400); }
.lead { font-size: 19px; color: #c9d7e8; margin: 20px 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dce6f2; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points [data-icon] { color: var(--blue-400); }

.scenery { position: absolute; inset: auto 0 0 0; height: 300px; z-index: 1; pointer-events: none; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; }
.ridge.r1 { height: 230px; background: #1a3c66; opacity: .55;
  clip-path: polygon(0 70%, 8% 52%, 17% 62%, 28% 30%, 38% 50%, 47% 38%, 58% 58%, 68% 22%, 79% 46%, 90% 34%, 100% 50%, 100% 100%, 0 100%); }
.ridge.r2 { height: 170px; background: #142f52; opacity: .85;
  clip-path: polygon(0 55%, 11% 40%, 22% 62%, 34% 35%, 46% 60%, 57% 42%, 70% 66%, 82% 38%, 93% 58%, 100% 45%, 100% 100%, 0 100%); }
.ridge.r3 { height: 90px; background: var(--navy-900);
  clip-path: polygon(0 40%, 15% 60%, 30% 35%, 48% 55%, 64% 30%, 80% 52%, 100% 32%, 100% 100%, 0 100%); }
.pines { position: absolute; right: 2%; bottom: 40px; display: flex; align-items: flex-end; gap: 2px; }
.pines i { display: block; width: 46px; height: 120px; background: var(--navy-900);
  clip-path: polygon(50% 0, 64% 22%, 58% 22%, 74% 44%, 66% 44%, 84% 68%, 74% 68%, 96% 92%, 54% 92%, 54% 100%, 46% 100%, 46% 92%, 4% 92%, 26% 68%, 16% 68%, 34% 44%, 26% 44%, 42% 22%, 36% 22%); }
.pines i:nth-child(2) { height: 160px; width: 58px; } .pines i:nth-child(3) { height: 96px; width: 40px; }
.pines i:nth-child(4) { height: 140px; width: 52px; } .pines i:nth-child(5) { height: 180px; width: 64px; }
.pines i:nth-child(6) { height: 110px; width: 44px; } .pines i:nth-child(7) { height: 150px; width: 54px; }
.pines i:nth-child(odd) { opacity: .92; }

.card-stack { display: grid; place-items: center; perspective: 1200px; }
.biz-card { position: relative; overflow: hidden; width: min(420px, 100%); aspect-ratio: 1.75; background: #fff; border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.2); transform: rotate(-3deg) rotateY(-8deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.biz-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(220,230,242,.55) 55%, rgba(220,230,242,.55) 100%);
  clip-path: polygon(62% 40%, 74% 18%, 84% 34%, 92% 20%, 100% 32%, 100% 100%, 50% 100%); }
.biz-card .upw-logo { position: relative; z-index: 1; }
.biz-services { position: relative; z-index: 1; font: 600 11.5px var(--font); color: var(--navy-800); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.biz-services i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); }
.biz-stripe { position: absolute; right: -10px; bottom: -10px; width: 46%; height: 34%; background: var(--navy-900);
  clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.biz-stripe::before { content: ""; position: absolute; inset: 0; background: var(--blue-500); clip-path: polygon(100% 0, 100% 14%, 13% 100%, 0 100%); }

/* trust strip */
.strip { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 3; margin-top: -1px; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 26px 18px; border-right: 1px solid var(--line); }
.strip-in > div:last-child { border-right: 0; }
.strip-in [data-icon] { grid-row: span 2; color: var(--blue-500); }
.strip-in [data-icon] svg { width: 30px; height: 30px; }
.strip-in b { font: 700 15px var(--font); color: var(--navy-900); }
.strip-in small { color: var(--ink-soft); font-size: 13.5px; }

/* sections */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.section-head p:last-child:not(.eyebrow) { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c8d6e6; }
.svc h3 { font-size: 20px; font-weight: 800; }
.svc p { color: var(--ink-soft); font-size: 15px; }
.svc .svc-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.svc .svc-price b { font: 800 16px var(--font); color: var(--navy-700); }
.svc .svc-add { font: 700 14px var(--font); color: var(--blue-500); text-decoration: none; }
.skeleton { height: 250px; border-radius: var(--radius); background: linear-gradient(90deg, #f1f4f8 25%, #e7ecf2 50%, #f1f4f8 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* estimator */
.estimator { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.est-left { display: grid; gap: 22px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-head h3 { font-size: 19px; font-weight: 800; }
.step { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font: 800 14px var(--font); }
.est-services { display: grid; gap: 10px; }
.est-item { border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.est-item.on { border-color: var(--blue-500); background: #f6faff; }
.est-item > label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.est-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--navy-700); flex: none; }
.est-item .icon-badge { width: 40px; height: 40px; }
.est-item .icon-badge svg { width: 20px; height: 20px; }
.est-name { font: 700 15.5px var(--font); color: var(--navy-900); }
.est-desc { font-size: 13.5px; color: var(--ink-soft); }
.est-from { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.est-from b { display: block; font: 800 14px var(--font); color: var(--navy-700); }
.est-qty { display: none; padding: 0 16px 16px 70px; gap: 10px; align-items: center; flex-wrap: wrap; }
.est-item.on .est-qty { display: flex; }
.est-qty input[type=number] { width: 130px; }
.est-qty .unit { font-size: 14px; color: var(--ink-soft); }
.est-qty .hint { flex-basis: 100%; font-size: 12.5px; color: var(--ink-soft); }
.est-qty .range { flex: 1; min-width: 160px; accent-color: var(--blue-500); }
.est-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); outline: none; box-shadow: 0 0 0 3px rgba(47,127,208,.15); }
.field { display: grid; gap: 6px; font: 600 13.5px var(--font); color: var(--navy-900); }
.field-inline { display: grid; gap: 6px; font: 600 13.5px var(--font); color: var(--navy-900); min-width: 200px; }
.field.invalid input { border-color: var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span2 { grid-column: span 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.seg { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 0; }
.seg legend { font: 600 13.5px var(--font); color: var(--navy-900); margin-bottom: 6px; padding: 0; float: left; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 10px 20px; border: 1.5px solid var(--line); margin-left: -1.5px; font: 700 14px var(--font); cursor: pointer; background: #fff; }
.seg label:first-of-type span { border-radius: 10px 0 0 10px; margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 10px 10px 0; }
.seg input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; position: relative; z-index: 1; }
.seg input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 1px; }

.est-summary { position: sticky; top: 100px; display: grid; gap: 14px; }
.summary-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 40px rgba(11,31,56,.25); }
.summary-label { font: 700 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-400); }
.summary-total { font: 900 40px/1.1 var(--font); margin: 8px 0 4px; letter-spacing: -.01em; }
.summary-sub { color: #b7c7da; font-size: 14px; }
.summary-lines { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #dce6f2; }
.summary-lines li b { color: #fff; font-family: var(--font); white-space: nowrap; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 1em; }
.form-msg.err { color: #ffb4a8; }
.fine { margin-top: 12px; font-size: 12.5px; color: #93a8c0; }
.summary-contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.summary-contact a { display: inline-flex; gap: 6px; align-items: center; font: 800 16px var(--font); color: var(--navy-700); text-decoration: none; }

.thanks { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 48px 36px; text-align: center; box-shadow: var(--shadow); }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: #e3f4ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.thanks-icon svg { width: 32px; height: 32px; }
.thanks h3 { font-size: 26px; margin-bottom: 10px; }
.thanks p { color: var(--ink-soft); margin-bottom: 24px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--navy-700); font: 900 18px var(--font); margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 15px; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.review .stars { display: flex; gap: 2px; color: #f2b01e; margin-bottom: 12px; }
.review .stars svg { width: 18px; height: 18px; }
.review p { font-size: 15px; }
.review footer { margin-top: 14px; font: 700 14px var(--font); color: var(--navy-900); }
.review footer small { font: 400 13px var(--font-body); color: var(--ink-soft); }

/* area */
.area { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.area h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 18px; }
.area-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.area-list { font-size: 18px; color: #dce6f2; }
.area-note { margin-top: 14px; color: #93a8c0; font-size: 15px; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.contact-card h3 { font-size: 20px; }
.contact-row { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-row small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.contact-row b { font: 700 15.5px var(--font); color: var(--navy-900); word-break: break-word; }
.contact-row .icon-badge { width: 44px; height: 44px; }
.contact-row .icon-badge svg { width: 21px; height: 21px; }

/* footer */
.footer { background: var(--navy-900); color: #93a8c0; padding: 44px 0; border-top: 3px solid var(--blue-500); }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.footer-tag { font: italic 600 15px var(--font); color: #dce6f2; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-size: 14px; color: #c3d1e1; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin-top: 8px; }

/* responsive */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; padding: 64px 0 150px; }
  .card-stack { display: none; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .estimator { grid-template-columns: 1fr; }
  .est-summary { position: static; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in > div:nth-child(2) { border-right: 0; }
  .strip-in > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11,31,56,.08); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .steps, .area-in { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .services-grid, .reviews-grid, .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .panel { padding: 20px; }
  .est-qty { padding-left: 16px; }
  .est-from { display: none; }
  .hero-cta .btn { width: 100%; }
  .topbar .upw-logo { font-size: 13px !important; }
  .pines { right: -40px; transform: scale(.75); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
