/* Ridgeline Exterior Cleaning — demo site
   Palette deliberately minimal: the work photos are the colour. */

:root {
  --ink:      #0d1420;
  --ink-2:    #1c2836;
  --slate:    #5a6b7f;
  --line:     #dbe2ea;
  --wash:     #f4f7fa;
  --white:    #ffffff;
  --accent:   #0a7cff;
  --accent-d: #0056bd;
  --go:       #ff6a1a;
  --go-d:     #e05300;
  --star:     #f5a623;
  --ok:       #12855a;
  --shadow:   0 2px 8px rgba(13,20,32,.08);
  --shadow-l: 0 12px 32px rgba(13,20,32,.14);
  --wrap:     1180px;
  --r:        10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 17px;
  padding-bottom: 64px; /* mobile call bar */
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r); padding: 15px 26px; line-height: 1.2;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--go); color: #fff; box-shadow: 0 3px 0 var(--go-d); }
.btn-go:hover { background: #ff7d36; }
.btn-blue { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-d); }
.btn-blue:hover { background: #2a8fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-mk {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent) 0%, #05408f 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
}
.logo-tx { font-weight: 800; font-size: 18px; letter-spacing: -.3px; line-height: 1.15; }
.logo-tx small { display: block; font-weight: 500; font-size: 11px; color: var(--slate);
  letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.hdr-tel { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hdr-tel .num { font-weight: 800; font-size: 19px; letter-spacing: -.2px; white-space: nowrap; }
.hdr-tel small { display: block; font-size: 11px; color: var(--ok); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px;
  cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(165deg, #0d1420 0%, #16283f 55%, #0a2a4d 100%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(760px 420px at 78% 12%, rgba(10,124,255,.3), transparent 70%);
}
.hero-in { position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.02fr 1fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: #7fc0ff; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: #7fc0ff; }
.hero h1 { font-size: 47px; line-height: 1.08; letter-spacing: -1.3px; font-weight: 800;
  margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #6fb6ff; }
.hero p.lede { font-size: 18.5px; color: #c2d2e4; margin-bottom: 26px; max-width: 33em; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 26px; }

/* review badge — above the fold, per the teardowns */
.revbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.stars { color: var(--star); font-size: 17px; letter-spacing: 2px; }
.revbar b { font-size: 15px; }
.revbar span { color: #9fb3c8; font-size: 14.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  font-weight: 700; padding: 6px 12px; border-radius: 100px;
  background: rgba(255,255,255,.1); color: #dce8f5; border: 1px solid rgba(255,255,255,.16); }

/* ---------- before / after slider ---------- */
.ba-card { background: #fff; border-radius: 14px; padding: 11px; box-shadow: var(--shadow-l); }
.ba { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  cursor: ew-resize; user-select: none; touch-action: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-tag { position: absolute; bottom: 12px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 1.1px; text-transform: uppercase; padding: 6px 12px; border-radius: 5px;
  color: #fff; z-index: 3; }
.ba-tag.b { left: 12px; background: rgba(13,20,32,.82); }
.ba-tag.a { right: 12px; background: rgba(18,133,90,.92); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); z-index: 4; }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.3); display: grid; place-items: center;
  color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.ba-cap { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 6px 4px; font-size: 14px; color: var(--slate); }
.ba-cap b { color: var(--ink); }

/* concrete + siding textures, generated — swap for real photos */
.tex-dirty {
  background:
    radial-gradient(circle at 22% 34%, rgba(66,54,38,.55) 0 9%, transparent 34%),
    radial-gradient(circle at 71% 62%, rgba(54,46,32,.5) 0 11%, transparent 38%),
    radial-gradient(circle at 45% 82%, rgba(72,60,42,.45) 0 8%, transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(48,42,30,.4) 0 7%, transparent 28%),
    repeating-linear-gradient(94deg, rgba(60,52,38,.16) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, #7d7565 0%, #6b6354 48%, #5c5548 100%);
}
.tex-clean {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.5) 0 12%, transparent 40%),
    repeating-linear-gradient(94deg, rgba(255,255,255,.14) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, #d8dade 0%, #c6c9ce 50%, #b4b8be 100%);
}
.tex-siding-d {
  background:
    radial-gradient(circle at 18% 70%, rgba(74,86,58,.5) 0 13%, transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(84,94,64,.42) 0 10%, transparent 36%),
    repeating-linear-gradient(0deg, rgba(40,44,34,.22) 0 2px, transparent 2px 17px),
    linear-gradient(150deg, #9a9c86 0%, #85886f 100%);
}
.tex-siding-c {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 2px, transparent 2px 17px),
    linear-gradient(150deg, #f2f4f0 0%, #dfe3dc 100%);
}
.tex-deck-d {
  background:
    radial-gradient(circle at 60% 40%, rgba(58,44,28,.5) 0 14%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(48,36,22,.3) 0 4px, transparent 4px 26px),
    linear-gradient(140deg, #7a6144 0%, #64503a 100%);
}
.tex-deck-c {
  background:
    repeating-linear-gradient(90deg, rgba(120,80,40,.22) 0 4px, transparent 4px 26px),
    linear-gradient(140deg, #c99a63 0%, #b0844f 100%);
}
.tex-roof-d {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(30,36,30,.55) 0 16%, transparent 46%),
    repeating-linear-gradient(0deg, rgba(28,32,28,.3) 0 3px, transparent 3px 14px),
    linear-gradient(150deg, #6c6f66 0%, #52564e 100%);
}
.tex-roof-c {
  background:
    repeating-linear-gradient(0deg, rgba(60,66,60,.24) 0 3px, transparent 3px 14px),
    linear-gradient(150deg, #98a09b 0%, #7c847f 100%);
}

/* ---------- trust strip ---------- */
.strip { background: var(--wash); border-bottom: 1px solid var(--line); padding: 20px 0; }
.strip-in { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.strip-i { display: flex; align-items: center; gap: 10px; font-weight: 650;
  font-size: 15px; color: var(--ink-2); }
.strip-i i { font-style: normal; color: var(--ok); font-size: 18px; }

/* ---------- sections ---------- */
.sec { padding: 78px 0; }
.sec-alt { background: var(--wash); }
.sec-hd { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.sec-hd h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.9px; margin-bottom: 13px; }
.sec-hd p { color: var(--slate); font-size: 17.5px; }
.kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 11px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: #c2d4e8; }
.svc-img { aspect-ratio: 16/10; }
.svc-b { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-size: 19px; margin-bottom: 7px; letter-spacing: -.3px; }
.svc p { font-size: 15px; color: var(--slate); margin-bottom: 15px; flex: 1; }
.svc .price { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 14px;
  padding-top: 13px; border-top: 1px solid var(--line); }
.svc .price span { font-weight: 500; color: var(--slate); font-size: 13.5px; display: block; }
.svc a.more { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.svc a.more::after { content: " →"; }

/* ---------- quote calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px; box-shadow: var(--shadow); }
.calc h3 { font-size: 22px; margin-bottom: 5px; letter-spacing: -.4px; }
.calc > p.sub { color: var(--slate); font-size: 15px; margin-bottom: 22px; }
.fld { margin-bottom: 20px; }
.fld label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.surfaces { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.surf { position: relative; }
.surf input { position: absolute; opacity: 0; pointer-events: none; }
.surf span {
  display: block; text-align: center; padding: 13px 8px; border-radius: 9px;
  border: 1.5px solid var(--line); font-weight: 650; font-size: 14.5px;
  cursor: pointer; transition: .13s; background: #fff;
}
.surf input:checked + span { border-color: var(--accent); background: #eaf4ff;
  color: var(--accent-d); box-shadow: inset 0 0 0 1px var(--accent); }
.surf span:hover { border-color: #a9c7e8; }
.rangewrap { display: flex; align-items: center; gap: 15px; }
input[type=range] { flex: 1; accent-color: var(--accent); height: 6px; }
.sqft-out { min-width: 108px; text-align: right; font-weight: 800; font-size: 19px;
  font-variant-numeric: tabular-nums; }
.sqft-out small { display: block; font-weight: 500; font-size: 12px; color: var(--slate); }
.result { background: linear-gradient(150deg, #0d1420, #17304f); color: #fff;
  border-radius: 11px; padding: 22px 24px; margin: 24px 0 18px; }
.result .lbl { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
  color: #86a8cc; font-weight: 700; margin-bottom: 6px; }
.result .amt { font-size: 37px; font-weight: 800; letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.result .note { font-size: 13.5px; color: #a8c0d8; margin-top: 8px; }
.calc-fine { font-size: 13px; color: var(--slate); text-align: center; margin-top: 13px; }
.calc-side h2 { font-size: 33px; letter-spacing: -.8px; margin-bottom: 15px; line-height: 1.15; }
.calc-side > p { color: var(--slate); font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; }
.ticks li { display: flex; gap: 12px; margin-bottom: 15px; font-size: 16px; align-items: flex-start; }
.ticks i { font-style: normal; color: #fff; background: var(--ok); width: 23px; height: 23px;
  border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none;
  margin-top: 2px; font-weight: 700; }
.ticks b { display: block; }
.ticks span { color: var(--slate); font-size: 15px; }

/* ---------- gallery ---------- */
.filters { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.fbtn { font: inherit; font-weight: 650; font-size: 14.5px; padding: 10px 20px;
  border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-2); cursor: pointer; transition: .13s; }
.fbtn:hover { border-color: #a9c7e8; }
.fbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gitem { border-radius: 11px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gitem.hide { display: none; }
.gitem .ba { aspect-ratio: 3/2; border-radius: 0; }
.gitem .cap { padding: 14px 16px; font-size: 14.5px; }
.gitem .cap b { display: block; margin-bottom: 2px; }
.gitem .cap span { color: var(--slate); font-size: 13.5px; }

/* ---------- reviews ---------- */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.rev .stars { font-size: 15px; margin-bottom: 12px; }
.rev p { font-size: 15.5px; margin-bottom: 18px; }
.rev .who { display: flex; align-items: center; gap: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 15px; flex: none;
  background: linear-gradient(140deg, var(--accent), #05408f); }
.who b { display: block; font-size: 15px; }
.who span { color: var(--slate); font-size: 13.5px; }

/* ---------- maintenance plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 940px;
  margin: 0 auto; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 28px;
  text-align: center; position: relative; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow-l); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; }
.plan h3 { font-size: 19px; margin-bottom: 6px; }
.plan .p { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 4px; }
.plan .p small { font-size: 15px; font-weight: 500; color: var(--slate); }
.plan ul { list-style: none; text-align: left; margin: 20px 0; }
.plan li { font-size: 15px; padding: 8px 0 8px 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ---------- final CTA ---------- */
.cta { background: linear-gradient(150deg, #0d1420, #10375e); color: #fff; padding: 74px 0; }
.cta-in { text-align: center; max-width: 700px; margin: 0 auto; }
.cta h2 { font-size: 39px; letter-spacing: -1.1px; margin-bottom: 14px; line-height: 1.13; }
.cta p { font-size: 18.5px; color: #bcd0e4; margin-bottom: 30px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-tel { display: block; margin-top: 26px; font-size: 15px; color: #9fb8d0; }
.cta-tel a { color: #fff; font-weight: 800; font-size: 25px; text-decoration: none;
  display: block; margin-top: 4px; letter-spacing: -.4px; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #93a6ba; padding: 54px 0 0; font-size: 14.5px; }
.ft-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 40px; }
.ft h4 { color: #fff; font-size: 15px; margin-bottom: 15px; letter-spacing: .2px; }
.ft ul { list-style: none; }
.ft li { margin-bottom: 9px; }
.ft a { color: #93a6ba; text-decoration: none; }
.ft a:hover { color: #fff; }
.ft .logo-tx { color: #fff; }
.ft .logo-tx small { color: #7d90a4; }
.ft-blurb { margin: 16px 0 18px; max-width: 34em; }
/* service-area towns — pure local SEO, per Keystone's 100+ town footer */
.towns { border-top: 1px solid #22303f; padding: 24px 0; }
.towns h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #7d90a4; }
.towns p { font-size: 13.5px; line-height: 1.9; color: #6f8296; }
.ft-btm { border-top: 1px solid #22303f; padding: 20px 0 28px; display: flex;
  justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.built { color: #6f8296; }
.built a { color: #9fc9f5; font-weight: 650; }

/* ---------- sticky mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  background: #fff; border-top: 1px solid var(--line); padding: 9px 12px;
  gap: 9px; box-shadow: 0 -3px 14px rgba(13,20,32,.1); }
.callbar .btn { flex: 1; padding: 14px 10px; font-size: 15.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: 39px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; gap: 34px; }
  .gal, .revs, .plans { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hdr-in { height: 64px; gap: 10px; }
  .logo-mk { width: 36px; height: 36px; font-size: 17px; }
  .logo-tx { font-size: 16px; }
  .logo-tx small { display: none; }
  .hdr-tel { margin-left: auto; }
  .hdr-tel small { display: none; }
  .revbar > span:not(.pill):not(.stars) { display: none; }
  .hdr-tel .num { font-size: 16.5px; }
  .burger { display: block; margin-left: 4px; padding: 6px; }
  .nav.open { top: 64px; }
  .nav.open { display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 18px; box-shadow: var(--shadow); }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 31px; letter-spacing: -.8px; }
  .hero p.lede { font-size: 16.5px; }
  .sec { padding: 54px 0; }
  .sec-hd h2, .cta h2 { font-size: 28px; letter-spacing: -.6px; }
  .svc-grid, .gal, .revs, .plans { grid-template-columns: 1fr; }
  .strip-in { gap: 18px 26px; }
  .strip-i { font-size: 14px; }
  .calc { padding: 22px; }
  .result .amt { font-size: 31px; }
  .ft-top { grid-template-columns: 1fr; gap: 30px; }
  .callbar { display: flex; }
  .cta-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 400px) {
  .hdr-tel .num { font-size: 15px; }
  .logo-tx { font-size: 15px; }
}
