/* ==========================================================================
   Safe Step v3, modeled on NuFinishPro (nufinishpro.com), captured 2026-08-10.

   Structure mirrored, palette NOT. Per the Anderson Roofing lesson: borrow the
   comp's structure, re-express it in the client's own sampled hexes.

   What is taken from the comp:
     - colour block with a convex curved right edge cutting into a photo
     - eyebrow / oversized headline / bold subhead / dual CTA / white trust card
     - dark benefit strip under the hero, four items with icon tiles
     - centred credential statement and badge rows
     - photo grid with solid caption bars, as the services treatment
     - review list with real names, stars and source
   What is NOT taken: their cyan and yellow. Safe Step's navy #01415f and pale
   blue #bce4f7, sampled from the real logo, do that work instead.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: #3a4a53;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
button { font: inherit; }
h1, h2, h3 {
  font-family: var(--font);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--blue); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 1300px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------- utility strip */
.util {
  background: var(--navy-black); color: rgba(255,255,255,.75);
  font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.util__l { display: flex; gap: 1.5rem; }
.util a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.util a:hover { color: var(--blue); }
@media (max-width: 700px) { .util__l { display: none; } .util__in { justify-content: center; } }

/* ----------------------------------------------------------------- header */
.hdr { background: #fff; position: sticky; top: 0; z-index: 80; box-shadow: 0 1px 0 rgba(1,65,95,.12); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.hdr__brand { display: flex; align-items: center; min-height: 48px; }
.hdr__brand img { height: 48px; width: auto; }
.hnav { display: none; align-items: center; gap: .35rem; }
@media (min-width: 1080px) { .hnav { display: flex; } }
.hnav__i { position: relative; }
.hnav__l {
  display: flex; align-items: center; gap: .3rem; padding: .75rem .85rem;
  font-size: 1rem; font-weight: 600; color: var(--navy-deep); text-decoration: none; white-space: nowrap;
}
.hnav__l:hover, .hnav__i:hover > .hnav__l, .hnav__l[aria-current="page"] { color: var(--navy); }
.hnav__l svg { width: 10px; height: 10px; opacity: .55; flex: none; }
.hnav__p {
  position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--rule); border-top: 3px solid var(--navy);
  box-shadow: 0 12px 30px rgba(1,41,60,.14);
  opacity: 0; visibility: hidden; transition: opacity .14s, visibility .14s;
}
.hnav__i:hover .hnav__p, .hnav__i:focus-within .hnav__p { opacity: 1; visibility: visible; }
.hnav__p a {
  display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--rule);
  color: var(--navy-deep); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.hnav__p a:last-child { border-bottom: 0; }
.hnav__p a:hover { background: var(--blue-wash); color: var(--navy); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 11px; background: var(--navy);
  border: 0; border-radius: 4px; cursor: pointer; flex: none;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span { display: block; height: 2px; background: #fff; transition: transform .22s, opacity .15s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(1,22,31,.6); opacity: 0; visibility: hidden;
         transition: opacity .25s, visibility .25s; z-index: 95; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px,100%); background: var(--navy-deep);
  color: #fff; z-index: 100; display: flex; flex-direction: column; transform: translateX(102%);
  visibility: hidden; transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); visibility: visible;
                  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s; }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
              padding: 1rem var(--gutter); background: var(--navy-black); flex: none; }
.drawer__hd img { height: 34px; }
.drawer__x { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); background: none;
             color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 4px; flex: none; }
.drawer__x:hover { background: var(--blue); color: var(--navy-deep); }
.drawer__nav { padding: 0 var(--gutter) 1rem; flex: 1 0 auto; }
.drawer__row { border-bottom: 1px solid rgba(255,255,255,.16); }
.drawer__a, .drawer__t {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 58px; padding: 1rem 0; background: none; border: 0; color: #fff;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.drawer__t i { font-style: normal; font-size: 1.3rem; color: var(--blue); transition: transform .2s; flex: none; }
.drawer__t[aria-expanded="true"] i { transform: rotate(45deg); }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.drawer__sub > div { overflow: hidden; }
.drawer__t[aria-expanded="true"] + .drawer__sub { grid-template-rows: 1fr; }
.drawer__sub a { display: flex; align-items: center; min-height: 48px; padding: .7rem 0 .7rem 1rem;
                 border-left: 2px solid var(--blue); margin-bottom: .35rem;
                 color: rgba(255,255,255,.86); text-decoration: none; }
.drawer__ft { padding: 1.25rem var(--gutter) 2rem; background: var(--navy-black); flex: none; display: grid; gap: .7rem; }
.drawer__call { display: flex; align-items: center; justify-content: center; min-height: 54px;
                border: 2px solid rgba(255,255,255,.4); color: #fff; text-decoration: none;
                font-size: 1.15rem; font-weight: 700; border-radius: 4px; }

/* ------------------------------------------------------------------ btns */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 58px; padding: .95rem 1.85rem; border-radius: 4px; border: 2px solid transparent;
  font-size: 1.0625rem; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--pri { background: var(--blue); color: var(--navy-deep); border-color: var(--blue); }
.btn--pri:hover { background: #fff; border-color: #fff; }
.btn--out { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--out:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--sm { min-height: 48px; padding: .6rem 1.1rem; font-size: .9375rem; }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: #fff; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
}
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 62%; }
/* the comp's signature move: the colour block bulges convexly into the photo */
.hero__panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 68%; z-index: 1;
  background: var(--navy);
  border-radius: 0 34% 34% 0 / 0 100% 100% 0;
}
@media (max-width: 900px) {
  /* the panel exists only to shape the desktop split; on mobile the section
     background does that job, so it must not take part in layout at all */
  .hero__panel { display: none; }
  .hero__photo { position: relative; height: 260px; }
}
.hero__in { position: relative; z-index: 2; padding-block: clamp(2.5rem, 5vw, 4.5rem); width: 100%; }
.hero__col { max-width: 40rem; }
@media (min-width: 901px) { .hero__col { max-width: 33rem; } }
.hero__eyebrow {
  font-size: .9375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 .85rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.16;
  letter-spacing: -0.03em; margin: 0 0 1rem;
}
.hero__sub { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 1.6rem; line-height: 1.45; }
.hero .btns { margin-bottom: 1.6rem; }

