/* ============================================================
   Just Roofs Inc — Dark Premium Stylesheet
   Brand: teal→blue roof + orange sun on charcoal/black.
   Swap the CSS variables below to re-tune the palette.
   ============================================================ */

:root {
  /* Brand palette (tuned for a light background) */
  --teal:        #0f9db2;   /* primary accent (roof teal) */
  --teal-bright: #16b8ce;
  --teal-deep:   #0d6ea8;   /* roof blue */
  --sun:         #f2820e;   /* orange sun */
  --sun-2:       #f7a828;   /* warm yellow */
  --sun-deep:    #e2570b;

  /* Surfaces (light) */
  --bg:          #ffffff;   /* page background */
  --bg-alt:      #f3f6fa;   /* alternating section */
  --bg-card:     #ffffff;   /* cards */
  --bg-elev:     #eef2f7;   /* elevated / inputs */
  --bg-dark:     #0b1119;   /* dark feature bands (hero / AI / footer) */

  /* Text */
  --ink:         #12202e;   /* headings / primary text */
  --ink-soft:    #45586c;   /* body text */
  --muted:       #6f8093;   /* secondary */
  --line:        #e5eaf1;
  --line-2:      #d4dce7;

  --gold:        #f5a623;   /* stars */
  --green:       #17a06a;   /* checks / success */

  --radius:      16px;
  --radius-sm:   11px;
  --shadow:      0 12px 30px rgba(16,32,46,.08);
  --shadow-lg:   0 24px 60px rgba(16,32,46,.14);
  --glow-teal:   0 0 0 1px rgba(15,157,178,.3), 0 10px 30px rgba(15,157,178,.18);
  --maxw:        1180px;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:       "Cinzel", "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Dark feature bands re-scope tokens so light-on-dark components keep working */
.hero, .ait, .cta-band, .site-footer {
  --ink:       #ffffff;
  --ink-soft:  rgba(255,255,255,.86);
  --muted:     rgba(255,255,255,.62);
  --bg-elev:   rgba(255,255,255,.08);
  --bg-card:   rgba(255,255,255,.05);
  --line:      rgba(255,255,255,.12);
  --line-2:    rgba(255,255,255,.22);
  --teal-bright: #5fe3ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.gradient-text {
  background: linear-gradient(100deg, var(--teal-bright), var(--teal-deep) 55%, var(--sun) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sun-text {
  background: linear-gradient(90deg, var(--sun-2), var(--sun) 55%, var(--sun-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}

.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(100deg, var(--teal), var(--teal-deep));
  color: #041018; box-shadow: 0 10px 26px rgba(35,201,219,.32);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(35,201,219,.5); transform: translateY(-2px); }
.btn--sun {
  background: linear-gradient(100deg, var(--sun-2), var(--sun-deep));
  color: #2a1400; box-shadow: 0 10px 26px rgba(255,122,26,.32);
}
.btn--sun:hover { box-shadow: 0 14px 34px rgba(255,122,26,.5); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-bright); }
.btn--light { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line-2); }
.btn--light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; flex: none; display: block; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.18rem;
  letter-spacing: .04em; color: var(--ink); text-transform: uppercase;
}
.brand__tag {
  font-size: .56rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 600; color: var(--ink-soft); font-size: .97rem; transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--teal-bright); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.nav__phone svg { width: 18px; height: 18px; color: var(--teal); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 122px 0 130px;
  background:
    linear-gradient(90deg, rgba(7,11,17,.95) 0%, rgba(7,11,17,.74) 44%, rgba(7,11,17,.30) 74%, rgba(7,11,17,.5) 100%),
    linear-gradient(180deg, rgba(7,11,17,.2) 60%, var(--bg) 100%),
    url('hero.jpg') center right / cover no-repeat,
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 12% 6%, rgba(35,201,219,.16), transparent 62%),
              radial-gradient(620px 320px at 4% 92%, rgba(255,138,30,.12), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 680px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: var(--ink-soft); font-size: 1.2rem; max-width: 54ch; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,208,138,.2); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 34px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .97rem; color: var(--ink); }
.hero__badge svg { width: 21px; height: 21px; color: var(--sun-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rating { margin-top: 32px; display: flex; align-items: center; gap: 13px; color: #fff; }
.hero__rating .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.hero__rating small { color: var(--muted); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center; padding: 26px 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
}
.stat b {
  display: block; font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--teal-bright), var(--teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(35,201,219,.16), rgba(20,135,207,.14));
  color: var(--teal-bright); display: grid; place-items: center;
  border: 1px solid rgba(35,201,219,.2); font-weight: 800; font-size: 1.2rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .45rem; color: var(--ink); }
.card p { margin: 0; font-size: .98rem; }

/* ---------- Why us / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 58px; align-items: center; }
.split h2 { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 1px; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: linear-gradient(135deg, #eaf1f7, #dbe6f0);
  border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 22px;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Work gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3; box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px; color: #fff;
  font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(5,9,14,.9));
}
.gallery__item .tag {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--teal-bright); margin-bottom: 3px;
}
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- AI Roof Transformation ---------- */
.ait {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255,138,30,.12), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(35,201,219,.12), transparent 60%),
    var(--bg-dark);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ait__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-bright); background: rgba(35,201,219,.1); border: 1px solid rgba(35,201,219,.3);
}
.ait__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
.ait h2 { color: #fff; }
.ait h2 .tm { font-size: .5em; vertical-align: super; color: var(--teal); font-weight: 700; }

.ait__stage {
  position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #0f1b26, #070c12 70%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.ait__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ait__scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: 0; filter: drop-shadow(0 0 8px var(--teal));
}
.ait.playing .ait__scanline { animation: scan 4.6s linear infinite; }
@keyframes scan { 0%{top:6%;opacity:0} 8%{opacity:.9} 92%{opacity:.9} 100%{top:94%;opacity:0} }

/* stage element reveal driven by .s-1 … .s-5 class on .ait__stage */
.ait__stage [data-appear] { opacity: 0; transition: opacity .7s ease; }
.ait__wire { stroke: var(--teal); stroke-width: 1.4; fill: none; opacity: 0; transition: opacity .6s ease; }

/* wireframe visible while the house is still being built (1-3) */
.ait__stage.s-1 .ait__wire,
.ait__stage.s-2 .ait__wire,
.ait__stage.s-3 .ait__wire { opacity: .85; }

/* structure framing (2-3) */
.ait__stage.s-2 [data-appear="structure"],
.ait__stage.s-3 [data-appear="structure"] { opacity: .9; }

/* exploded roof layers (3 only) */
.ait__stage.s-3 [data-appear="layers"] { opacity: 1; }
[data-appear="layers"] .ait__layer {
  opacity: 0; transform: translateY(var(--dy, -24px));
  transition: transform .8s cubic-bezier(.2,.85,.25,1), opacity .5s ease;
}
.ait__stage.s-3 [data-appear="layers"] .ait__layer { opacity: 1; transform: translateY(0); }
.ait__stage.s-3 [data-appear="layers"] .ait__layer:nth-child(2) { transition-delay: .15s; }
.ait__stage.s-3 [data-appear="layers"] .ait__layer:nth-child(3) { transition-delay: .3s; }

/* photoreal reveal (4-5) */
.ait__stage.s-4 [data-appear="photo"],
.ait__stage.s-5 [data-appear="photo"] { opacity: 1; }
.ait__stage.s-5 .ait__glow { opacity: 1; }
.ait__glow { opacity: 0; transition: opacity 1.1s ease; }
/* material color transitions smoothly when swatches change */
.ait__stage [fill="var(--mat)"] { transition: fill .5s ease; }

/* stepper */
.ait__steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 6px; }
.ait__step {
  display: flex; gap: 15px; align-items: flex-start; padding: 13px 15px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: .25s; color: var(--muted);
}
.ait__step:hover { background: rgba(255,255,255,.03); }
.ait__step.active { background: rgba(35,201,219,.08); border-color: rgba(35,201,219,.28); color: var(--ink); }
.ait__step .n {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; background: var(--bg-elev); color: var(--muted); border: 1px solid var(--line);
  transition: .25s;
}
.ait__step.active .n { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #04121a; border-color: transparent; }
.ait__step b { color: #fff; font-weight: 700; display: block; font-size: 1rem; }
.ait__step small { font-size: .88rem; }
.ait__controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ait__progress { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: var(--bg-elev); overflow: hidden; }
.ait__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--sun)); border-radius: 99px; transition: width .3s linear; }
.ait__material-dots { display: flex; gap: 9px; margin-top: 4px; }
.ait__swatch { width: 26px; height: 26px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.ait__swatch.active { border-color: #fff; transform: scale(1.08); }

/* ---------- AI Roof Transformation — realistic viewer ---------- */
.ait__row + .ait__row { margin-top: 34px; padding-top: 48px; border-top: 1px solid var(--line); }
.rv__stage {
  position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  background: #0a0f16; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.rv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .85s ease; }
.rv__img.on { opacity: 1; }
.rv__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  filter: drop-shadow(0 0 10px var(--teal)); pointer-events: none;
}
.rv.playing .rv__scan { animation: rvscan 2.6s linear infinite; }
@keyframes rvscan { 0%{top:4%;opacity:0} 12%{opacity:.95} 88%{opacity:.95} 100%{top:96%;opacity:0} }
.rv__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-bright); background: rgba(6,12,18,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(35,201,219,.3); padding: 6px 12px; border-radius: 999px;
}
.rv__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(5,9,14,.9)); color: #fff;
}
.rv__label b { display: block; font-size: .78rem; color: var(--teal-bright); letter-spacing: .08em; margin-bottom: 3px; }
.rv__label span { font-size: 1.12rem; font-weight: 700; }

