/* ==========================================================================
   Gilbert Epoxy Flooring Pros — soft blue / black / white theme
   ========================================================================== */

:root {
  /* Soft palette */
  --ink: #1c2330;          /* soft black */
  --ink-2: #273042;
  --ink-3: #39445a;
  --slate: #5d6a80;
  --mist: #8e9bb0;
  --blue: #5b8fd1;         /* soft primary blue */
  --blue-deep: #3f72b5;
  --blue-soft: #a9c6ea;
  --blue-pale: #e4eefa;
  --blue-wash: #f2f7fd;
  --white: #ffffff;
  --snow: #f8fafc;
  --line: #dde5ef;
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(28, 35, 48, 0.06);
  --shadow: 0 18px 50px -18px rgba(28, 35, 48, 0.28);
  --shadow-blue: 0 18px 40px -16px rgba(63, 114, 181, 0.45);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-3);
  background: var(--snow);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
}
.on-dark .eyebrow, .eyebrow.light { color: var(--blue-soft); }

.lead { font-size: 1.15rem; color: var(--slate); }

/* Gradient text with a slow shimmer */
.grad {
  background: linear-gradient(100deg, var(--blue-soft) 0%, #ffffff 40%, var(--blue) 70%, var(--blue-soft) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-deep);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--white); background: var(--bg);
  box-shadow: var(--shadow-blue);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(63,114,181,.6); }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn.ghost:hover { color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px var(--blue-soft); }
.on-dark .btn.ghost, .hero .btn.ghost, .fullwidth .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.on-dark .btn.ghost:hover, .hero .btn.ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--blue-soft); background: rgba(255,255,255,.06); }
main { overflow-x: clip; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar + navigation ---------- */
.topbar {
  background: var(--ink); color: #c8d3e3; font-size: .85rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #e6eef9; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd3a6; box-shadow: 0 0 0 4px rgba(127,211,166,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(127,211,166,0); } }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, padding .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 92px; transition: height .3s var(--ease); }
.nav.scrolled .wrap { height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--ink-2) 100%);
  color: var(--white); font-size: .95rem; letter-spacing: .02em;
  box-shadow: var(--shadow-blue);
}
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 .95rem var(--font-body); color: var(--ink-2);
  transition: background .2s, color .2s;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li > a[aria-current="page"] { background: var(--blue-pale); color: var(--blue-deep); }
.menu .chev { width: 14px; height: 14px; transition: transform .3s; }
.has-drop:hover .chev, .has-drop:focus-within .chev { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 560px; padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  list-style: none; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.35; }
.drop a span { font-weight: 400; color: var(--slate); font-size: .8rem; }
.drop a:hover { background: var(--blue-wash); color: var(--blue-deep); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.nav .btn { padding: 11px 20px; font-size: .9rem; }

.logo img { height: 76px; width: auto; transition: height .3s var(--ease), transform .4s var(--ease); }
.logo:hover img { transform: scale(1.03); }
.nav.scrolled .logo img { height: 58px; }
.footer .foot-logo { display: inline-flex; background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.foot-logo img { height: 74px; }
@media (max-width: 640px) { .logo img { height: 56px; } .nav.scrolled .logo img { height: 48px; } }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .3s;
}
.burger span { top: 50%; }
.burger span::before { top: -6px; left: 0; transform: none; }
.burger span::after { top: 6px; left: 0; transform: none; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink);
  padding: 90px 24px 32px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu a { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.25rem; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .sub a { font-family: var(--font-body); font-size: 1rem; color: #c8d3e3; padding: 8px 0 8px 14px; }
.mobile-menu .btn { margin-top: 24px; width: 100%; border: 0; }
.mobile-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--white); border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero (header with form) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  color: #d6e0ee;
  padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 120px);
}
.hero-bg {
  position: absolute; inset: -8% 0; z-index: -3;
  background-size: cover; background-position: center;
  opacity: .22;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(91,143,209,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(91,143,209,.18), transparent 60%),
    linear-gradient(180deg, rgba(28,35,48,.55), rgba(28,35,48,.92));
}
.hero::after {
  /* subtle grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: #5b8fd1; top: -80px; right: 8%; }
.blob.b2 { width: 300px; height: 300px; background: #a9c6ea; bottom: -120px; left: 30%; opacity: .22; animation-duration: 24s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-60px, 40px) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: #c3cfdf; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .88rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e6eef9;
}
.hero-points svg { width: 16px; height: 16px; color: var(--blue-soft); }

.crumbs { font-size: .85rem; margin-bottom: 18px; color: var(--mist); }
.crumbs a { color: var(--blue-soft); }

/* Header form */
.quote-card {
  position: relative;
  background: rgba(255,255,255,.96);
  color: var(--ink-3);
  border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.55);
}
.quote-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 23px;
  background: conic-gradient(from var(--ang, 0deg), var(--blue), var(--blue-soft), #ffffff, var(--blue));
  animation: spin 6s linear infinite;
  filter: blur(14px); opacity: .55;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.quote-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.quote-card .sub { font-size: .9rem; color: var(--slate); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 20px 14px 8px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--snow);
  font: 500 .95rem var(--font-body); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
}
.field select { padding-top: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6a80' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 84px; resize: vertical; }
.field label {
  position: absolute; left: 15px; top: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); pointer-events: none;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(91,143,209,.15); }
