/* Shingle & Sons Roofing: classic family roofer. Navy, cream, barn red, star accents */
:root {
  --navy: #1c2b4a; --navy-2: #13203a; --navy-l: #e5eaf3; --cream: #f8f3e8; --cream-2: #efe6d3; --red: #b22234; --red-2: #921a2a;
  --gold: #d4a13d; --ink: #1e2533; --muted: #5f6676; --line: #e0d7c3; --ok: #2f7a4f;
  --slab: "Arvo", Georgia, serif; --sans: "Hind", system-ui, sans-serif;
  --stripes: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--cream) 40px 80px);
}
* { box-sizing: border-box; } [hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--sans); }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--slab); font-weight: 700; color: var(--navy); line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.red { color: var(--red); }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.white { background: #fff; }
.navy { background: var(--navy); color: #c9d2e3; }
.navy h2, .navy h3 { color: #fff; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.stars-h { display: inline-flex; align-items: center; gap: .55rem; font: 700 .82rem var(--slab); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.stars-h::before, .stars-h::after { content: "★"; color: var(--gold); }
.navy .stars-h { color: #ffb4bc; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.navy .lead { color: #aeb9cf; }
.stripe { height: 10px; background: var(--stripes); }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 1rem var(--slab); text-decoration: none; cursor: pointer; transition: all .2s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); border-color: var(--red-2); }
.navy .btn:not(.btn-red) { background: transparent; border-color: #fff; color: #fff; }
.navy .btn:not(.btn-red):hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* Header */
.topbar { background: var(--navy-2); color: #aeb9cf; font-size: .92rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: 7px 0; flex-wrap: wrap; }
.topbar b { color: var(--gold); }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.crest { width: 54px; height: 54px; border-radius: 8px; background: var(--navy); color: var(--gold); display: grid; place-items: center; position: relative; }
.crest::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 6px; background: var(--stripes); background-size: 12px 6px; border-radius: 2px; }
.brand b { font: 700 1.35rem/1.05 var(--slab); display: block; }
.brand small { font-weight: 600; font-size: .82rem; color: var(--muted); }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.nav-links a:hover { color: var(--red); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: 700 .9rem var(--slab); cursor: pointer; }
@media (max-width: 1000px) {
  .topbar .hide-sm { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 6px 16px 18px; border-bottom: 2px solid var(--navy); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 12px; }
  .nav-links a { display: block; padding: 13px 0; }
}

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero .lead { font-size: 1.22rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.8rem; }
.trust { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 22px; justify-content: start; font-weight: 600; color: var(--muted); font-size: .96rem; }
.trust span::before { content: "✔ "; color: var(--ok); }
.house { position: relative; aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #b9d3ea 0 64%, #7ea36b 64%); box-shadow: 0 30px 50px -30px rgba(28, 43, 74, .6); }
.house .roof { position: absolute; left: 12%; right: 12%; top: 20%; height: 32%; background: repeating-linear-gradient(180deg, #3b3f48 0 14px, #2b2f37 14px 16px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house .wall { position: absolute; left: 20%; right: 20%; top: 52%; bottom: 20%; background: #f2ece0; }
.house .door { position: absolute; left: 45%; width: 10%; top: 62%; bottom: 20%; background: var(--red); border-radius: 4px 4px 0 0; }
.house .win { position: absolute; top: 58%; width: 12%; height: 11%; background: #cfe3f2; border: 3px solid #fff; }
.house .w1 { left: 26%; } .house .w2 { right: 26%; }
.house .flag { position: absolute; right: 10%; top: 26%; width: 2px; height: 42%; background: #ddd; }
.house .flag::after { content: ""; position: absolute; left: 2px; top: 0; width: 46px; height: 28px; background: linear-gradient(90deg, var(--navy) 0 40%, transparent 40%) 0 0 / 100% 55% no-repeat, repeating-linear-gradient(180deg, var(--red) 0 4px, #fff 4px 8px); }
.house .sticker { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 10px; padding: 10px 14px; font: 700 .9rem var(--slab); color: var(--navy); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.house .sticker small { display: block; font: 600 .78rem var(--sans); color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .trust { grid-template-columns: 1fr 1fr; } }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bd { text-align: center; padding: 18px 10px; border: 2px solid rgba(255, 255, 255, .15); border-radius: 10px; }
.bd b { display: block; font: 700 1.6rem var(--slab); color: var(--gold); }
.bd span { font-size: .9rem; }
@media (max-width: 860px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .badges { grid-template-columns: 1fr 1fr; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--navy); background: #fff; }
.calc .in { padding: 36px; display: grid; gap: 20px; }
.calc .out { padding: 36px; background: var(--navy); color: #c9d2e3; display: flex; flex-direction: column; justify-content: center; }
.calc .out h3 { color: #fff; }
.calc .big { font: 700 clamp(2.2rem, 4.6vw, 3.2rem)/1 var(--slab); color: var(--gold); margin: .4rem 0 .8rem; }
.calc .lbl { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .4rem; }
.calc output { font: 700 1.05rem var(--slab); color: var(--red); }
.calc input[type=range] { width: 100%; accent-color: var(--red); }
.calc .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.calc .opts input { position: absolute; opacity: 0; pointer-events: none; }
.calc .opts label { padding: .55rem 1rem; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; background: var(--cream); }
.calc .opts input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc .opts input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.calc small { color: #aeb9cf; font-size: .84rem; margin-top: 1rem; display: block; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc .in, .calc .out { padding: 26px 20px; } }

/* Packages */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.tier.best { border-color: var(--red); box-shadow: 0 24px 40px -26px rgba(178, 34, 52, .6); }
.tier.best::before { content: "★ Family favorite"; position: absolute; top: -14px; left: 26px; background: var(--red); color: #fff; font: 700 .78rem var(--slab); padding: .25rem .8rem; border-radius: 999px; }
.tier .lvl { font: 700 .82rem var(--slab); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .5rem; flex: 1; }
.tier li::before { content: "★ "; color: var(--gold); }
.tier .warr { font: 700 1.05rem var(--slab); color: var(--red); margin-bottom: 1rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* Before/after */
.ba-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; user-select: none; --pos: 50%; border: 6px solid #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.ba .layer { position: absolute; inset: 0; }
.ba .before { background: radial-gradient(ellipse 50px 24px at 30% 40%, #5c6b4a 98%, transparent), radial-gradient(ellipse 70px 20px at 66% 62%, #7a6a55 98%, transparent), repeating-linear-gradient(180deg, #8e8a82 0 22px, #6e6a63 22px 24px); filter: saturate(.7); }
.ba .after { background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, .14) 40px 42px), repeating-linear-gradient(180deg, #5a3f35 0 22px, #45302a 22px 24px); clip-path: inset(0 0 0 var(--pos)); }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba .line::after { content: "★"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag { position: absolute; top: 12px; background: var(--navy); color: #fff; font: 700 .8rem var(--slab); padding: .25rem .7rem; border-radius: 6px; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; background: var(--red); }
@media (max-width: 900px) { .ba-wrap { grid-template-columns: 1fr; } }

/* Family */
.family { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.family .photo { aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(180deg, #c9dcec 0 55%, #94b07f 55%); position: relative; overflow: hidden; border: 6px solid #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.family .photo .p { position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: var(--navy); }
.family .photo .p::before { content: ""; position: absolute; left: 50%; top: -36%; width: 60%; aspect-ratio: 1; margin-left: -30%; border-radius: 50%; background: #e0b48c; }
.family .p1 { left: 18%; width: 20%; height: 46%; } .family .p2 { left: 40%; width: 18%; height: 42%; background: var(--red); } .family .p3 { left: 60%; width: 17%; height: 40%; background: #3f5578; }
.timeline { list-style: none; padding: 0; margin: 1.4rem 0 0; border-left: 3px solid var(--red); }
.timeline li { padding: 0 0 18px 22px; position: relative; }
.timeline li::before { content: "★"; position: absolute; left: -12px; top: 0; color: var(--gold); background: var(--cream); line-height: 1; font-size: 1.1rem; }
.timeline b { font-family: var(--slab); color: var(--navy); }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; background: #fff; border-radius: 14px; padding: 26px; border-top: 5px solid var(--navy); }
.review .st { color: var(--gold); letter-spacing: 3px; }
.review blockquote { margin: .5rem 0 1rem; }
.review figcaption { font: 700 1rem var(--slab); color: var(--navy); }
.review figcaption span { font: 600 .9rem var(--sans); color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 10px; padding: 2px 22px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; font: 700 1.08rem var(--slab); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "★"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--line); font-size: 1.2rem; transition: color .2s; }
.faq details[open] summary::after { color: var(--gold); }
.faq p { color: var(--muted); }

/* Forms */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 14px; padding: 30px; border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--red); }
.form { display: grid; gap: 1rem; }
.form label.l { display: block; font: 700 .92rem var(--slab); color: var(--navy); margin-bottom: .3rem; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .card { padding: 22px; box-shadow: 5px 5px 0 var(--red); } }
.chk { display: flex; gap: .6rem; align-items: center; font-size: 1rem; }
.chk input { width: 18px; height: 18px; accent-color: var(--red); }
.progress { font: 700 .9rem var(--slab); color: var(--muted); margin-bottom: .4rem; }
.pbar { height: 8px; background: var(--cream-2); border-radius: 8px; overflow: hidden; margin-bottom: 1.2rem; }
.pbar i { display: block; height: 100%; background: var(--stripes); background-size: 20px 8px; transition: width .3s; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 1.2rem; flex-wrap: wrap; }
.form-msg { display: none; padding: .9rem 1rem; border-radius: 8px; background: #e7f2ea; color: var(--ok); font-weight: 700; }
.form-msg.show { display: block; }

/* Footer */
.site-footer { background: var(--navy-2); color: #aeb9cf; padding: 0 0 26px; }
.site-footer .stripe { margin-bottom: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #aeb9cf; }
.site-footer h5 { font: 700 1rem var(--slab); color: var(--gold); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer small { display: block; border-top: 1px solid #2b3b5e; padding-top: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
