/* Mr. Shingles Roofing Inc. RI — v3
   Palette sampled from HIS OWN printed flyer, not invented:
   navy #001938 · print red #AC0207 · logo red #E30E12 · gold #FFC72C
   Navy-dominant and dense. Circular numerals and icon badges mirror the
   flyer he already hands to homeowners. */

:root {
  --navy: #001938;
  --navy-2: #002B52;
  --navy-3: #0A3A66;
  --red: #C40812;
  --red-2: #AC0207;
  --red-lite: #E30E12;
  --gold: #FFC72C;
  --bone: #F4F1EA;
  --paper: #FFFFFF;
  --ink: #0A0F16;
  --muted: #5D6470;
  --muted-d: rgba(255,255,255,.66);
  --line: #DCD6CA;
  --line-d: rgba(255,255,255,.14);
  --max: 1280px;
  --pad: clamp(18px, 4.4vw, 52px);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--navy); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3, .num {
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 600; line-height: 1.02; letter-spacing: .004em; text-transform: uppercase;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--red-lite); }
.kick { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-lite); }
.kick.pale { color: rgba(255,255,255,.55); }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 90; transition: background .3s var(--ease), box-shadow .3s; }
.site-head.solid { background: rgba(0,25,56,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-d); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 104px; }
.brand img { height: 74px; width: auto; display: block; transition: height .3s var(--ease); }
.site-head.solid .brand img { height: 58px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: #fff; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red-lite); transition: right .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { right: 0; }
.nav .tel { font-variant-numeric: tabular-nums; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; background: transparent; color: #fff;
  font: 600 14.5px/1 "IBM Plex Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; height: 54px; padding: 0 28px; border-radius: 3px;
  position: relative; overflow: hidden; flex: 0 0 auto; white-space: nowrap; }
.btn > span { position: relative; z-index: 1; display: block; line-height: 1; }
.btn::before { content: ""; position: absolute; inset: 0; transform: translateY(101%); transition: transform .36s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn-red { background: var(--red); }
.btn-red::before { background: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white::before { background: var(--navy); }
.btn-white:hover { color: #fff; }
.btn-out { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-out::before { background: #fff; }
.btn-out:hover { color: var(--navy); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 14px; }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; z-index: 95; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px auto; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mnav { display: none; position: fixed; inset: 0; z-index: 92; background: var(--navy); padding: 124px var(--pad) 40px; }
.mnav.open { display: block; }
.mnav a { display: block; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 9vw, 46px);
  color: #fff; padding: 15px 0; border-bottom: 1px solid var(--line-d); }
.mnav .m-tel { color: var(--gold); border: 0; margin-top: 20px; font-size: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: -6% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,25,56,.82) 0%, rgba(0,25,56,.42) 34%, rgba(0,25,56,.88) 78%, var(--navy) 100%); }
.hero-in { position: relative; width: 100%; padding-top: 150px; padding-bottom: 0; }
.hero h1 { font-size: clamp(42px, 8vw, 108px); color: #fff; margin: 14px 0 0; }
.hero .line { display: block; overflow: hidden; }
.hero .line > span { display: block; }
.hero .sub { color: rgba(255,255,255,.82); max-width: 40ch; margin-top: 18px; font-size: clamp(15px, 1.6vw, 18.5px); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* badge row sits flush at the hero base, killing the dead gap */
.hero-badges { display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(30px, 5vh, 56px); border-top: 1px solid var(--line-d); }
.hb { padding: 20px 18px; display: flex; align-items: center; gap: 12px; min-width: 0;
  border-left: 1px solid var(--line-d); }
.hb:first-child { border-left: 0; padding-left: 0; }
.hb svg { width: 26px; height: 26px; color: var(--red-lite); flex: none; }
.hb b { display: block; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.hb span { display: block; font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- marquee ---------- */
.strip { background: var(--red); color: #fff; overflow: hidden; padding: 13px 0; }
.strip-track { display: flex; width: max-content; animation: mq 30s linear infinite; }
.strip-track span { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; padding-right: 20px; }
.strip-track span i { font-style: normal; opacity: .5; padding-right: 20px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ---------- sections ---------- */
.sect { padding: clamp(64px, 8vw, 116px) 0; }
.sect.bone { background: var(--bone); }
.sect.paper { background: var(--paper); }
.sect.navy { background: var(--navy); color: #fff; }
.sect.navy h2, .sect.navy h3 { color: #fff; }
.sect-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 52px); }
.sect-top h2 { font-size: clamp(30px, 4.6vw, 60px); max-width: 18ch; }
.sect-top p { color: var(--muted); max-width: 42ch; margin-top: 10px; }
.sect.navy .sect-top p { color: var(--muted-d); }

/* service cards: icon badge + image, dense */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--paper); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.sect.paper .card { background: var(--bone); }
.card .ph { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .ph img { transform: scale(1.06); }
.card .badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; }
.card .badge svg { width: 23px; height: 23px; color: #fff; }
.card .bd { padding: 18px 20px 22px; }
.card h3 { font-size: 20px; margin-bottom: 5px; }
.card p { color: var(--muted); font-size: 14px; }

/* numbered steps in his flyer's language: red circle + navy card */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.step { background: rgba(255,255,255,.05); border: 1px solid var(--line-d); border-radius: 4px; padding: 24px 24px 26px; display: flex; gap: 16px; }
.sect.bone .step, .sect.paper .step { background: var(--paper); border-color: var(--line); }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; flex: none;
  display: grid; place-items: center; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 19px; }
.step h3 { font-size: 18.5px; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--muted-d); }
.sect.bone .step p, .sect.paper .step p { color: var(--muted); }

/* gold caution band, straight off his flyer */
.caution { background: var(--gold); color: var(--navy); border-radius: 4px; padding: 20px 26px; margin-top: 18px;
  display: flex; gap: 16px; align-items: flex-start; }
.caution svg { width: 30px; height: 30px; flex: none; color: var(--navy); }
.caution p { font-weight: 600; font-size: 15.5px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.stat { padding: 30px 22px; min-width: 0; border-left: 1px solid var(--line-d); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: "Oswald", sans-serif; font-weight: 600; font-size: clamp(30px, 4vw, 48px); color: var(--gold); line-height: 1; }
.stat span { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; letter-spacing: .04em; }

/* mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 168px); gap: 12px; }
.cell { position: relative; overflow: hidden; border-radius: 4px; background: var(--navy); }
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cell:hover img { transform: scale(1.06); }
.cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,25,56,.8) 100%); }
.cell figcaption { position: absolute; left: 16px; bottom: 13px; z-index: 2; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.c-8 { grid-column: span 8; grid-row: span 2; }
.c-4 { grid-column: span 4; grid-row: span 2; }
.c-6 { grid-column: span 6; grid-row: span 2; }
.c-12 { grid-column: span 12; grid-row: span 2; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.split .ph { border-radius: 4px; overflow: hidden; aspect-ratio: 5/4; }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.8vw, 48px); margin-bottom: 14px; }
.ticks { margin-top: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line-d); font-size: 15px; }
.sect.bone .ticks li, .sect.paper .ticks li { border-color: var(--line); }
.ticks svg { width: 19px; height: 19px; color: var(--red-lite); flex: none; margin-top: 2px; }

/* CTA */
.cta-end { background: var(--red); color: #fff; }
.cta-end .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding-top: clamp(34px, 3.4vw, 46px); padding-bottom: clamp(34px, 3.4vw, 46px); }
.cta-end h2 { font-size: clamp(24px, 2.9vw, 38px); max-width: 26ch; }
.cta-end h2 em { color: rgba(255,255,255,.55); }
.cta-side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-end .tel { font-family: "Oswald", sans-serif; font-weight: 600; font-size: clamp(24px, 2.6vw, 34px);
  font-variant-numeric: tabular-nums; line-height: 1; color: #fff; }

/* footer */
.foot { background: var(--navy); color: rgba(255,255,255,.62); padding: 0 0 26px; }
.foot-bar { border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line-d); overflow: hidden; }
.foot-bar ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.foot-bar li { padding: 20px 22px; display: flex; align-items: center; gap: 12px; min-width: 0;
  border-left: 1px solid var(--line-d); margin-bottom: 0; }
.foot-bar li:first-child { border-left: 0; padding-left: 0; }
.foot-bar svg { width: 22px; height: 22px; color: var(--red-lite); flex: none; }
.foot-bar b { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.foot-bar span { display: block; font-size: 12.5px; color: rgba(255,255,255,.5); }
.foot-main { padding-top: clamp(34px, 4vw, 52px); }
@media (max-width: 760px) { .foot-bar ul { grid-template-columns: 1fr; } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.foot .fmark { height: 76px; width: auto; }
.foot .slog { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.foot h4 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.foot li { margin-bottom: 8px; font-size: 14.5px; }
.foot a:hover { color: #fff; }
.foot .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }

/* inner hero */
.p-hero { position: relative; min-height: 54svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.p-hero .media { position: absolute; inset: 0; }
.p-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.p-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,25,56,.72), rgba(0,25,56,.94)); }
.p-hero .in { position: relative; width: 100%; padding-top: 158px; padding-bottom: clamp(36px, 5vw, 60px); }
.p-hero h1 { font-size: clamp(34px, 6.2vw, 84px); color: #fff; margin-top: 12px; }
.p-hero p { color: rgba(255,255,255,.75); max-width: 48ch; margin-top: 14px; }

/* contact */
.c-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.c-row { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line-d); }
.c-row svg { width: 21px; height: 21px; color: var(--red-lite); flex: none; margin-top: 3px; }
.c-row .k { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.c-row .v { font-size: 15.5px; color: #fff; }
.c-row .v a { color: var(--gold); font-weight: 600; }
.c-row .v .s { display: block; color: rgba(255,255,255,.55); font-size: 13px; margin-top: 2px; }

.form-card { background: var(--paper); border-radius: 4px; padding: clamp(22px, 3vw, 36px); color: var(--ink); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .fl { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bone); border: 1.5px solid transparent; border-radius: 3px;
  color: var(--ink); font: 400 15.5px/1.5 "IBM Plex Sans", sans-serif; padding: 12px 13px; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 88px; resize: vertical; }
.field .err { display: none; color: var(--red); font-size: 12.5px; margin-top: 5px; }
.field.bad input, .field.bad textarea { border-color: var(--red); }
.field.bad .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-ok { display: none; text-align: center; padding: 34px 8px; }
.form-ok.on { display: block; }
.form-ok .chip { display: inline-block; background: var(--bone); padding: 11px 15px; border-radius: 4px; margin-bottom: 14px; }
.form-ok .chip img { height: 48px; }
.form-ok h3 { font-size: 24px; margin-bottom: 6px; }
.form-ok p { color: var(--muted); font-size: 14.5px; }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.noanim .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .c-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: block; }
  .head-in { height: 72px; }
  .brand img { height: 38px; }
  .hero { min-height: 88svh; }
  .hero-media { inset: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .c-8, .c-4, .c-6, .c-12 { grid-column: span 12; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-end .row2 { flex-direction: column; align-items: flex-start; }
}
html.noanim .hero { min-height: 0; height: 820px; }
html.noanim .p-hero { min-height: 0; height: 460px; }

/* Touch targets: phone/email links must clear Apple's 44pt minimum on mobile */
@media (max-width: 760px) {
  .c-row .v a, .foot-bar b, .foot li a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .c-row { padding: 10px 0; }
  .foot li { margin-bottom: 2px; }
  .mnav .m-tel { min-height: 48px; display: flex; align-items: center; }
  .hb { padding: 16px 14px; }
}

/* ---------- social proof bar ---------- */
.social-bar { background: var(--bone); border-top: 1px solid var(--line); }
.sb-in { padding: clamp(30px, 4vw, 46px) var(--pad); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px; }
.sb-lead { font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 2.2vw, 26px); color: var(--navy); letter-spacing: .01em; }
.sb-links { display: flex; flex-wrap: wrap; gap: 12px; }
.sb { display: flex; align-items: center; gap: 13px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; padding: 13px 20px 13px 16px;
  min-height: 60px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.sb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,25,56,.12); }
.sb svg { width: 26px; height: 26px; flex: none; }
.sb-fb svg { color: #1877F2; }
.sb-fb:hover { border-color: #1877F2; }
.sb-g:hover { border-color: #4285F4; }
.sb span { display: block; min-width: 0; }
.sb b { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.sb em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
@media (max-width: 700px) {
  .sb-in { flex-direction: column; align-items: stretch; }
  .sb-links { flex-direction: column; }
  .sb { min-height: 64px; }
}

/* ---------- slogan headline sizing ---------- */
.hero h1.slogan { font-size: clamp(30px, 5.4vw, 74px); }

/* ---------- logo: materially larger, still safe on mobile ---------- */
.head-in { height: 124px; }
.brand img { height: 96px; }
.site-head.solid .brand img { height: 72px; }
.site-head.solid .head-in { height: 96px; }
.hero-in { padding-top: 176px; }
.p-hero .in { padding-top: 186px; }
.mnav { padding-top: 140px; }
@media (max-width: 980px) {
  .head-in { height: 104px; }
  .brand img { height: 78px; }
  .site-head.solid .brand img { height: 62px; }
  .hero-in { padding-top: 150px; }
  .p-hero .in { padding-top: 158px; }
}
@media (max-width: 760px) {
  .head-in { height: 92px; }
  .brand img { height: 68px; }
  .site-head.solid .head-in { height: 82px; }
  .site-head.solid .brand img { height: 56px; }
  .hero-in { padding-top: 132px; }
  .p-hero .in { padding-top: 140px; }
  .mnav { padding-top: 116px; }
}

/* ---------- angi card ---------- */
.sb-a svg { color: var(--gold); }
.sb-a:hover { border-color: var(--gold); }
@media (min-width: 701px) { .sb-links { flex-wrap: wrap; justify-content: flex-end; } }