.swatches { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.sw i { width: 38px; height: 38px; border-radius: 11px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: .2s; }
.sw.on i { border-color: #fff; transform: scale(1.08); }
.sw span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.sw.on span { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 6px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: .25s; color: var(--muted); }
.step:hover { background: rgba(255,255,255,.03); }
.step.on { background: rgba(35,201,219,.08); border-color: rgba(35,201,219,.28); color: var(--ink); }
.step .n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--bg-elev); color: var(--muted); border: 1px solid var(--line); transition: .25s; }
.step.on .n { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #04121a; border-color: transparent; }
.step b { color: #fff; font-weight: 700; display: block; font-size: .98rem; }
.step small { font-size: .86rem; }
.rowctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.prog { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: var(--bg-elev); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--sun)); border-radius: 99px; transition: width .3s linear; }

/* wipe before/after visualizer */
#bStage { --x: 52%; cursor: ew-resize; touch-action: none; user-select: none; }
#bFinish { opacity: 1 !important; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.wipe-div { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; z-index: 4; background: rgba(255,255,255,.92); box-shadow: 0 0 14px rgba(35,201,219,.85); pointer-events: none; }
.wipe-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; color: #04121a; background: linear-gradient(100deg, var(--teal), var(--teal-deep)); box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.side-tag { position: absolute; bottom: 14px; z-index: 4; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(6,12,18,.6); backdrop-filter: blur(6px); color: #fff; pointer-events: none; }
.side-tag.l { left: 14px; } .side-tag.r { right: 14px; color: var(--teal-bright); }
@media (max-width: 960px) { .rv { order: -1; } }

