/* R&R Exteriors: site styles. Straightforward, lead-first. */
:root {
  --ink: #0b0c0d;          /* near-black, brand */
  --ink-2: #15171a;
  --ink-3: #23262b;
  --lime: #80e000;         /* brand lime */
  --lime-d: #5fa800;       /* lime for text on white */
  --paper: #ffffff;
  --mist: #f3f5f2;         /* light section ground, faint green bias */
  --line: #dfe3dc;
  --text: #1b1e21;
  --muted: #5b6168;
  --silver: #b8bec4;
  --r: 10px;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Barlow Condensed", "Arial Narrow", "Barlow", system-ui, sans-serif;
  --wrap: 1180px;
  --gut: max(18px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--f-body); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: .2px; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: #000; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .8rem/1 var(--f-body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--lime-d); }
.dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lime { background: var(--lime); color: #071000; }
.btn-lime:hover { background: #93f01a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 3px solid var(--lime); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 60; }
.top { top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: .98rem; text-decoration: none; color: #e9ecef; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }
.nav .nav-mob { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; text-align: right; }
.top-phone small { font-size: .72rem; color: var(--silver); letter-spacing: .5px; text-transform: uppercase; }
.top-phone b { font-size: 1.08rem; color: #fff; white-space: nowrap; }
.login-link { font-size: .92rem; color: var(--silver); text-decoration: none; white-space: nowrap; }
.login-link:hover { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: transparent; color: #fff; border: 2px solid #3a3f45; border-radius: 8px; padding: 9px 14px; font: 700 .95rem var(--f-body); cursor: pointer; }
@media (max-width: 1220px) {
  .menu-btn { display: block; }
  .top-actions { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--ink); border-bottom: 3px solid var(--lime); padding: 8px var(--gut) 18px; }
  .top.open .nav { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid #23262b; font-size: 1.05rem; }
  .nav .nav-mob { display: block; }
  .nav .nav-mob.cta { color: var(--lime); }
  .brand img { height: 46px; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.92) 0%, rgba(8,9,10,.78) 45%, rgba(8,9,10,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 18px; max-width: 34rem; }
.hero-copy .sub { font-size: 1.12rem; color: #dfe3e6; }
.hero-copy .accent { color: var(--lime); }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 9px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(-45deg); }
.call-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 1rem; color: #cfd4d8; }
.call-line a { color: #fff; font-weight: 700; text-decoration: none; }
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(36px, 5vw, 64px); display: grid; gap: 14px; max-width: var(--wrap); }
.page-hero .sub { max-width: 40rem; color: #dfe3e6; font-size: 1.08rem; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.9), rgba(8,9,10,.55)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,9,10,.85), rgba(8,9,10,.92)); }
}

/* ---------- lead form ---------- */
.form { background: #fff; color: var(--text); border-radius: 14px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 18px 50px rgba(0,0,0,.28); display: grid; gap: 12px; border-top: 5px solid var(--lime); }
.form h3 { font-size: 1.55rem; }
.form .lede { color: var(--muted); font-size: .98rem; margin-top: -4px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--f-body); color: var(--text); background: #fff; border: 1.5px solid #c9cfd4; border-radius: 8px; padding: 11px 12px; min-height: 46px; }
.form textarea { min-height: 84px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 3px solid rgba(128,224,0,.45); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: #c62828; }
.form .req::after { content: " *"; color: #c62828; }
.form details { border: 1.5px dashed #c9cfd4; border-radius: 8px; padding: 10px 12px; }
.form details summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.form details[open] { display: grid; gap: 12px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form .radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.form .radios label, .form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .radios input, .form .consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--lime-d); }
.form .consent { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.form .consent a { color: inherit; }
.form button { width: 100%; font-size: 1.08rem; min-height: 54px; }
.form .fine { font-size: .8rem; color: var(--muted); text-align: center; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.msg.ok { background: #eaf8d6; color: #234300; }
.msg.err { background: #fdecea; color: #8a1c1c; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section { padding-block: clamp(48px, 7vw, 84px); }
.mist { background: var(--mist); }
.dark { background: var(--ink); color: #fff; }
.dark p { color: #cfd4d8; }
.head { display: grid; gap: 10px; max-width: 44rem; margin-bottom: clamp(24px, 3.5vw, 38px); }
.head p { color: var(--muted); font-size: 1.05rem; }
.dark .head p { color: #cfd4d8; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 16 / 10; }
.stack { display: grid; gap: 16px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.card .photo { border-radius: 0; aspect-ratio: 3 / 2; }
.card .body { padding: 20px 20px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card .body p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: 6px; font-weight: 700; color: var(--lime-d); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card .photo { aspect-ratio: 16 / 9; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding: 22px 20px 20px 20px; border-radius: 12px; background: var(--ink-2); border: 1px solid #25292e; display: grid; gap: 6px; }
.mist .step, .step.light { background: #fff; border-color: var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: #071000; font: 700 1.05rem var(--f-head); margin-bottom: 6px; }
.step p { font-size: .97rem; }
.mist .step p { color: var(--muted); }
@media (max-width: 860px) { .steps, .steps.six { grid-template-columns: 1fr; } }

/* checks list */
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border-left: 3px solid var(--lime-d); border-bottom: 3px solid var(--lime-d); transform: rotate(-45deg); }
.dark .checks li::before { border-color: var(--lime); }

/* tiles + faq */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.tile p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--lime-d); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.prose { display: grid; gap: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 10px; }
.notice { border-left: 4px solid var(--lime); background: var(--ink-2); padding: 14px 16px; border-radius: 6px; font-size: .95rem; }
.notice.light { background: var(--mist); color: var(--text); }

/* truck band */
.truck { border-radius: var(--r); overflow: hidden; aspect-ratio: 1600 / 498; background: #222; }
.truck img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* areas */
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 600; }

/* CTA band */
.band { background: var(--lime); color: #071000; padding-block: 34px; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.band p { font-weight: 600; }
.band .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.band .btn-line { color: #071000; }

/* contact info */
.contact-rows { display: grid; gap: 14px; margin-top: 8px; }
.contact-rows small { display: block; font-size: .78rem; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.dark .contact-rows small { color: var(--silver); }
.contact-rows a, .contact-rows b { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: inherit; }

/* login */
.portals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal { background: var(--ink-2); border: 1px solid #25292e; border-radius: 12px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.portal .ico { width: 44px; height: 44px; color: var(--lime); }
.portal ul { margin: 0; padding-left: 18px; color: #cfd4d8; font-size: .95rem; }
.portal .btn { margin-top: 8px; }
.signin { max-width: 460px; }
@media (max-width: 860px) { .portals { grid-template-columns: 1fr; } }

/* footer */
footer { background: var(--ink); color: #cfd4d8; padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
footer a { display: block; text-decoration: none; padding: 3px 0; }
footer a:hover { color: var(--lime); }
footer .flogo { height: 64px; width: auto; margin-bottom: 12px; }
footer .social { display: flex; gap: 10px; margin-top: 10px; }
footer .social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #3a3f45; border-radius: 8px; }
footer .social svg { width: 18px; height: 18px; }
footer .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid #23262b; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #8b9198; }
footer .legal a { display: inline; }
@media (max-width: 860px) { footer .grid { grid-template-columns: 1fr 1fr; } footer .grid > :first-child { grid-column: 1 / -1; } }

/* mobile sticky CTA */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(11,12,13,.96); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid #23262b; }
  .mcta .btn { min-height: 48px; padding: 10px; }
  body { padding-bottom: 72px; }
}

/* reveal (subtle) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* finished projects grid */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pgrid figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-3); position: relative; aspect-ratio: 4 / 3; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pgrid figure:hover img { transform: scale(1.03); }
.pgrid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }
.head p a { color: var(--lime-d); font-weight: 700; }

/* appointment picker in lead form */
.form .appt { display: grid; gap: 10px; border: 1.5px solid #dfe3dc; border-radius: 10px; padding: 12px; background: #f8faf6; }
.form .appt legend { padding: 0 4px; }
.form .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.form .seg label { display: block; position: relative; font-weight: 600; }
.form .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .seg span { display: block; text-align: center; padding: 10px 8px; border: 1.5px solid #c9cfd4; border-radius: 8px; background: #fff; cursor: pointer; font-size: .95rem; }
.form .seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.form .seg input:focus-visible + span { outline: 3px solid rgba(128,224,0,.6); outline-offset: 1px; }
.form .hint { font-size: .8rem; color: var(--muted); margin-top: -4px; }
