/* =============================================================
   Ridgeline Roofing Solutions
   Art direction: warm paper ground, slate-navy structure,
   clay-tile accent. Archivo type. Blueprint/roofline motifs.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #F3F0E8;
  --paper-2:    #EAE5DA;
  --ink:        #14181C;
  --ink-soft:   #3B434B;
  --navy:       #0E2C46;
  --navy-2:     #123a5c;
  --blue:       #1E6FB8;
  --blue-2:     #4E93CB;
  --sky:        #A9CBE6;
  --clay:       #B9543B;
  --clay-2:     #cf6a50;
  --line:       rgba(14, 44, 70, 0.14);
  --line-2:     rgba(14, 44, 70, 0.28);
  --white:      #ffffff;

  --shadow-sm: 0 1px 2px rgba(14,44,70,.06), 0 6px 18px rgba(14,44,70,.06);
  --shadow-md: 0 10px 30px rgba(14,44,70,.12);
  --shadow-lg: 0 30px 70px rgba(14,44,70,.22);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 72px);
  --r: 4px;               /* deliberately tight radii — architectural, not "soft AI" */

  --ff-display: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --ff-body:    "Archivo", -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--clay); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--clay); display: inline-block; }
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 60px); }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; color: var(--navy); }
h2.title { font-size: clamp(30px, 4.4vw, 56px); margin-top: 16px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  padding: 15px 26px; border-radius: var(--r); font-weight: 700; font-size: 15px;
  letter-spacing: .01em; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--clay); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--clay { --bg: var(--clay); }