/* floating white trust card, straight off the comp */
.tcard {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  background: #fff; border-radius: 6px; padding: .9rem 1.35rem;
  box-shadow: 0 6px 22px rgba(1,22,31,.22);
}
.tcard img { height: 40px; width: auto; mix-blend-mode: multiply; }
.tcard b {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); line-height: 1.35; max-width: 13ch;
}

/* ---------------------------------------------------------- benefit strip */
.bstrip { background: var(--navy-deep); color: #fff; }
.bstrip__g { display: grid; gap: 1px; background: rgba(255,255,255,.16); }
@media (min-width: 620px) { .bstrip__g { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .bstrip__g { grid-template-columns: repeat(4,1fr); } }
.ben { background: var(--navy-deep); display: flex; align-items: flex-start; gap: .9rem; padding: 1.35rem 1.15rem 1.35rem 0; }
.ben__i { width: 42px; height: 42px; border-radius: 6px; background: var(--navy); flex: none;
          display: flex; align-items: center; justify-content: center; }
.ben__i svg { width: 21px; height: 21px; fill: var(--blue); }
.ben b { display: block; font-size: 1.0625rem; color: #fff; line-height: 1.3; margin-bottom: .15rem; }
.ben span { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .05em;
            text-transform: uppercase; color: var(--blue); line-height: 1.45; }

/* --------------------------------------------------------- centred blocks */
.sec { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.sec--tint { background: var(--blue-wash); }
.mid { text-align: center; }
.mid h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); color: var(--navy); max-width: 30ch; margin-inline: auto; }
.mid p { max-width: 62ch; margin-inline: auto; font-size: 1.0625rem; }
.rowlab {
  text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #7c8b94; margin: 0 0 1.5rem;
}
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.75rem; }
.logos img { height: 42px; width: auto; mix-blend-mode: multiply; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }
.badges img { height: 54px; width: auto; mix-blend-mode: multiply; }
.badge-t {
  display: inline-flex; align-items: center; min-height: 54px; padding: .5rem 1rem;
  border: 2px solid var(--navy); border-radius: 5px; color: var(--navy);
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center;
}

/* ------------------------------------------- photo grid with caption bars */
.pgrid { display: grid; gap: 1.15rem; }
@media (min-width: 680px) { .pgrid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(3,1fr); } }
.pc { position: relative; display: block; overflow: hidden; border-radius: 5px; text-decoration: none;
      background: var(--off); }
.pc img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s ease; }
.pc:hover img { transform: scale(1.04); }
.pc__cap {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(1,41,95,.92); color: #fff;
  padding: .85rem 1rem .95rem; font-size: .9375rem; line-height: 1.45;
}
.pc__cap b { display: block; font-size: 1.0625rem; font-weight: 700; margin-bottom: .15rem; letter-spacing: -.01em; }
.pc__cap u { color: var(--blue); text-decoration-color: var(--blue); text-underline-offset: 2px; }

/* ------------------------------------------------------- before / after -- */
.ba { display: grid; gap: 1.15rem; }
@media (min-width: 760px) { .ba { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .ba { grid-template-columns: repeat(4,1fr); } }
.bap { border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; background: #fff; }
.bap__two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule); }
.bap__s { position: relative; aspect-ratio: 1; overflow: hidden; }
.bap__s img { width: 100%; height: 100%; object-fit: cover; }
.bap__t { position: absolute; top: 0; left: 0; background: rgba(1,22,31,.85); color: #fff;
          font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .5rem; }
