/* R&R Exteriors: additions on top of site.css (brands, reviews banner, new services, mobile form) */

/* licensed & insured badge in the footer */
.li-badge { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.li-badge::before { content: ""; width: 13px; height: 7px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(-45deg) translateY(-2px); }

/* hero without a photo (insulation) */
.hero.no-img { background: radial-gradient(120% 90% at 85% 0%, #1c2a10 0%, var(--ink) 55%); }
.hero.no-img::after { display: none; }

/* five service cards on the home page */
.cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.five > * { grid-column: span 2; }
.cards.five > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 900px) { .cards.five { grid-template-columns: 1fr; } .cards.five > *, .cards.five > :nth-child(4) { grid-column: auto; } }
.card .photo svg.attic, .photo svg.attic { width: 100%; height: 100%; display: block; }

/* review banner: translucent strip across the bottom of the home hero */
.tbar { position: relative; z-index: 2; background: rgba(11,12,13,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.14); color: #fff; }
.tbar-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.tbar-label { flex: none; font: 700 .78rem/1.2 var(--f-body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--lime); }
.tbar-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tbar-track { display: flex; width: max-content; animation: tbar-scroll var(--dur, 40s) linear infinite; }
.tbar-dupe { display: contents; }
.tbar:hover .tbar-track, .tbar:focus-within .tbar-track { animation-play-state: paused; }
.tq { margin: 0 40px 0 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.tq-stars { color: var(--lime); letter-spacing: 1px; }
.tq blockquote { margin: 0; color: #eef1f3; }
.tq blockquote::before { content: "\201C"; } .tq blockquote::after { content: "\201D"; }
.tq figcaption { font-size: .9rem; color: #b8bec4; }
.tbar-link { flex: none; color: #fff; font-weight: 700; font-size: .92rem; }
@keyframes tbar-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .tbar-label, .tbar-link { display: none; } }
@media (prefers-reduced-motion: reduce) { .tbar-track { animation: none; } .tbar-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .tbar-dupe { display: none; } }

/* brands we install */
.brands { border-top: 1px solid var(--line); }
.brands-head { display: grid; gap: 8px; max-width: 44rem; margin-bottom: 22px; }
.brand-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.brand-row li { display: grid; place-items: center; min-height: 88px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.brand-row img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.brand-name { font: 700 1.35rem/1.1 var(--f-head); letter-spacing: .4px; color: var(--ink); text-align: center; }
.brands-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* roofing materials grid */
.tile .kind { font: 700 .72rem/1 var(--f-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--lime-d); }
.tile a { color: var(--lime-d); font-weight: 700; }
@media (max-width: 960px) and (min-width: 601px) { .tiles.materials { grid-template-columns: 1fr 1fr; } }

/* About: founders + credentials */
.founders:empty { display: none; }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.founders .shot img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.founders figcaption { display: grid; margin-top: 6px; } .founders figcaption span { color: var(--muted); font-size: .92rem; }
.creds { background: var(--ink); color: #fff; border-radius: 14px; padding: clamp(20px, 3vw, 30px); border-top: 5px solid var(--lime); }
.creds h3 { font-size: 1.6rem; }
.creds .checks li { color: #dfe3e6; } .creds .checks li b { color: #fff; } .creds .checks li::before { border-color: var(--lime); }

/* insulation offer */
.promo { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 20px; border-left: 6px solid var(--lime); }
.promo b { color: var(--lime); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.promo span { flex: 1 1 260px; font-weight: 600; }

/* lead form: appointment picker folded up so the form is short */
.form details.appt { border: 1.5px solid #dfe3dc; border-radius: 10px; padding: 0; background: #f8faf6; display: block; }
.form details.appt > summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: 12px 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.form details.appt > summary::-webkit-details-marker { display: none; }
.form details.appt > summary::after { content: "+"; color: var(--lime-d); font-size: 1.3rem; line-height: 1; }
.form details.appt[open] > summary::after { content: "\2013"; }
.form details.appt > summary span { color: var(--muted); font-weight: 400; }
.form details.appt[open] { display: grid; gap: 10px; padding: 0 12px 12px; }
.form details.appt[open] > summary { padding: 12px 2px 4px; }
.form .consent.sms { font-size: .74rem; }

/* phones: shorter hero, compact form, no fade-in delay on content */
@media (max-width: 760px) {
  .hero .wrap { gap: 22px; padding-block: 28px 32px; }
  .hero-copy { gap: 12px; }
  .hero-copy .sub { font-size: 1.02rem; }
  .hero .ticks li:nth-child(n+3) { display: none; }
  .hero .call-line { font-size: .95rem; }
  .form { padding: 18px 16px; gap: 10px; }
  .form h3 { font-size: 1.35rem; }
  .form .lede { font-size: .92rem; }
  .form .row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form input, .form select { min-height: 44px; padding: 9px 11px; font-size: 16px; }
  .form button { min-height: 50px; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 360px) { .form .row { grid-template-columns: 1fr; } }

/* fix: ".split.top" sections were picking up the sticky dark header styles of ".top" */
.wrap.split.top { position: static; top: auto; z-index: auto; background: none; color: inherit; border-bottom: 0; }

/* header with 8 menu items: keep the CTA on one line */
.top-actions .btn { white-space: nowrap; }
@media (min-width: 1221px) and (max-width: 1440px) { .nav a { padding: 8px 7px; font-size: .94rem; } .top .wrap { gap: 16px; } .top-phone small { display: none; } }