/* ---------- Reviews ---------- */
.reviews-hero { background: var(--bg-alt); padding: 70px 0; border-bottom: 1px solid var(--line); }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; }
.rating-big { text-align: center; }
.rating-big b { font-size: 4.2rem; font-weight: 800; color: #fff; line-height: 1; }
.rating-bars { flex: 1; min-width: 260px; display: grid; gap: 7px; }
.rating-bar { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.rating-bar .track { flex: 1; height: 8px; background: var(--bg-elev); border-radius: 99px; overflow: hidden; }
.rating-bar .fill { height: 100%; background: var(--gold); border-radius: 99px; }
.google-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.google-badge svg { width: 22px; height: 22px; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.star-full { color: var(--gold); }
.star-empty { color: #3a4656; }

.review-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 34px; justify-content: center; }
.chip {
  border: 1px solid var(--line-2); background: var(--bg-card); color: var(--ink-soft);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-bright); }
.chip.active { background: linear-gradient(100deg, var(--teal), var(--teal-deep)); border-color: transparent; color: #04121a; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.review__top { display: flex; align-items: center; gap: 13px; }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.05rem;
}
.review__who b { display: block; font-size: 1rem; color: var(--ink); }
.review__who small { color: var(--muted); }
.review__body { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.review__owner {
  margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .9rem;
  background: rgba(35,201,219,.06); border: 1px solid rgba(35,201,219,.16); color: var(--ink-soft);
}
.review__owner b { color: var(--teal-bright); font-size: .82rem; display: block; margin-bottom: 3px; }
.review__src { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.review__src svg { width: 15px; height: 15px; }

/* ---------- Schedule / Booking ---------- */
.booking { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; align-items: start; }
.form-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--sun); }
.input, .select, .textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-elev); transition: border .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238695a6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.select option { color: #111820; background: #fff; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,201,219,.16);
}
.textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.service-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service-opt { position: relative; }
.service-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.service-opt span {
  display: block; text-align: center; padding: 13px 8px; border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: .15s; background: var(--bg-elev);
}
.service-opt input:checked + span { border-color: var(--teal); background: rgba(35,201,219,.12); color: var(--teal-bright); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span {
  display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: .15s; background: var(--bg-elev);
}
.slot input:checked + span { border-color: transparent; background: linear-gradient(100deg, var(--teal), var(--teal-deep)); color: #04121a; }
.slot input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.booking-aside { display: grid; gap: 18px; }
.aside-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.aside-card h3 { font-size: 1.1rem; color: var(--ink); }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.aside-list svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: linear-gradient(100deg, var(--teal), var(--teal-deep)); color: #04121a; padding: 15px 26px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-weight: 700; z-index: 200; transition: transform .35s cubic-bezier(.2,.9,.3,1);
  max-width: 92vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.confirm-box {
  border: 1.5px solid rgba(47,208,138,.4); background: rgba(47,208,138,.08); color: #8ef0c2;
  border-radius: var(--radius); padding: 22px; margin-top: 20px; display: none; font-weight: 600;
}
.confirm-box.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(35,201,219,.22), transparent 60%),
    radial-gradient(600px 300px at 85% 90%, rgba(255,138,30,.2), transparent 60%),
    linear-gradient(120deg, #10202b, #0b1621);
  color: #fff; border-radius: 24px; padding: 58px; text-align: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-2);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--ink-soft); padding: 66px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--teal-bright); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .94rem; }
.footer-contact { display: grid; gap: 12px; font-size: .95rem; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 46px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--muted);
}

/* ---------- Floating mobile call button ---------- */
.fab-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; gap: 9px;
  padding: 14px 20px; border-radius: 999px;
  background: linear-gradient(100deg, var(--teal), var(--teal-deep));
  color: #04121a; font-weight: 800; font-size: 1rem;
  box-shadow: 0 12px 30px rgba(35,201,219,.45);
}
.fab-call svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .fab-call { display: inline-flex; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .booking, .ait__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ait__grid .ait__stage { order: -1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--2, .review-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.05rem; }
}

/* ---------- Real logo image ---------- */
.brand__img { height: 96px; width: auto; display: block; }
.site-footer .brand__img { height: 66px; }
@media (max-width: 720px) { .brand__img { height: 66px; } }

/* ---------- Owner portrait ---------- */
.media-frame--portrait { aspect-ratio: 4/5; }
.media-frame img.owner-img { object-position: center 22%; }

/* ---------- Before / After ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; font-size: .98rem; background: linear-gradient(180deg, transparent, rgba(5,9,14,.85)); }
.ba-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff; }
.ba-tag--before { background: #c0492e; }
.ba-tag--after { background: var(--green); }
@media (max-width: 720px) { .beforeafter { grid-template-columns: 1fr; } }

/* ---------- Centered header ---------- */
.hdr-top { position: relative; display: flex; align-items: center; justify-content: center; padding: 15px 0 11px; }
.hdr-top .brand { gap: 13px; }
.hdr-top .brand__mark { width: 54px; height: 54px; }
.hdr-phone { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.hdr-top .nav__toggle { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: none; }
.hdr-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; border-top: 1px solid var(--line); padding: 11px 0; }
.hdr-nav .nav__links { gap: 30px; }
.hdr-cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }

