/* =============================================================
   Direct Roofing & Home Improvement Contractors Ltd
   Single-page marketing site — handcrafted, no build step.
   Sections: header / hero / trust / about / roofing /
   home improvements / why us / gallery / process /
   reviews / service area / CTA / contact / footer
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #10171f;
  --navy:       #16212d;
  --navy-2:     #1d2b3a;
  --slate:      #2b3b4d;

  --accent:     #2f6fd6;   /* logo cobalt — CTAs, highlights */
  --accent-600: #245cbb;
  --accent-700: #1d4c9c;
  --accent-soft:#e9f1fc;
  --accent-300: #76a9ea;   /* logo steel-blue highlight (on dark) */

  --green:      #1f9d6b;   /* trust ticks */

  --paper:      #ffffff;
  --mist:       #f4f7fa;   /* light section background */
  --mist-2:     #eef3f8;
  --line:       #e2e8f0;

  --text:       #1f2a36;
  --muted:      #5b6b7b;
  --text-inv:   #eef4fa;
  --muted-inv:  #a6b8c9;

  --container:  1200px;
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;

  --shadow-sm:  0 1px 2px rgba(16,23,31,.06), 0 2px 6px rgba(16,23,31,.06);
  --shadow:     0 10px 30px rgba(16,23,31,.10);
  --shadow-lg:  0 24px 60px rgba(16,23,31,.18);

  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* SVG icon system */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 2000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 90px; }
.section--mist { background: var(--mist); }
.section--ink  { background: var(--navy); color: var(--text-inv); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.is-left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-soft);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.section--ink .eyebrow { color: var(--accent-300); background: rgba(47,111,214,.18); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section--ink .section-title { color: #fff; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.section--ink .section-intro { color: var(--muted-inv); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border: 2px solid transparent; border-radius: 999px;
  background: var(--bg); color: #fff; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: 0 8px 20px rgba(47,111,214,.30);
}
.btn:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,111,214,.38); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; }

.btn--ghost {
  background: transparent; color: var(--navy);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--mist); border-color: #cdd8e3; color: var(--navy); transform: translateY(-2px); }