.quote-card .btn { width: 100%; margin-top: 14px; }
.form-note { font-size: .78rem; color: var(--slate); text-align: center; margin: 12px 0 0; }
.form-success { display: none; text-align: center; padding: 30px 6px; }
.form-success svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 10px; }
.quote-card.sent form { display: none; }
.quote-card.sent .form-success { display: block; animation: rise .6s var(--ease); }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Marquee ---------- */
.marquee { background: var(--blue-deep); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-head); font-weight: 500; white-space: nowrap; letter-spacing: .02em; }
.marquee span::after { content: "✦"; color: var(--blue-soft); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section.alt { background: var(--white); }
.section.wash { background: var(--blue-wash); }
.section.dark { background: var(--ink); color: #c3cfdf; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Section with low-opacity background image */
.bg-image { isolation: isolate; overflow: hidden; }
.bg-image > .bg {
  position: absolute; inset: -10% 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .08;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.section.dark.bg-image > .bg { opacity: .14; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }

.media {
  position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4; background: var(--ink-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.12); }
.media-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,255,255,.94); border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}
.media-badge b { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue-deep); line-height: 1; }
.media-badge small { display: block; font-size: .8rem; color: var(--slate); line-height: 1.3; }
@keyframes float { 50% { transform: translateY(-8px); } }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f72b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks.two { grid-template-columns: 1fr 1fr; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink-3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-soft); color: var(--ink-3); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .95rem; color: var(--slate); margin-bottom: 18px; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-deep); }
.card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .more svg { transform: translateX(5px); }
.card-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-head); font-weight: 700; color: rgba(255,255,255,.9); font-size: .8rem; background: rgba(28,35,48,.55); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Feature tiles */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-pale), #fff); color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature p { font-size: .95rem; color: var(--slate); margin: 0; }
.section.dark .feature { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.section.dark .feature p { color: #aebbd0; }
.section.dark .feature .icon { background: rgba(91,143,209,.16); color: var(--blue-soft); box-shadow: none; }

/* Full-width band */
.fullwidth {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
  color: #d6e0ee; padding: 110px 0;
}
.fullwidth .bg {
  position: absolute; inset: -18% 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.05);
  will-change: transform;
}
.fullwidth::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(28,35,48,.94) 0%, rgba(28,35,48,.78) 45%, rgba(39,48,66,.45) 100%);
}
.fullwidth h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.3rem); max-width: 760px; }
.fullwidth p { max-width: 640px; color: #c3cfdf; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.stat { padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--white); line-height: 1.1; }
.stat span { font-size: .9rem; color: #aebbd0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--blue-soft), var(--blue), var(--blue-soft)); opacity: .5; transform-origin: left; transform: scaleX(var(--line-progress, 0)); transition: transform 1.6s var(--ease); }
.steps.in::before { --line-progress: 1; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; color: var(--blue-deep);
  background: var(--white); border: 2px solid var(--blue-soft); box-shadow: 0 0 0 8px var(--blue-wash);
  position: relative; z-index: 1;
}
.step p { font-size: .95rem; color: var(--slate); }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--blue-wash); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--blue-wash); }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.areas li { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); transition: background .25s, color .25s, transform .25s; }
.areas li:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-2px); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: var(--blue-soft); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-pale); color: var(--blue-deep); font-size: 1.2rem; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 24px 20px; color: var(--slate); }
.faq .answer p:last-child { margin: 0; }

/* Prose for service pages */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-3); }
.prose ul:not(.checks) { padding-left: 1.2em; }
.prose ul:not(.checks) li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 22px 26px; border-radius: 16px; background: var(--blue-wash);
  border-left: 4px solid var(--blue); color: var(--ink-2); font-size: 1.05rem;
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box h3 { font-size: 1.1rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover, .side-box li a[aria-current="page"] { color: var(--blue-deep); }
.side-box li a[aria-current="page"] { font-weight: 600; }
.side-box.dark { background: var(--ink); color: #c3cfdf; border: 0; position: relative; overflow: hidden; }
.side-box.dark h3 { color: var(--white); }
.side-box.dark::after { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; bottom: -80px; border-radius: 50%; background: var(--blue); filter: blur(50px); opacity: .4; }
.side-box .btn { width: 100%; margin-top: 8px; position: relative; z-index: 1; }

/* CTA band */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, var(--blue-deep) 140%);
  color: #c3cfdf; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { margin: 0; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .12; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aebbd0; padding: 80px 0 0; font-size: .95rem; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 520px; height: 520px; top: -260px; right: -120px; border-radius: 50%; background: var(--blue); filter: blur(120px); opacity: .18; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #d6e0ee; }
.footer a:hover { color: var(--blue-soft); }
.foot-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr 1.4fr; gap: 40px; position: relative; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer .logo small { color: var(--mist); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--blue-soft); }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 3; background: var(--ink-2);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.foot-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue-deep); color: var(--white); box-shadow: var(--shadow-blue);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s var(--ease);
  display: grid; place-items: center;
}
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.to-top circle { transition: stroke-dashoffset .1s linear; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; background: linear-gradient(90deg, var(--blue-soft), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Motion: reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.split-words.in .w > span { transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu, .nav-phone { display: none; }
  .burger { display: block; }
  .hero-grid, .split, .layout, .cta { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .features, .stats, .steps, .foot-grid, .checks.two, .form-grid { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
  .quote-card { padding: 24px 20px; }
  .topbar .hide-sm { display: none; }
  .fullwidth { min-height: auto; padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .split-words .w > span { opacity: 1; transform: none; }
}