@media (max-width: 900px) {
  .hdr-phone, .hdr-cta { display: none; }
  .hdr-top .nav__toggle { display: block; }
  .hdr-nav { display: none; }
  .hdr-nav.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; padding: 16px 22px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
  }
  .hdr-nav.open .nav__links { flex-direction: column; gap: 15px; }
  .hdr-nav.open .hdr-cta { position: static; transform: none; display: inline-flex; justify-content: center; }
}

/* ---------- Stronger section separation ---------- */
.section--alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero trust badges ---------- */
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; align-items: center; }
.hero__trust a, .hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: #fff; }
.hero__trust .tstars { color: var(--gold); letter-spacing: 1px; }
.hero__trust a:hover { color: var(--teal-bright); }
.hero__trust .divider { width: 1px; height: 18px; background: rgba(255,255,255,.25); }

/* ---------- Meet the owner ---------- */
.owner-quote {
  margin: 24px 0 0; padding: 20px 24px; border-left: 4px solid var(--teal);
  background: var(--bg-alt); border-radius: 0 12px 12px 0;
  font-size: 1.14rem; font-weight: 600; color: var(--ink); font-style: italic; line-height: 1.5;
}
.owner-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-weight: 700; color: var(--ink); }
.owner-badge b { color: var(--teal-deep); }