.btn--on-dark { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn--on-dark:hover { background: #fff; color: var(--accent-700); }

.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 17px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink); color: var(--muted-inv);
  font-size: .86rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar__points { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__points li { display: inline-flex; align-items: center; gap: 7px; }
.topbar__points .icon { width: 15px; height: 15px; color: var(--accent); }
.topbar__contact { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.topbar__contact .icon { width: 15px; height: 15px; color: var(--accent); }
.topbar__contact a:hover { color: var(--accent); }
@media (max-width: 860px) { .topbar__points { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  /* NB: no backdrop-filter/transform/filter here — those create a containing
     block that would trap the position:fixed mobile drawer inside the header. */
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--navy); border-radius: 12px; padding: 10px 13px;
  box-shadow: 0 4px 14px rgba(16,23,31,.18);
}
.brand__img { display: block; width: 104px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; color: var(--navy); letter-spacing: -.02em; }
.brand__name span { color: var(--accent); }
.brand__sub { font-size: .69rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; }
.nav__list a {
  display: inline-block; padding: 10px 13px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: .95rem; color: var(--slate);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav__list a:hover { background: var(--mist); color: var(--navy); }
.nav__cta { display: none; } /* drawer-only CTA; hidden on desktop */

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; color: var(--navy); white-space: nowrap; }
.header__phone .icon { width: 22px; height: 22px; color: var(--accent); }
.header__phone small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); white-space: nowrap; }
.header__phone b { font-size: 1.06rem; letter-spacing: -.01em; white-space: nowrap; }
.header__quote { padding: 11px 20px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; padding: 0; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; color: var(--navy); }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1040px) {
  .header__phone small { display: none; }
}
@media (max-width: 1080px) {
  .header__quote { display: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(86vw, 360px);
    background: var(--navy); color: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 90px 24px 32px; z-index: 1500;
    transform: translateX(105%); transition: transform .32s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { color: #dceaf6; padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; white-space: normal; }
  .nav__list a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav__cta { display: inline-flex; margin-top: 16px; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(8,12,17,.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 1400;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
  .header__phone { display: none; }
  .brand__sub { display: none; }
  .brand__badge { padding: 8px 11px; }
  .brand__img { width: 84px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #1a2735 url("../img/roof-14.jpg") center/cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(13,20,28,.92) 0%, rgba(13,20,28,.74) 42%, rgba(13,20,28,.30) 100%),
    linear-gradient(0deg, rgba(13,20,28,.55), rgba(13,20,28,0) 45%);
}
.hero__inner { padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 8vw, 96px); max-width: 760px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  backdrop-filter: blur(4px); margin-bottom: 22px;
}
.hero__tag .icon { width: 17px; height: 17px; color: var(--accent); }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04;
  letter-spacing: -.025em; font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #dde7f0; max-width: 620px; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #e8eef4; }
.hero__trust .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---------- Trust / stats strip ---------- */
.stats { background: var(--navy); color: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: clamp(28px,4vw,40px) 0;
}
.stats__item { padding: 8px 14px; position: relative; }
.stats__item + .stats__item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56%; background: rgba(255,255,255,.14);
}
.stats__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 2.9rem); color: #fff; line-height: 1; }
.stats__num span { color: var(--accent); }
.stats__label { margin-top: 8px; font-size: .92rem; color: var(--muted-inv); letter-spacing: .02em; text-wrap: balance; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stats__item:nth-child(3)::before, .stats__item:nth-child(odd)::before { display: none; }
}

/* ---------- About / intro split ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about__badge {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
  font-family: var(--font-display); max-width: 220px;
}
.about__badge b { display: block; font-size: 2rem; line-height: 1; }
.about__badge span { font-size: .92rem; font-weight: 600; opacity: .95; }
.about__list { margin-top: 24px; display: grid; gap: 14px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; }
.about__list .icon { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 2px; }
.about__list b { color: var(--navy); }
.about p + p { margin-top: 14px; }
.about .muted { color: var(--muted); }
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 560px; }
  .about__badge { left: 12px; }
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1040px) { .cards, .cards--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cards, .cards--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .cards, .cards--5 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e0ea; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-700); margin-bottom: 16px;
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; }
.card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,60px); align-items: center; }
.why__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.feature-list { display: grid; gap: 22px; }
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
}
.feature__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--navy); color: var(--accent);
}
.section--ink .feature__icon { background: rgba(47,111,214,.20); }
.feature__icon .icon { width: 28px; height: 28px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 5px; }
.section--ink .feature h3 { color: #fff; }
.feature p { color: var(--muted); font-size: .98rem; }
.section--ink .feature p { color: var(--muted-inv); }
@media (max-width: 880px) { .why__grid { grid-template-columns: 1fr; } .why__media { max-width: 460px; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; background: var(--mist-2); border: 0; padding: 0;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,20,28,.55), rgba(13,20,28,0) 55%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--navy);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .zoom { opacity: 1; transform: translateY(0); }
.gallery__item .zoom .icon { width: 19px; height: 19px; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 2/1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall img { aspect-ratio: 1/2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--tall img { aspect-ratio: 1/1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(8,12,17,.92); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cfdae5; font-size: .9rem; }
@media (max-width: 600px) {
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 8px; }
.step__num {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-700);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  border: 2px dashed var(--accent);
}
.step h3 { font-size: 1.22rem; }
.step p { color: var(--muted); margin-top: 8px; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 35px; left: calc(50% + 50px); right: calc(-50% + 50px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps .step::after { display: none; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.review__stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.review__stars .icon { width: 20px; height: 20px; }
.review p { font-size: 1.04rem; color: var(--text); }
.review__by { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.review__name { font-weight: 700; color: var(--navy); }
.review__loc { font-size: .88rem; color: var(--muted); }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Service area ---------- */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.area__towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area__towns li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mist); border: 1px solid var(--line); color: var(--slate);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.area__towns .icon { width: 15px; height: 15px; color: var(--accent); }
.area__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.area__map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 820px) { .area__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; background: #14202c url("../img/roof-06.jpg") center/cover no-repeat; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(29,76,156,.94), rgba(13,22,33,.88)); }
.cta-band__inner { padding: clamp(48px,7vw,80px) 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 640px; }
.cta-band p { color: #d8e6fb; margin-top: 10px; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px,5vw,56px); align-items: start; }
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact__row {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.contact__row .ic {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-700);
  display: grid; place-items: center;
}
.contact__row .ic .icon { width: 26px; height: 26px; }
/* stack the label above the value (they were running together on one line) */
.contact__row > :last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact__row .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.2; }
.contact__row .val { font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.contact__row a.val:hover { color: var(--accent-700); }

.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field label .req { color: var(--accent-700); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfdff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,111,214,.18);
}
.form__note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form__note .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--green); }
.form__status { display: none; padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-top: 4px; }
.form__status.is-show { display: block; }
.form__status.ok { background: #e9f8f1; color: #137a51; border: 1px solid #bfe9d6; }
.form__status.err { background: #fdecea; color: #b3261e; border: 1px solid #f6c9c4; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-inv); padding-top: clamp(48px,6vw,72px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer .brand__name { color: #fff; }
.footer__logo { display: block; width: 250px; max-width: 72vw; height: auto; }
.footer__about { margin-top: 16px; font-size: .96rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-size: .85rem; }
.footer__links li, .footer__svc li { margin-bottom: 9px; }
.footer__links a:hover, .footer__svc a:hover { color: var(--accent); }
.footer__contact li { display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; }
.footer__contact .icon { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .86rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer__bottom a:hover { color: var(--accent); }
.footer__credit { text-align: center; padding: 16px 0 4px; font-size: .8rem; letter-spacing: .03em; color: var(--muted-inv); opacity: .75; }
.footer__credit a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); transition: color .15s var(--ease), border-color .15s var(--ease); }
.footer__credit a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating mobile call button ---------- */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; display: none;
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff;
  place-items: center; box-shadow: 0 10px 24px rgba(47,111,214,.45);
  animation: pulse 2.4s infinite;
}
.call-fab .icon { width: 28px; height: 28px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,111,214,.5); } 70% { box-shadow: 0 0 0 16px rgba(47,111,214,0); } 100% { box-shadow: 0 0 0 0 rgba(47,111,214,0); } }
@media (max-width: 560px) { .call-fab { display: grid; } }
@media (prefers-reduced-motion: reduce) { .call-fab { animation: none; } }

