/* Ridgeline Roofing & Exteriors (demo). Charcoal + storm orange. */
:root {
  --bg: #f4f3f1; --paper: #ffffff; --navy: #17191c; --navy-2: #26292e;
  --cobalt: #d9431f; --cobalt-deep: #b83617; --amber: #e8502e; --amber-deep: #c9401f; --amber-light: #ff7b57; --btn-ink: #ffffff;
  --ink: #16181b; --muted: #5b6067; --line: #e0dfdc; --tint: #fbe7e1;
  --on-dark: #d0d3d8; --on-dark-2: #9ea3ab; --foot: #0f1113; --hero-rgb: 20, 22, 25;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(50px, 7.6vw, 92px); }
h2 { font-size: clamp(38px, 5vw, 60px); }
h3 { font-size: 27px; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 54ch; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--cobalt); }

.emerg { background: var(--amber); color: var(--btn-ink); font-weight: 700; font-size: 15px; text-align: center; padding: 8px 16px; }
.emerg a { color: var(--btn-ink); }

.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); color: #fff; }
.head .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font: 700 24px/1 var(--display); letter-spacing: .01em; }
.logo i { width: 34px; height: 34px; border-radius: 8px; background: var(--cobalt); display: inline-flex; align-items: center; justify-content: center; }
.logo small { display: block; font: 600 11px/1 var(--body); letter-spacing: .12em; color: var(--on-dark-2); margin-top: 3px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--on-dark); text-decoration: none; }
.nav a:hover { color: #fff; }
@media (max-width: 960px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 10px; border: 0; background: var(--amber); color: var(--btn-ink); font: 700 17px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--amber-deep); }
.btn.blue { background: var(--cobalt); color: #fff; }
.btn.blue:hover { background: var(--cobalt-deep); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.sm { min-height: 46px; padding: 0 18px; font-size: 16px; }
@media (max-width: 520px) { .head .btn.sm span { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--hero-rgb), .95) 0%, rgba(var(--hero-rgb), .82) 45%, rgba(var(--hero-rgb), .3) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(var(--hero-rgb), .55) 0%, rgba(var(--hero-rgb), .94) 55%); } }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 84px; }
.hero h1 { max-width: 15ch; }
.hero .lede { color: var(--on-dark); margin-top: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.call-big { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.trustrow { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: var(--on-dark); }
.trustrow span { display: inline-flex; align-items: center; gap: 8px; }
.trustrow svg { color: var(--amber-light); }

/* Sections */
.sec { padding: 84px 0; }
.sec.white { background: var(--paper); }
.sec.dark { background: var(--navy); color: #fff; }
.sec.dark .lede { color: var(--on-dark); }
.sec.dark .eyebrow { color: var(--amber-light); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 680px; }

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svc { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc div { display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc .more { font-weight: 700; color: var(--cobalt); font-size: 15px; }
.svc:hover h3 { color: var(--cobalt); }
.svc.plain { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc.plain div { padding: 26px; }
.svc.plain p { color: var(--on-dark); }
.svc.plain ul { margin: 6px 0 0; padding-left: 18px; color: var(--on-dark); font-size: 15.5px; }

/* Why us */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.why img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; }
.points i { grid-row: span 2; width: 42px; height: 42px; border-radius: 10px; background: var(--tint); color: var(--cobalt); display: inline-flex; align-items: center; justify-content: center; }
.points b { font-size: 18px; }
.points span { color: var(--muted); font-size: 15.5px; }

/* Price table */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: 16px; }
.ptable th, .ptable td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: #e9edf1; font-size: 14px; font-weight: 700; color: var(--muted); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.ptable small { display: block; color: var(--muted); font-size: 14px; }
.tablewrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* Area */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.stars { color: var(--amber-deep); letter-spacing: 3px; }
.review p { font-size: 17px; }
.review small { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #e9edf1; padding: 3px 10px; border-radius: 999px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--cobalt); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

/* Quote form */
.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; } }
.callcard { display: grid; gap: 14px; align-content: start; }
.callcard .num { font: 700 clamp(40px, 5vw, 54px)/1 var(--display); color: var(--amber-light); text-decoration: none; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 16px; background: var(--paper); color: var(--ink); }
@media (max-width: 560px) { .form { padding: 22px 18px; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.f { display: grid; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid #c9d0d6; background: var(--bg); color: var(--ink); font: 400 16px var(--body); }
.f textarea { min-height: 90px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.urgent { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.urgent legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.urgent label { position: relative; }
.urgent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.urgent span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid #c9d0d6; font-weight: 600; font-size: 15px; }
.urgent input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.urgent input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.err { color: #b4232a; font-size: 14px; }
.done { display: grid; gap: 10px; padding: 28px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.done h3 { font-size: 34px; }

.foot { background: var(--foot); color: var(--on-dark-2); padding: 54px 0 120px; font-size: 15px; }
.foot .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot b { color: #fff; display: block; margin-bottom: 8px; }
.foot a { color: #fff; }
.foot .note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: 13.5px; color: var(--on-dark-2); }
@media (min-width: 900px) { .foot { padding-bottom: 54px; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: var(--navy); border-top: 1px solid var(--navy-2); }
.mbar .btn { min-height: 50px; padding: 0 12px; }
@media (min-width: 900px) { .mbar { display: none; } }

.crumbs { font-size: 14px; color: var(--on-dark-2); margin-bottom: 16px; }
.crumbs a { color: var(--on-dark); }
.signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sign { padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.sign b { font-size: 18px; }
.sign span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 360px) { .svcs { grid-template-columns: minmax(0, 1fr); } }

/* Shared additions for the Ridgeline and Northline demos */
.logo { gap: 11px; }
.logo svg.mark { width: 46px; height: auto; flex: none; }
.logo b { display: block; font: 700 31px/0.9 var(--display); letter-spacing: -.005em; }
.logo small { letter-spacing: .2em; font-size: 9.5px; }
@media (max-width: 520px) { .logo b { font-size: 26px; } .logo svg.mark { width: 38px; } }
.demo { background: #000; color: #c9d1d9; font-size: 13.5px; text-align: center; padding: 9px 16px; }
.demo a { color: #fff; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; text-align: center; padding: 6px 14px; border-radius: 10px; border: 1px solid #c9d0d6; font-weight: 600; font-size: 14.5px; line-height: 1.25; background: var(--paper); }
.chips input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chips .days { flex: 1 1 100%; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.days span { width: 100%; }
.prog { height: 6px; border-radius: 99px; background: #e5e8eb; overflow: hidden; }
.prog i { display: block; height: 100%; width: 50%; background: var(--amber); transition: width .25s; }
.steplabel { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.step { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.step > legend, .step > h3 { font: 700 28px/1.05 var(--display); padding: 0; margin-bottom: 2px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #c9d0d6; }
.btn.line:hover { background: #eef0f2; }
.done .sum { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; font-size: 15.5px; }
.done .sum li { display: flex; gap: 8px; flex-wrap: wrap; }
.done .sum b { min-width: 112px; }
.done p { color: var(--muted); }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: s; }
.steps3 li { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.steps3 li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--amber); color: var(--btn-ink); font: 700 22px var(--display); }
.steps3 { padding: 0; margin: 0; }
.steps3 b { font-size: 18px; }
.steps3 span { color: var(--muted); font-size: 15.5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 4px; }
.stat b { font: 700 clamp(34px, 4vw, 46px)/1 var(--display); color: var(--amber-light); }
.stat span { color: var(--on-dark); font-size: 14.5px; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.path { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.path .k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.path p { color: var(--muted); }
.path .more { font-weight: 700; color: var(--cobalt); }
.path:hover { border-color: var(--cobalt); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.facts li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.facts b { color: #fff; }
.facts span { color: var(--on-dark); }
@media (max-width: 420px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; } }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pagehero .wrap { padding-top: 64px; padding-bottom: 68px; }

.logo small { white-space: nowrap; }
@media (max-width: 360px) { .logo small { letter-spacing: .12em; } }
@media (max-width: 760px) { .hero .bgimg { object-position: 42% 60%; } }
@media (min-width: 900px) { .hero h1 { font-size: clamp(56px, 6.4vw, 82px); } }
.emerg a { white-space: nowrap; }

.logo img { height: 80px; width: auto; max-width: none; display: block; margin: 6px 0; }
@media (max-width: 420px) { .logo img { height: 60px; margin: 4px 0; } }