/* ---------- Honesty band ---------- */
.honesty {
  background:
    radial-gradient(700px 320px at 90% 10%, rgba(15,157,178,.1), transparent 60%),
    linear-gradient(120deg, #f0f8fa, #eaf3f7);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.honesty__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.honesty__quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.28;
  color: var(--ink); font-weight: 700; margin: 0 0 18px;
}
.honesty__quote span { color: var(--teal-deep); }
.honesty__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
@media (max-width: 900px) { .honesty__grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Warranty ---------- */
.warranty-hero {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; text-align: center;
  box-shadow: 0 16px 40px rgba(13,110,168,.3);
}
.warranty-hero b { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.warranty-hero span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; opacity: .95; }

/* ---------- Finishing-touch lead generation ---------- */
.project-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line);
}
.project-summary div { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; background: #fff; }
.project-summary span { color: var(--teal-deep); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-summary b { color: var(--ink); font-size: .94rem; }

.quick-lead-section { padding-top: 58px; padding-bottom: 58px; }
.quick-lead {
  display: grid; grid-template-columns: .9fr 1.25fr; gap: 42px; align-items: center;
  padding: 38px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(120deg, #fff, #eef8fa); box-shadow: var(--shadow);
}
.quick-lead h2 { margin-bottom: 10px; }
.quick-lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-lead__form .field { margin: 0; }
.quick-lead__form .field:nth-child(3) { grid-column: 1 / 2; }
.quick-lead__form .btn { align-self: end; min-height: 49px; }
.quick-lead__form .form-note { grid-column: 1 / -1; margin: 0; }
.text-photo-link, .card-link { display: inline-flex; margin-top: 14px; color: var(--teal-deep); font-weight: 800; }
.text-photo-link:hover, .card-link:hover { color: var(--blue); }
.card-link { font-size: .9rem; }
.service-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.service-links a, .area-chips span {
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  padding: 10px 16px; font-size: .9rem; font-weight: 700;
}
.service-links a:hover { border-color: var(--teal); color: var(--teal-deep); }

.roof-upload {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; margin-top: 34px; padding: 34px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 20px;
  background: rgba(255,255,255,.045); box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.roof-upload h2 { color: #fff; margin-top: 12px; }
.roof-upload p { color: var(--ink-soft); }
.roof-upload .field label { color: #fff; }
.roof-upload .form-note { color: var(--muted); }
.upload-box {
  display: flex; flex-direction: column; gap: 4px; margin-top: 20px; padding: 18px;
  border: 1px dashed rgba(35,201,219,.55); border-radius: 14px; color: #fff; cursor: pointer;
  background: rgba(35,201,219,.08);
}
.upload-box span { font-weight: 800; }
.upload-box small { color: var(--ink-soft); }
.upload-box input { margin-top: 10px; color: var(--ink-soft); }
.upload-preview {
  display: grid; place-items: center; min-height: 190px; margin-top: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: var(--muted); background: rgba(0,0,0,.25);
}
.upload-preview img { width: 100%; max-height: 340px; object-fit: cover; }
.roof-preference-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.roof-preference-form .field { margin: 0; }
.roof-preference-form .field:nth-child(n+3) { grid-column: 1 / -1; }
.roof-preference-form .btn, .roof-preference-form .form-note { grid-column: 1 / -1; }
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Service detail pages ---------- */
.service-hero { padding: 78px 0 68px; background: linear-gradient(120deg, #07111b, #0b2632); }
.service-hero h1 { color: #fff; max-width: 18ch; }
.service-hero p { color: rgba(255,255,255,.8); max-width: 62ch; font-size: 1.14rem; }
.service-hero .hero__pill { color: #fff; border-color: rgba(255,255,255,.3); }
.service-hero .btn--light { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.07); }
.service-hero .btn--light:hover { color: #fff; border-color: rgba(255,255,255,.68); background: rgba(255,255,255,.13); }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.service-content { max-width: 850px; margin: 0 auto; }
.service-content h2 { margin-top: 42px; }
.service-content h2:first-child { margin-top: 0; }
.service-content h3 { margin-top: 26px; }
.service-content p + p { margin-top: 14px; }
.service-content .checklist { margin-top: 18px; }
.faq-list { display: grid; gap: 14px; margin-top: 22px; }
.faq-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item h3 { margin: 0 0 8px; }
.service-photo { margin: 34px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-photo img { width: 100%; max-height: 460px; object-fit: cover; }

@media (max-width: 900px) {
  .project-summary { grid-template-columns: 1fr 1fr; }
  .quick-lead, .roof-upload { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .project-summary, .quick-lead__form, .roof-preference-form { grid-template-columns: 1fr; }
  .quick-lead { padding: 26px 20px; }
  .quick-lead__form .field:nth-child(3), .quick-lead__form .btn, .quick-lead__form .form-note,
  .roof-preference-form .field, .roof-preference-form .btn, .roof-preference-form .form-note { grid-column: 1; }
  .roof-upload { padding: 24px 18px; }
}