.bap__t--a { background: var(--navy); color: var(--blue); }
.bap p { margin: 0; padding: .75rem .9rem .85rem; font-size: .875rem; color: #6a7a83; }
.bap p b { display: block; color: var(--navy-deep); font-size: .9375rem; }

/* ----------------------------------------------------------- the numbers */
.dt { background: var(--navy); color: #fff; border-radius: 6px; overflow: hidden; }
.dt__g { display: grid; }
@media (min-width: 880px) { .dt__g { grid-template-columns: 1.1fr 1fr; } }
.dt__l { padding: clamp(1.35rem,2.6vw,2.25rem); }
.dt__l h2 { color: #fff; font-size: clamp(1.375rem,2.2vw,1.875rem); }
.dt__l p { color: rgba(255,255,255,.82); }
.dt__r { background: rgba(255,255,255,.07); padding: clamp(1.35rem,2.6vw,2.25rem);
         border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 880px) { .dt__r { border-top: 0; border-left: 1px solid rgba(255,255,255,.18); } }
.dt__f { margin-bottom: 1rem; }
.dt__f label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
               font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
               color: rgba(255,255,255,.72); margin-bottom: .3rem; }
.dt__f label b { font-size: 1.125rem; color: var(--blue); }
.dt input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px;
                        margin: -11px 0; background: transparent; cursor: pointer; display: block; }
.dt input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.dt input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.dt input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
   margin-top: -8px; border-radius: 50%; background: var(--blue); border: 3px solid var(--navy-deep); }
.dt input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
   background: var(--blue); border: 3px solid var(--navy-deep); }
.dt__out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.2);
           border-radius: 5px; overflow: hidden; margin-top: 1.35rem; }
.dt__c { background: var(--navy); padding: .9rem 1rem; }
.dt__c--w { background: var(--blue); }
.dt__c small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .09em;
               text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: .25rem; }
.dt__c--w small { color: var(--navy); }
.dt__c strong { font-size: 2.125rem; font-weight: 700; letter-spacing: -.035em; color: #fff; display: block; line-height: 1; }
.dt__c--w strong { color: var(--navy-deep); }
.dt__c span { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .07em;
              text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: .3rem; }
.dt__c--w span { color: var(--navy); }
.dt__note { font-size: .8125rem; color: rgba(255,255,255,.7); line-height: 1.6; margin-top: 1rem; }
.dt__note b { color: #fff; }

/* --------------------------------------------------------------- reviews */
.revs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 880px) { .revs { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.rev { margin: 0; padding: 1.25rem 0 1.35rem; border-bottom: 1px solid var(--rule); }
.rev__hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.rev__who b { display: block; color: var(--navy-deep); font-size: 1rem; }
.rev__who span { font-size: .8125rem; color: #7c8b94; }
.rev__stars { color: #f0a500; font-size: 1rem; letter-spacing: .1em; flex: none; }
.rev blockquote { margin: 0; font-size: .9375rem; line-height: 1.6; color: #4a5a63; }

/* ------------------------------------------------------------------- CTA */
.cta { background: var(--navy-deep); color: #fff; }
.cta__g { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta__g { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.cta h2 { color: #fff; font-size: clamp(1.625rem,2.8vw,2.375rem); }
.cta p { color: rgba(255,255,255,.82); font-size: 1.0625rem; }
.frm { background: #fff; border-radius: 6px; padding: clamp(1.25rem,2.4vw,1.85rem); }
.frm h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.frm__r { display: grid; gap: .85rem; margin-bottom: .85rem; }
@media (min-width: 560px) { .frm__r--2 { grid-template-columns: 1fr 1fr; } }
.frm label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
             text-transform: uppercase; color: #6a7a83; margin-bottom: .3rem; }
.frm input, .frm select, .frm textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem; font-family: var(--font); font-size: 1rem;
  color: var(--navy-deep); background: var(--off); border: 1px solid var(--rule-mid); border-radius: 4px;
}
.frm textarea { min-height: 90px; resize: vertical; }
.frm input:focus, .frm select:focus, .frm textarea:focus { border-color: var(--navy); background: #fff; outline: none; }
.frm .fine { font-size: .75rem; color: #7c8b94; margin: .8rem 0 0; line-height: 1.6; }

/* ---------------------------------------------------------------- footer */
.ft { background: var(--navy-black); color: rgba(255,255,255,.62); font-size: .9375rem; }
.ft__g { display: grid; gap: 2rem; padding-block: clamp(2.25rem,4vw,3.25rem); }
@media (min-width: 800px) { .ft__g { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; } }
.ft__b img { height: 46px; margin-bottom: 1rem; }
.ft h4 { font-size: .8125rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
         color: var(--blue); margin: 0 0 .9rem; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft a { color: rgba(255,255,255,.78); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ft a:hover { color: var(--blue); }
.ft__bar { border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.15rem; font-size: .8125rem;
           display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* ------------------------------------------------------------ mobile bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 88; display: grid;
        grid-template-columns: 1fr 1fr; background: var(--navy-deep); border-top: 2px solid var(--blue); }
@media (min-width: 1080px) { .mbar { display: none; } }
.mbar a { display: flex; align-items: center; justify-content: center; min-height: 58px; color: #fff;
          text-decoration: none; font-size: .9375rem; font-weight: 700; }
.mbar a:first-child { background: var(--navy); }
.mbar a + a { border-left: 1px solid rgba(255,255,255,.25); }
body { padding-bottom: 58px; }
@media (min-width: 1080px) { body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .pc:hover img { transform: none; }
}