/* ---------- Scroll reveal (in-view / animated-group: rise + soft blur) ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   Premium motion — vanilla recreations of ibelick/motion-primitives
   text-effect · in-view · tilt · spotlight ·
   scroll-progress · infinite-slider
   ============================================================ */

/* --- Hero headline: word-by-word blur reveal (text-effect, fade-in-blur) --- */
.hero h1 .hero-word {
  display: inline-block; will-change: transform, filter;
  opacity: 0; transform: translateY(18px); filter: blur(10px);
  animation: heroWord .7s cubic-bezier(.2,.65,.3,1) forwards; animation-delay: var(--d, 0s);
}
@keyframes heroWord { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* --- Hero supporting elements fade up (animated-group stagger) --- */
.hero__tag    { animation: heroRise .8s var(--ease) both; }
.hero__lead   { animation: heroRise .8s var(--ease) both .52s; }
.hero__actions{ animation: heroRise .8s var(--ease) both .64s; }
.hero__trust  { animation: heroRise .8s var(--ease) both .76s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --- Tilt + sheen (cards lean toward the cursor with a soft moving highlight) --- */
.card { transform-style: preserve-3d; }
.card.is-tilting { transition: transform .1s linear, box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(47,111,214,.10), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card.is-tilting::after { opacity: 1; }

/* --- Spotlight (cursor-following light over the dark Why-Us section) --- */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(118,169,234,.16), transparent 42%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.spotlight.is-spotlit::before { opacity: 1; }
.spotlight > .container { position: relative; z-index: 1; }

/* --- Scroll progress (thin brand bar) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  transition: transform .12s ease-out;
  background: linear-gradient(90deg, var(--accent), var(--accent-300));
}

/* --- Infinite slider (refined service-area marquee) --- */
.marquee {
  margin-top: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap;
}
.marquee__item .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.marquee__item::after { content: "•"; margin-left: 22px; color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .hero-word { animation: none; opacity: 1; transform: none; filter: none; }
  .hero__tag, .hero__lead, .hero__actions, .hero__trust { animation: none; }
  .marquee { display: none; }
}

/* ============================================================
   Roofing services — line-icon "process" grid (draw-on-scroll)
   ============================================================ */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 30px; margin-top: 52px; }
.proc__item { text-align: center; }
.proc__item.reveal { filter: none; } /* keep the line icons crisp while they draw */
.proc__icon {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; margin: 0 auto 18px; color: var(--accent);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.proc__icon svg { width: 66px; height: 66px; display: block; overflow: visible; }
/* stroke-width is set per-icon on the <g> (= 2.2 / scale) so every line renders at a
   uniform weight after each icon's normalising transform — keep it out of CSS so the
   attribute wins, and avoid non-scaling-stroke (it breaks the pathLength dash draw). */
.proc__icon path {
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; /* default: drawn (safe if JS/observer never fires) */
}
.proc__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.proc__item p { color: var(--muted); font-size: .96rem; line-height: 1.55; max-width: 240px; margin-inline: auto; }
.proc__item:hover .proc__icon { transform: translateY(-4px); color: var(--accent-700); }

/* draw the strokes in (Vivus-style) when the item scrolls into view */
.proc__item.is-in .proc__icon path { animation: drawIcon .9s var(--ease) both; }
.proc__item.is-in .proc__icon path:nth-child(2) { animation-delay: .12s; }
.proc__item.is-in .proc__icon path:nth-child(3) { animation-delay: .24s; }
.proc__item.is-in .proc__icon path:nth-child(4) { animation-delay: .36s; }
.proc__item.is-in .proc__icon path:nth-child(5) { animation-delay: .48s; }
@keyframes drawIcon { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 860px) { .proc { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; } }

@media (prefers-reduced-motion: reduce) {
  .proc__item.is-in .proc__icon path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   Explore in 3D — <model-viewer> studio stage + hotspots + AR
   ============================================================ */
.threed .viewer { margin-top: 42px; }
.viewer__mv {
  display: block; width: 100%; height: clamp(360px, 52vw, 560px);
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.09); overflow: hidden;
  --poster-color: transparent;
  background:
    radial-gradient(115% 85% at 50% 36%, rgba(47,111,214,.24), rgba(47,111,214,0) 62%),
    radial-gradient(55% 38% at 50% 99%, rgba(0,0,0,.40), transparent 72%),
    linear-gradient(180deg, #1c2c3e 0%, #111c28 100%);
}
.viewer__mv::part(default-progress-bar) { background: rgba(255,255,255,.08); }

/* "View in your space" AR button (shown by model-viewer only on AR-capable devices) */
.ar-btn {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  font-family: var(--font-display); box-shadow: 0 8px 22px rgba(47,111,214,.42);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.ar-btn:hover { background: var(--accent-600); transform: translateX(-50%) translateY(-2px); }
.ar-btn svg { width: 18px; height: 18px; }

/* Hotspots (slotted into model-viewer, positioned by it in 3D space) */
.hotspot {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; border: 3px solid #fff;
  background: var(--accent); cursor: pointer; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.45), 0 0 0 5px rgba(47,111,214,.22);
  transition: transform .2s var(--ease), opacity .3s var(--ease);
}
/* model-viewer toggles data-visible when the point faces the camera — hide the rest */
.hotspot:not([data-visible]) { opacity: 0; pointer-events: none; }
.hotspot::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--accent-300); animation: hotspotPulse 2.6s ease-out infinite;
}
.hotspot:hover, .hotspot:focus-visible { transform: scale(1.18); outline: none; }
.hotspot__label {
  position: absolute; bottom: calc(100% + 11px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #fff; color: var(--navy); font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; white-space: nowrap; padding: 6px 11px; border-radius: 9px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.hotspot__label::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #fff;
}
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes hotspotPulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(2); opacity: 0; } 100% { opacity: 0; } }

/* caption / controls bar under the viewer */
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 15px; font-size: .82rem; color: var(--muted-inv); }
.viewer__drag { display: inline-flex; align-items: center; gap: 7px; }
.viewer__drag svg { width: 16px; height: 16px; color: var(--accent-300); }
.viewer__credit { opacity: .8; }
.viewer__credit a { color: inherit; text-decoration: underline; }
.viewer__credit a:hover { color: var(--accent-300); }

