/* ==========================================================================
   Lillard Restoration Services — brand stylesheet
   Palette + type derived from the company Visual Identity deck.
   Display font: Artega (the brand's logotype typeface). Body: Montserrat.
   ========================================================================== */

@font-face {
  font-family: "Artega";
  src: url("../assets/fonts/Artega.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:      #0F1B2D;
  --navy-900:  #0A1220;
  --navy-800:  #142338;
  --navy-700:  #1C2F49;
  --blue:      #4C86BD;
  --blue-600:  #3A72A9;
  --blue-300:  #8FB6DA;
  --ink:       #16212F;
  --muted:     #5B6875;
  --muted-2:   #8892A0;
  --line:      #E4E7EC;
  --cloud:     #F5F6F8;
  --sand:      #F4EEE2;
  --white:     #FFFFFF;

  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -24px rgba(15, 27, 45, .35);
  --shadow-lg: 0 30px 80px -30px rgba(15, 27, 45, .5);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --ff: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Artega", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-cloud { background: var(--cloud); }
.bg-navy  { background: var(--navy); color: #D8E0EA; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.bg-navy .eyebrow { color: var(--blue-300); }
.bg-navy .eyebrow::before { background: var(--blue-300); }

.display { font-family: var(--ff-display); font-size: clamp(2.05rem, 4.7vw, 3.7rem); font-weight: 500; letter-spacing: 0.01em; line-height: 1.04; text-transform: uppercase; }
.h-section { font-family: var(--ff-display); font-size: clamp(1.7rem, 3.3vw, 2.65rem); font-weight: 500; letter-spacing: 0.01em; line-height: 1.08; text-transform: uppercase; }
/* Artega ships in a single (regular) weight; embolden it to match the bold LILLARD logo. */
.display, .h-section, .client-logos .cl-main {
  -webkit-text-stroke: 0.022em currentColor;
  paint-order: stroke fill;
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--muted); }
.bg-navy .lead { color: #AEBCCC; }
.uppercase { text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  box-shadow: 0 12px 26px -12px rgba(76, 134, 189, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(76, 134, 189, .8); }
.btn--dark { --btn-bg: var(--navy); box-shadow: 0 12px 26px -12px rgba(15, 27, 45, .6); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline-ink { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--outline-ink:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .7rem 1.25rem; font-size: .85rem; }
.btn svg { width: 17px; height: 17px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(11, 18, 32, .96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.nav-menu { display: flex; align-items: center; gap: 1.9rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  color: #C3CDDA; font-weight: 600; font-size: .93rem; letter-spacing: .01em; position: relative; padding: .35rem 0;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: .95rem; }
.nav-phone svg { width: 16px; height: 16px; color: var(--blue-300); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem; width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Centred hero: the overlay is even across the width (a side-weighted
   gradient would leave centred text sitting on the bright half). */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 16, 28, .66) 0%, rgba(9, 16, 28, .78) 48%, rgba(9, 16, 28, .90) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4rem, 12vh, 8.5rem) 0 clamp(3.5rem, 10vh, 7rem); }
.hero__content { max-width: 880px; margin-inline: auto; text-align: center; }
.hero .display { color: #fff; text-wrap: balance; }
.hero .eyebrow { justify-content: center; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #B9C6D6; margin: 1.3rem auto 2rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .hero__actions { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.2rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__trust div { min-width: 90px; }
.hero__trust b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.hero__trust span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #97A6B8; }

/* page hero (secondary) */
.pagehero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.pagehero__media { position: absolute; inset: 0; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,16,28,.72), rgba(9,16,28,.88)); }
.pagehero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem); max-width: 760px; }
.pagehero .display { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.breadcrumb { font-size: .82rem; letter-spacing: .04em; color: #93A2B4; margin-bottom: 1.1rem; }
.breadcrumb a { color: #93A2B4; }
.breadcrumb a:hover { color: #fff; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d5dae2; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cloud); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .96rem; margin-bottom: 1.1rem; }
.card__link { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: .4rem; }
.card__link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* value tiles */
.tile { padding: 1.9rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.bg-navy .tile { background: var(--navy-800); border-color: rgba(255,255,255,.08); }
.tile__ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(76,134,189,.14); color: var(--blue); margin-bottom: 1.1rem; }
.bg-navy .tile__ic { background: rgba(143,182,218,.16); color: var(--blue-300); }
.tile__ic svg { width: 23px; height: 23px; }
.tile h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.tile p { color: var(--muted); font-size: .93rem; margin: 0; }
.bg-navy .tile p { color: #9FB0C2; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__body h2 { margin-bottom: .8rem; }

/* checklist */
.check { list-style: none; display: grid; gap: .7rem; margin: 1.4rem 0 0; }
.check li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.check svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: .18rem; }
.bg-navy .check li { color: #C9D4E0; }
.bg-navy .check svg { color: var(--blue-300); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 1.05rem; font-weight: 800; color: var(--blue);
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(76,134,189,.35);
  display: grid; place-items: center; background: #fff;
}
.bg-navy .step::before { background: var(--navy-800); }
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.bg-navy .step p { color: #9FB0C2; }

/* service-area chips */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #DCE4EE;
  font-weight: 600; font-size: .92rem;
}
.chip svg { width: 14px; height: 14px; color: var(--blue-300); }

/* before / after slider */
.ba {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); user-select: none; touch-action: none; background: var(--navy-800);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__label { position: absolute; top: 14px; z-index: 3; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 6px; background: rgba(10,18,32,.72); color: #fff; }
.ba__label--b { left: 14px; }
.ba__label--a { right: 14px; background: var(--blue); }
.ba__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 4; transform: translateX(-1px); pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: 50%; z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--navy); transform: translate(-50%, -50%); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); pointer-events: none;
}
.ba__handle svg { width: 22px; height: 22px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 6;
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--cloud); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(9,16,28,.85)); color: #fff; font-weight: 600; font-size: .9rem;
}
.gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* quote / testimonial */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 600; color: #fff; line-height: 1.4; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 1.3rem; font-style: normal; color: var(--blue-300); font-weight: 700; letter-spacing: .04em; font-size: .9rem; text-transform: uppercase; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1; }
.bg-navy .stat b { color: #fff; }
.stat span { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bg-navy .stat span { color: #94A4B6; }

/* cta band */
.ctaband { position: relative; overflow: hidden; }
.ctaband__wing {
  position: absolute; right: -40px; bottom: -60px; width: 360px; opacity: .06; pointer-events: none;
}
.ctaband .container { position: relative; z-index: 2; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }

/* motif watermark */
.wm { position: relative; }
.wm__mark { position: absolute; pointer-events: none; opacity: .05; width: 300px; z-index: 0; }
.wm > .container { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9AA9BB; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand img { height: 40px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .93rem; max-width: 30ch; color: #8494A6; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer a { color: #9AA9BB; font-size: .93rem; }
.footer a:hover { color: #fff; }
.footer-contact a { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--blue-300); margin-top: .2rem; flex: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.09); font-size: .82rem; color: #6D7E92;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 820px) {
  .nav-links, .nav-phone span { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.1); padding: 1.2rem clamp(1.15rem,4vw,2.5rem) 1.8rem;
    display: none; flex-direction: column; gap: 0; z-index: 55;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-menu .nav-links a { display: block; padding: .95rem 0; color: #D3DCE6; font-size: 1.02rem; }
  .nav-menu .nav-links a.active::after { display: none; }
  .nav-menu .btn { margin-top: 1.2rem; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__trust b { font-size: 1.45rem; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- contact form ---------- */
.contact-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .96rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76, 134, 189, .15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }

.contact-info { background: var(--navy); color: #C9D5E2; border-radius: var(--radius); padding: clamp(1.7rem, 3vw, 2.5rem); }
.contact-info h3 { color: #fff; }
.contact-info .big-phone { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.45rem; font-weight: 800; color: #fff; margin: .2rem 0 .3rem; }
.contact-info .big-phone svg { width: 22px; height: 22px; color: var(--blue-300); }
.info-list { list-style: none; display: grid; gap: 1.15rem; margin-top: 1.7rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .96rem; }
.info-list svg { width: 20px; height: 20px; color: var(--blue-300); flex: none; margin-top: .18rem; }
.info-list a { color: #fff; }

@media (max-width: 820px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
}

/* ---------- client / trust strip ---------- */
.clients { text-align: center; }
.clients__eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 1.7rem;
}
.client-logos {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.6rem, 5vw, 3.6rem);
}
.client-logos li {
  display: flex; flex-direction: column; align-items: center; line-height: 1.02; color: var(--navy);
  opacity: .6; transition: opacity .25s var(--ease); position: relative;
}
.client-logos li:hover { opacity: 1; }
.client-logos li:not(:last-child)::after {
  content: ""; position: absolute; right: calc(clamp(1.6rem, 5vw, 3.6rem) / -2); top: 50%;
  width: 1px; height: 30px; background: var(--line); transform: translateY(-50%);
}
.client-logos .cl-main { font-family: var(--ff-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: .04em; }
.client-logos .cl-sub { font-size: .6rem; font-weight: 600; letter-spacing: .26em; color: var(--muted); margin-top: .2rem; }
.bg-navy .clients__eyebrow { color: #8FA0B4; }
.bg-navy .client-logos li { color: #E7EDF4; opacity: .72; }
.bg-navy .client-logos .cl-sub { color: #9FB0C2; }
.bg-navy .client-logos li:not(:last-child)::after { background: rgba(255,255,255,.16); }
@media (max-width: 560px) {
  .client-logos { gap: 1.4rem 1.8rem; }
  .client-logos li:not(:last-child)::after { display: none; }
}

/* ---------- portrait imagery ---------- */
/* Tall 3:4 frame for the owner / crew splits. */
.split__media--portrait img { aspect-ratio: 3 / 4; }

/* Process steps led by a portrait photo, number badge overlaid on the corner. */
.step--media { padding-top: 0; }
.step__media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1.2rem; background: var(--navy-800);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-navy .step--media::before,
.step--media::before {
  top: 14px; left: 14px;
  background: rgba(10, 18, 32, .78);
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Owner card sits on the light section with a soft frame. */
.owner-note {
  margin-top: 1.4rem; padding-left: 1.1rem;
  border-left: 3px solid var(--blue);
  color: var(--muted); font-style: italic;
}
.bg-navy .owner-note { color: #AEBCCC; }

/* Whole card is one tap target (the existing link stretches over it). */
.card { position: relative; }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   MOBILE SCANNABILITY
   One-column stacking made pages 11–13 screens tall. Below: two-up grids,
   trimmed prose, smaller media and a persistent call bar.
   ========================================================================== */
.mobile-cta { display: none; }
.hide-sm { display: block; }

@media (max-width: 820px) {
  /* tighter vertical rhythm */
  .section { padding: clamp(2.4rem, 7vw, 3.6rem) 0; }
  .section-head { margin-bottom: 1.5rem; }
  .h-section { font-size: clamp(1.45rem, 5.6vw, 1.9rem); }
  .lead { font-size: 1rem; }

  /* drop the dense prose — bullets and headings scan better */
  .hide-sm { display: none; }

  /* service cards: two-up, title-only, whole card tappable */
  .grid.cols-3 { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .card__media { aspect-ratio: 4 / 3; }
  .card__body { padding: .85rem .85rem 1rem; }
  .card__body h3 { font-size: .95rem; line-height: 1.25; margin-bottom: .3rem; }
  .card__body p { display: none; }
  .card__link { font-size: .76rem; }

  /* value / category tiles: two-up and compact */
  .grid.cols-4 { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .tile { padding: 1.1rem .95rem; }
  .tile h3 { font-size: .95rem; }
  .tile p { font-size: .83rem; }
  .tile__ic { width: 38px; height: 38px; margin-bottom: .7rem; border-radius: 9px; }
  .tile__ic svg { width: 19px; height: 19px; }

  /* process steps: shorter media, two-up */
  .step__media { aspect-ratio: 4 / 3; margin-bottom: .8rem; }
  .step h3 { font-size: .98rem; }
  .step p { font-size: .85rem; }
  .step--media::before { width: 34px; height: 34px; font-size: .8rem; top: 10px; left: 10px; }

  /* splits: shallower media so text surfaces sooner */
  .split { gap: 1.5rem; }
  .split__media img { aspect-ratio: 16 / 10; }
  .split__media--portrait img { aspect-ratio: 4 / 5; }
  .container[style*="grid"] { gap: 2.4rem !important; }

  /* the 8 service detail sections (the only splits with ids) — banner media,
     so the heading and bullets land in the first screenful of each */
  .split[id] .split__media img { aspect-ratio: 21 / 9; }
  .split[id] .split__media--portrait img { aspect-ratio: 4 / 3; }
  .split[id] .check { gap: .5rem; margin-top: 1rem; }
  .split[id] .check li { font-size: .89rem; }

  /* gallery + chips */
  .gallery { gap: .6rem; }
  .chip { font-size: .84rem; padding: .5rem .9rem; }

  /* persistent call bar */
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: .65rem clamp(1.15rem, 4vw, 2.5rem);
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 18, 32, .95);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .mobile-cta .btn { width: 100%; padding: .8rem .6rem; font-size: .88rem; box-shadow: none; }
  .mobile-cta .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
  body { padding-bottom: 74px; }
}

@media (max-width: 560px) {
  /* beat the older single-column rules */
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  /* the eyebrow rule detaches from its text once the label wraps */
  .hero .eyebrow::before,
  .pagehero .eyebrow::before { display: none; }
  .hero__trust { gap: 1rem 1.4rem; margin-top: 1.8rem; padding-top: 1.3rem; }
  .hero__trust b { font-size: 1.3rem; }
  .hero__trust span { font-size: .68rem; }
}

/* ==========================================================================
   INNER PAGE HEROES — centred to match the home hero
   ========================================================================== */
.pagehero__inner { max-width: 840px; margin-inline: auto; text-align: center; }
.pagehero .eyebrow { justify-content: center; }
.pagehero .lead { margin-inline: auto; }
.pagehero .display { text-wrap: balance; }

/* ==========================================================================
   MOTION
   Transform/opacity only so it stays on the compositor. Everything here is
   switched off under prefers-reduced-motion at the bottom of this block.
   ========================================================================== */
@keyframes riseIn   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes kenBurns { from { transform: scale(1.07); }                  to { transform: scale(1); } }

/* hero photography drifts slowly inward */
.hero__media img, .pagehero__media img { animation: kenBurns 20s var(--ease) forwards; }

/* hero copy arrives in sequence ('backwards' so it stays visible if animation never runs) */
.hero__content > *, .pagehero__inner > * { animation: riseIn .85s var(--ease) backwards; }
.hero__content > *:nth-child(1), .pagehero__inner > *:nth-child(1) { animation-delay: .10s; }
.hero__content > *:nth-child(2), .pagehero__inner > *:nth-child(2) { animation-delay: .22s; }
.hero__content > *:nth-child(3), .pagehero__inner > *:nth-child(3) { animation-delay: .34s; }
.hero__content > *:nth-child(4), .pagehero__inner > *:nth-child(4) { animation-delay: .46s; }
.hero__content > *:nth-child(5) { animation-delay: .58s; }

/* staggered grid reveals */
.grid > .reveal:nth-child(2) { transition-delay: .07s; }
.grid > .reveal:nth-child(3) { transition-delay: .14s; }
.grid > .reveal:nth-child(4) { transition-delay: .21s; }
.grid > .reveal:nth-child(5) { transition-delay: .28s; }
.grid > .reveal:nth-child(6) { transition-delay: .35s; }
.steps > .reveal:nth-child(2) { transition-delay: .10s; }
.steps > .reveal:nth-child(3) { transition-delay: .20s; }
.steps > .reveal:nth-child(4) { transition-delay: .30s; }
.gallery.in figure { animation: riseIn .7s var(--ease) backwards; }
.gallery.in figure:nth-child(2) { animation-delay: .06s; }
.gallery.in figure:nth-child(3) { animation-delay: .12s; }
.gallery.in figure:nth-child(4) { animation-delay: .18s; }
.gallery.in figure:nth-child(5) { animation-delay: .24s; }
.gallery.in figure:nth-child(6) { animation-delay: .30s; }

/* split halves slide in from their own side (JS tags these) */
.reveal--left  { transform: translate3d(-30px, 14px, 0); }
.reveal--right { transform: translate3d(30px, 14px, 0); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* header condenses once you start scrolling */
.nav, .brand img { transition: height .3s var(--ease); }
.site-header.scrolled .nav { height: 64px; }
.site-header.scrolled .brand img { height: 29px; }

/* micro-interactions */
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.tile { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip { transition: transform .25s var(--ease), background .25s, border-color .25s; }
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .13); }
.client-logos li { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.client-logos li:hover { transform: translateY(-2px); }
.ba__handle { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ba:hover .ba__handle { transform: translate(-50%, -50%) scale(1.09); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.step__media img, .split__media img { transition: transform .7s var(--ease); }
.step:hover .step__media img { transform: scale(1.05); }

@media (max-width: 820px) {
  /* stacked layout — slide straight up instead of sideways */
  .reveal--left, .reveal--right { transform: translate3d(0, 20px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .pagehero__media img,
  .hero__content > *, .pagehero__inner > *,
  .gallery.in figure { animation: none !important; }
  .grid > .reveal, .steps > .reveal { transition-delay: 0s !important; }
  .reveal--left, .reveal--right { transform: none !important; }
  .tile:hover, .chip:hover, .client-logos li:hover { transform: none !important; }
}

/* ==========================================================================
   AD LANDING PAGE
   Single conversion goal: no nav, no outbound links, CTA repeated down the
   page. Reuses the sitewide components above.
   ========================================================================== */
.lp-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 18, 32, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.lp-header .nav { justify-content: space-between; height: 66px; }
.lp-header .brand img { height: 30px; }
.lp-phone {
  display: inline-flex; align-items: center; gap: .5rem; color: #fff;
  font-weight: 800; font-size: 1rem; white-space: nowrap;
}
.lp-phone svg { width: 17px; height: 17px; color: var(--blue-300); }

/* offer badge */
.lp-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(76, 134, 189, .18); border: 1px solid rgba(143, 182, 218, .45);
  color: #DCE8F4; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.lp-badge svg { width: 14px; height: 14px; color: var(--blue-300); }

/* reassurance line under CTAs */
.lp-note { font-size: .85rem; color: #93A2B4; margin: 1rem 0 0; }
.lp-note-ink { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }

/* value bullets */
.lp-points { list-style: none; display: grid; gap: 1rem; margin: 0; }
.lp-points li { display: flex; gap: .85rem; align-items: flex-start; }
.lp-points svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: .15rem; }
.lp-points b { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: .1rem; }
.lp-points span { color: var(--muted); font-size: .95rem; }

/* conversion block */
.lp-convert { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.lp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow);
}
.lp-callbox { text-align: center; }
.lp-callbox .big-phone { font-size: clamp(1.6rem, 4vw, 2.1rem); }

.lp-footer { background: var(--navy-900); color: #8494A6; padding: 2.2rem 0; text-align: center; font-size: .85rem; }
.lp-footer img { height: 30px; margin: 0 auto 1rem; }

@media (max-width: 820px) {
  .lp-convert { grid-template-columns: 1fr; }
  .lp-header .lp-phone span { display: none; }
}