.btn--clay::after { background: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost::after { background: var(--navy); }
.btn--ghost:hover { --fg: #fff; }
.btn--lg { padding: 18px 32px; font-size: 16px; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid #fff; transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; background: rgba(255,255,255,.12); }
body.has-cursor, body.has-cursor * { cursor: none; }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy); color: #cfe0ee; font-size: 13px; letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 20px; }
.topbar__list { display: flex; gap: 26px; overflow: hidden; }
.topbar__list li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__list svg { width: 14px; height: 14px; color: var(--blue-2); }
.topbar a.tel { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.topbar a.tel svg { width: 14px; height: 14px; color: var(--clay-2); }
@media (max-width: 720px) { .topbar__list li:nth-child(n+2) { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(243,240,232,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s, background .4s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px rgba(14,44,70,.08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .4s var(--ease); }
.header.is-stuck .wrap { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 46px; width: auto; transition: height .4s var(--ease); }
.header.is-stuck .brand__logo { height: 38px; }
.brand__txt { line-height: 1; }
.brand__txt b { font-family: var(--ff-display); font-weight: 800; color: var(--navy); font-size: 18px; letter-spacing: -.01em; display: block; }
.brand__txt span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 20px; }
.header__cta .tel-lg { font-family: var(--ff-display); font-weight: 800; color: var(--navy); font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.header__cta .tel-lg svg { width: 16px; color: var(--clay); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { width: 24px; height: 2px; background: var(--navy); transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
}
/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 950; background: var(--navy); color: #fff; padding: 20px var(--gut) 40px; transform: translateY(-100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.drawer.open { transform: translateY(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer__brand { font-family: var(--ff-display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -.01em; }
.drawer__close { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); transition: background .3s var(--ease), transform .3s var(--ease); }
.drawer__close:hover { background: var(--clay); border-color: var(--clay); transform: rotate(90deg); }
.drawer__close svg { width: 22px; height: 22px; }
.drawer a { font-family: var(--ff-display); font-weight: 800; font-size: 30px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.drawer .btn { margin-top: 24px; align-self: flex-start; }
.drawer__tel { margin-top: auto; font-size: 22px; font-weight: 800; color: var(--sky); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 88% 8%, #16456b 0%, rgba(22,69,107,0) 55%),
    linear-gradient(160deg, #0f3050 0%, #0b243b 55%, #081c30 100%);
}
.hero__grid { position: absolute; inset: 0; z-index: 0; opacity: .55; pointer-events: none;
  background-image: linear-gradient(rgba(169,203,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(169,203,230,.06) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 78%); }
.hero__glow { position: absolute; z-index: 0; width: 60vw; height: 60vw; right: -14vw; top: -22vw; pointer-events: none;
  background: radial-gradient(circle, rgba(30,111,184,.28), transparent 62%); }
.hero__wrap { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 128px) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.hero__eyebrow { color: var(--sky); }
.hero__eyebrow::before { background: var(--clay-2); }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 86px); line-height: .96; margin: 22px 0 0; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--sky); position: relative; }
.hero h1 em::after { content:""; position:absolute; left:0; right:0; bottom:.04em; height:.08em; background: var(--clay); border-radius: 2px; }
.hero p.sub { font-size: clamp(16px, 1.4vw, 19px); color: #c8d7e5; max-width: 50ch; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.hero .btn--ghost::after { background: #fff; }
.hero .btn--ghost:hover { --fg: var(--navy); }

.hero__trust { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); width: fit-content; }
.hero__trust li { padding: 0 26px; border-left: 1px solid rgba(255,255,255,.12); }
.hero__trust li:first-child { padding-left: 0; border-left: 0; }
.hero__trust b { font-family: var(--ff-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); color: #fff; display: block; line-height: 1; letter-spacing: -.02em; }
.hero__trust span { font-size: 12px; color: #9fbdd6; line-height: 1.25; display: block; margin-top: 8px; }

/* hero right — framed feature + seal + review */
.hero__panel { position: relative; align-self: center; padding: 8px 8px 0; }
.hero__frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); background: #0a2036; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.hero__frame-tag { position: absolute; left: 14px; top: 14px; z-index: 3; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(9,26,42,.6); border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; border-radius: 4px; }

.seal { position: absolute; top: -26px; right: -18px; z-index: 4; width: 108px; height: 108px; }
.seal svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { fill: #fff; font-family: var(--ff-display); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; }
.seal__core { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--clay); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.seal__core svg { width: 26px; height: 26px; color: #fff; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.rating-card {
  position: absolute; left: -22px; bottom: -30px; z-index: 4; width: min(320px, 82%);
  background: var(--paper); color: var(--ink); border-radius: 10px;
  padding: 20px 22px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.rating-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stars { display: flex; gap: 2px; color: #f2b840; }
.stars svg { width: 18px; height: 18px; }
.rating-card__top b { font-family: var(--ff-display); font-weight: 800; font-size: 16px; color: var(--navy); }
.rating-card q { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.5; quotes: none; }
.rating-card cite { display: block; margin-top: 10px; font-style: normal; font-size: 12.5px; color: var(--blue); font-weight: 700; }

.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9fbdd6; }
.hero__scroll svg { width: 18px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 960px) {
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; margin-top: 30px; }
  .hero__scroll { display: none; }
}
@media (max-width: 460px) {
  .hero__trust { grid-template-columns: repeat(2, auto); gap: 20px 0; }
  .hero__trust li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--clay); color: #fff; overflow: hidden; border-block: 1px solid rgba(0,0,0,.08); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--ff-display); font-weight: 800; font-size: clamp(18px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: .01em; padding: 18px 34px; display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.marquee__track span::after { content: "◆"; font-size: .5em; color: rgba(255,255,255,.6); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.stat { background: var(--navy); padding: clamp(30px, 4vw, 56px) clamp(18px, 2.5vw, 40px); }
.stat b { font-family: var(--ff-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 74px); color: #fff; line-height: 1; display: flex; align-items: baseline; gap: 4px; letter-spacing: -.03em; }
.stat b i { font-style: normal; color: var(--clay-2); font-size: .6em; }
.stat span { display: block; margin-top: 12px; color: #a9c2d6; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  background: var(--paper); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden;
  transition: background .4s var(--ease); display: flex; flex-direction: column;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc:hover { background: var(--white); }
.svc:hover::before { transform: scaleX(1); }
.svc__num { font-family: var(--ff-display); font-weight: 800; font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.svc__icon { width: 42px; height: 42px; margin: 18px 0 20px; color: var(--navy); transition: transform .5s var(--ease), color .4s; }
.svc:hover .svc__icon { transform: translateY(-4px) rotate(-4deg); color: var(--clay); }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-top: 12px; }
.svc__arrow { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--navy); opacity: .55; transition: .4s var(--ease); }
.svc:hover .svc__arrow { opacity: 1; color: var(--clay); transform: translateX(4px); }
.svc__arrow svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.showcase { background: var(--navy); color: #fff; }
.showcase .eyebrow { color: var(--sky); }
.showcase h2.title { color: #fff; }
.showcase .lead { color: #c7d5e2; }
.ba {
  position: relative; margin-top: 46px; border-radius: 8px; overflow: hidden;
  aspect-ratio: 16 / 9; user-select: none; box-shadow: var(--shadow-lg); background: #0a1f33;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba__label { position: absolute; top: 18px; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(9,26,42,.75); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; backdrop-filter: blur(4px); }
.ba__label--b { left: 18px; }
.ba__label--a { right: 18px; color: var(--sky); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: ew-resize; }
.ba__grip svg { width: 24px; height: 24px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* placeholder look when image missing — shows branded blueprint roofing art */
.imgph {
  background-color: #0a2036; color: transparent;
  background-image: url("assets/blueprint-roof.svg");
  background-size: cover; background-position: center; position: relative;
}
.imgph::after {
  content: attr(data-ph); position: absolute; left: 12px; bottom: 12px;
  color: rgba(169,203,230,.65); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(9,26,42,.55); padding: 5px 9px; border-radius: 3px; border: 1px solid rgba(169,203,230,.2);
}
/* hero placeholder should fill without a label box */
.hero__media.imgph { background-size: cover; }
.hero__media.imgph::after { content: none; }

/* ============================================================
   WHY US (split)
   ============================================================ */
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-md); }
.why__badge {
  position: absolute; right: -18px; bottom: 28px; background: var(--clay); color: #fff; padding: 22px 26px; border-radius: 6px; box-shadow: var(--shadow-md); max-width: 220px;
}
.why__badge b { font-family: var(--ff-display); font-size: 40px; font-weight: 800; display: block; line-height: 1; }
.why__badge span { font-size: 13px; font-weight: 600; opacity: .95; }
.feats { margin-top: 30px; display: grid; gap: 4px; }
.feat { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat__ic { flex: none; width: 46px; height: 46px; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; color: var(--blue); }
.feat__ic svg { width: 24px; height: 24px; }
.feat h4 { font-family: var(--ff-display); font-size: 18px; color: var(--navy); font-weight: 800; margin-bottom: 4px; }
.feat p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 860px) { .why .wrap { grid-template-columns: 1fr; } .why__media { order: -1; } .why__badge { right: 18px; } }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--paper-2); position: relative; }
/* faint fish-scale roof-tile texture */
.process::before, .areas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='24' viewBox='0 0 44 24'%3E%3Cg fill='none' stroke='%230E2C46' stroke-opacity='0.07' stroke-width='1.4'%3E%3Cpath d='M0 24a11 11 0 0 1 22 0a11 11 0 0 1 22 0'/%3E%3Cpath d='M-11 12a11 11 0 0 1 22 0a11 11 0 0 1 22 0a11 11 0 0 1 22 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px 24px;
}
.areas { position: relative; }
.process .wrap, .areas .wrap { position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; counter-reset: s; }
.step { position: relative; padding-top: 34px; }
.step::before { content: ""; position: absolute; top: 15px; left: 0; right: -24px; height: 2px; background: var(--line-2); }
.step:last-child::before { right: 0; }
.step__dot { position: absolute; top: 6px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--clay); }
.step__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--clay); }
.step__no { font-family: var(--ff-display); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--blue); }
.step h4 { font-family: var(--ff-display); font-size: 22px; font-weight: 800; color: var(--navy); margin: 6px 0 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .step::before { display: none; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; margin-top: 46px; }
.shot { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,26,42,.72), transparent 55%); opacity: 0; transition: opacity .4s; }
.shot:hover::after { opacity: 1; }
.shot figcaption { position: absolute; left: 18px; bottom: 16px; color: #fff; font-weight: 700; font-size: 15px; z-index: 2; transform: translateY(10px); opacity: 0; transition: .4s var(--ease); }
.shot:hover figcaption { transform: translateY(0); opacity: 1; }
.shot.big { grid-column: span 6; grid-row: span 2; }
.shot.tall { grid-column: span 3; grid-row: span 2; }
.shot.wide { grid-column: span 6; grid-row: span 1; }
.shot.sq { grid-column: span 3; grid-row: span 1; }
@media (max-width: 800px) {
  /* uniform 2-col grid: 6 tiles fill 3 rows with no empty cells */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 10px; }
  .shot { aspect-ratio: 1 / 1; height: auto; }
  .shot.big, .shot.tall, .shot.wide, .shot.sq { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 420px) {
  .shot figcaption { font-size: 13px; left: 12px; bottom: 12px; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.reviews { background: var(--paper-2); }
.reviews .eyebrow { color: var(--blue); }
.reviews h2.title { color: var(--navy); }
.reviews__widget {
  margin-top: 42px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: clamp(14px, 2.5vw, 26px); box-shadow: var(--shadow-md);
  min-height: 220px;
}
.reviews__widget iframe { display: block; border: 0; width: 100%; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.review { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 30px; display: flex; flex-direction: column; gap: 16px; transition: transform .4s var(--ease), background .4s; }
.review:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.review .stars svg { width: 18px; height: 18px; }
.review q { quotes: none; font-size: 16px; line-height: 1.6; color: #e7eff6; }
.review__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; color: #fff; }
.review__by b { font-size: 15px; color: #fff; display: block; }
.review__by span { font-size: 13px; color: var(--sky); }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ============================================================
   AREAS
   ============================================================ */
.areas { overflow: hidden; }
.areas__map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.areas__map img { width: 100%; height: 100%; object-fit: cover; opacity: .16; mix-blend-mode: multiply; filter: grayscale(.2); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.areas .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.areas__list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas__list span { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 100px; font-weight: 600; font-size: 14px; color: var(--navy); transition: .3s var(--ease); }
.areas__list span:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.areas__list span.county { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.areas__list span.county:hover { background: var(--clay); border-color: var(--clay); }
@media (max-width: 800px) { .areas .wrap { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT / QUOTE
   ============================================================ */
.contact { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contact__grid { position: relative; z-index: 2;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact__info { padding: clamp(34px, 4vw, 56px); border-right: 1px solid rgba(255,255,255,.12); }
.contact__info h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); }
.contact__info p { color: #c7d5e2; margin-top: 16px; }
.contact__lines { margin-top: 34px; display: grid; gap: 22px; }
.cline { display: flex; gap: 16px; align-items: flex-start; }
.cline__ic { flex: none; width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--clay-2); }
.cline__ic svg { width: 22px; }
.cline b { display: block; font-family: var(--ff-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.cline a, .cline p { color: #fff; font-size: 17px; font-weight: 600; margin: 2px 0 0; }
.form { padding: clamp(34px, 4vw, 56px); background: var(--paper); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 5px;
  background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,184,.15); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form__ok.show { display: block; }
.form__ok svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 16px; }
.form__ok h3 { color: var(--navy); font-size: 24px; }
.form__ok p { color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } .contact__info { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); } .form .row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0a2036; color: #9fb6c8; padding-block: clamp(50px, 6vw, 80px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 48px; margin-bottom: 18px; }
.footer__brand p { font-size: 15px; max-width: 34ch; }
.footer h5 { font-family: var(--ff-display); color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer a { font-size: 15px; transition: color .3s, padding-left .3s; }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; font-size: 13px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #cfe0ee; }
.footer__social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; padding: 0; }
.footer__social svg { width: 17px; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   RESPONSIVE / MOBILE OPTIMISATION
   ============================================================ */
/* tablet: tighten section rhythm */
@media (max-width: 900px) {
  .section { padding-block: clamp(56px, 8vw, 96px); }
}

/* phones */
@media (max-width: 640px) {
  :root { --gut: 20px; }
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 26px; }
  h2.title { font-size: clamp(26px, 7.6vw, 34px); }
  .lead { font-size: 16px; margin-top: 14px; }
  .eyebrow { font-size: 11px; }

  /* HERO */
  .hero__wrap { padding-block: 38px 52px; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .hero p.sub { font-size: 16px; margin-top: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions .btn.magnet { transform: none !important; }
  .hero__trust { width: 100%; margin-top: 30px; padding-top: 24px; grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .hero__trust li { padding: 0 0 0 18px; }
  .hero__trust li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__panel { margin-top: 34px; }
  .seal { width: 84px; height: 84px; top: -20px; right: -6px; }
  .seal__core { width: 40px; height: 40px; }
  .rating-card { left: 0; right: 0; bottom: -24px; width: auto; margin: 0 8px; }

  /* SERVICES — remove dead vertical space on mobile */
  .svc { min-height: auto; padding: 26px 22px; }
  .svc__icon { margin: 14px 0 16px; }
  .svc p { margin-top: 12px; }
  .svc__arrow { display: none; }

  /* STATS */
  .stat { padding: 30px 20px; }
  .stat b { font-size: clamp(38px, 12vw, 52px); }

  /* MARQUEE a touch smaller */
  .marquee__track span { padding: 14px 22px; gap: 22px; }

  /* BEFORE / AFTER — taller so detail is readable on narrow screens */
  .ba { aspect-ratio: 3 / 4; margin-top: 30px; }
  .ba__label { top: 12px; font-size: 11px; padding: 6px 10px; }

  /* WHY */
  .why__badge { right: 12px; bottom: 14px; padding: 16px 18px; max-width: 180px; }
  .why__badge b { font-size: 30px; }
  .feat { padding: 16px 0; gap: 14px; }

  /* PROCESS / GALLERY / REVIEWS spacing */
  .steps { margin-top: 34px; gap: 26px; }
  .gallery__grid, .reviews__grid, .ba { margin-top: 30px; }
  .reviews__grid { gap: 14px; }
  .review { padding: 24px; }

  /* CONTACT */
  .contact__info, .form { padding: 30px 22px; }

  /* FOOTER */
  .footer__top { gap: 30px; }
}

/* very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .brand__txt b { font-size: 16px; }
}