@media (prefers-reduced-motion: reduce) { .hotspot::before { animation: none; } }
@media (max-width: 560px) { .viewer__bar { justify-content: center; text-align: center; } }

/* Click-a-dot feature panel (left-hand side of the 3D viewer) */
.viewer { position: relative; }
.viewer__info {
  position: absolute; top: 18px; left: 18px; z-index: 6;
  width: min(312px, calc(100% - 36px));
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateX(-10px) scale(.98);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
}
.viewer__info.is-open { opacity: 1; visibility: visible; transform: none; }
.viewer__info-media { margin: 0; aspect-ratio: 16 / 10; background: var(--mist-2); }
.viewer__info-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer__info-body { padding: 15px 17px 18px; }
.viewer__info-index {
  display: inline-block; margin-bottom: 9px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-700); background: var(--accent-soft);
}
.viewer__info-title { font-family: var(--font-display); font-size: 1.18rem; color: var(--navy); margin: 0 0 7px; }
.viewer__info-text { font-size: .92rem; line-height: 1.55; color: var(--muted); margin: 0; }
.viewer__info-close {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--navy); box-shadow: 0 2px 8px rgba(16,23,31,.18);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.viewer__info-close:hover { background: #fff; transform: scale(1.06); }
.viewer__info-close svg { width: 16px; height: 16px; }
.hotspot.is-active { transform: scale(1.18); box-shadow: 0 2px 8px rgba(0,0,0,.45), 0 0 0 6px rgba(47,111,214,.42); }
@media (max-width: 600px) {
  .viewer__info { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; display: flex; }
  .viewer__info-media { width: 40%; aspect-ratio: auto; flex: none; }
  .viewer__info-body { padding: 12px 14px; }
  .viewer__info-title { font-size: 1.04rem; }
  .viewer__info-text { font-size: .86rem; }
}
