/* New Millennium Maintenance — 2026 site styles */

:root {
  --ink: #0e1a33;
  --ink-2: #1a2745;
  --cobalt: #2152c4;
  --cobalt-deep: #173c94;
  --chalk: #f1f4f9;
  --line: #d8dfea;
  --slate: #56607a;
  --yellow: #f6c744;
  --yellow-deep: #e9b422;
  --white: #fff;

  --font-display: "Fraunces", "Cooper Black", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.01em; line-height: 1.15; }
h1, h2, h3 { text-wrap: balance; }
p, .lede { text-wrap: pretty; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 38em; }

/* ---------- Glint star ---------- */

.glint { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.4rem;
  font: 700 1rem/1 var(--font-body);
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-deep); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--cobalt); margin-right: auto; }
.brand:hover { color: var(--cobalt); }
.brand .glint { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100;
  font-weight: 900; font-size: 1.12rem; line-height: .98; letter-spacing: -.01em;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--ink); }
.nav-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav .btn { min-height: 44px; padding: .6rem 1.1rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14, 26, 51, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: .25rem; }
  .nav a:not(.btn) { display: block; font-size: 1.25rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn):hover { border-bottom-color: var(--line); color: var(--cobalt); }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero h1 { max-width: 9.5em; }
.hero-side .lede { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; }
}

/* Before/after wipe */

.wipe {
  --pos: 50%;
  position: relative; overflow: hidden;
  height: clamp(340px, 62vh, 700px);
  background: var(--chalk);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.wipe img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  pointer-events: none;
}
.wipe .wipe-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.wipe-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(14, 26, 51, .12);
  pointer-events: none;
}
.wipe-handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--white); color: var(--cobalt);
  box-shadow: 0 10px 30px -8px rgba(14, 26, 51, .5);
  cursor: grab;
}
.wipe-handle:active { cursor: grabbing; }
.wipe-handle .glint { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.wipe.is-dragging .wipe-handle .glint { transform: rotate(45deg) scale(.92); }
.wipe-handle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.wipe-tag {
  position: absolute; bottom: 1.25rem;
  padding: .35rem .75rem; border-radius: 6px;
  font-size: .9rem; font-weight: 700;
  background: rgba(14, 26, 51, .78); color: var(--white);
  pointer-events: none; transition: opacity .25s;
}
.wipe-tag.before { left: var(--gutter); }
.wipe-tag.after { right: var(--gutter); background: var(--white); color: var(--ink); }
.wipe-hint {
  position: absolute; top: calc(50% + 44px); left: var(--pos); transform: translateX(-50%);
  white-space: nowrap; font-size: .875rem; font-weight: 600; color: var(--white);
  text-shadow: 0 1px 8px rgba(14, 26, 51, .8);
  pointer-events: none; transition: opacity .4s;
}
.wipe.has-interacted .wipe-hint { opacity: 0; }

@media (max-width: 700px) {
  .wipe { height: 64vw; min-height: 300px; }
  .wipe img { object-position: 62% 55%; }
  .wipe-handle { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .wipe-hint { display: none; }
}

/* ---------- Proof band ---------- */

.proof { background: var(--ink); color: var(--white); }
.proof ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.proof li { padding: 1.75rem 2rem 1.75rem 0; display: flex; gap: .9rem; align-items: flex-start; font-size: 1.02rem; line-height: 1.45; color: #c9d2e3; }
.proof li + li { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.proof strong { display: block; color: var(--white); font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin-bottom: .15rem; letter-spacing: -.005em; }
.proof .glint { color: var(--yellow); width: 22px; height: 22px; margin-top: .2rem; }

@media (max-width: 860px) {
  .proof ul { grid-template-columns: 1fr; }
  .proof li { padding: 1.25rem 0; }
  .proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Services index ---------- */

.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.services-media { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--chalk); }
.services-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .45s var(--ease), transform .9s var(--ease);
}
.services-media img.is-active { opacity: 1; transform: none; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.service-list li { border-bottom: 1px solid var(--line); }
.service-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; align-items: center;
  padding: 1.5rem 0; text-decoration: none; color: var(--ink);
  transition: padding .35s var(--ease);
}
.service-link h3 { transition: color .2s; }
.service-link p { grid-column: 1; margin: 0; color: var(--slate); max-width: 34em; }
.service-link .go {
  grid-column: 2; grid-row: 1 / span 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink);
  transition: background-color .25s, border-color .25s, color .25s;
}
.service-link .go svg { width: 18px; height: 18px; }
.service-link .thumb { display: none; }
.service-link:hover, .service-link.is-active { color: var(--ink); padding-left: .75rem; }
.service-link:hover h3, .service-link.is-active h3 { color: var(--cobalt); }
.service-link:hover .go, .service-link.is-active .go { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .service-link, .services-media img { transition: none; }
  .service-link:hover, .service-link.is-active { padding-left: 0; }
  .service-link.is-active:not(:hover) h3 { color: var(--ink); }
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-media { display: none; }
  .service-link { grid-template-columns: 88px minmax(0, 1fr); gap: .25rem 1rem; padding: 1.1rem 0; }
  .service-link .thumb { display: block; grid-row: 1 / span 2; width: 88px; height: 88px; object-fit: cover; border-radius: 4px; }
  .service-link h3, .service-link p { grid-column: 2; }
  .service-link p { font-size: .95rem; line-height: 1.45; }
  .service-link .go { display: none; }
  .service-link:hover, .service-link.is-active { padding-left: 0; }
  .service-link.is-active:not(:hover) h3 { color: var(--ink); }
}

/* ---------- Company ---------- */

.company { background: var(--chalk); }
.company-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.company-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 5 / 4; }
.company-photo img { width: 100%; height: 100%; object-fit: cover; }
.company-copy h2 { margin-bottom: 1.25rem; }
.company-copy p { color: #3b4560; max-width: 34em; }

.pledge { margin-top: 2rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.pledge h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.facilities { margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 4rem; align-items: start; }
.facilities h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.facility-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.facility-list li {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 1.05rem;
}
.facility-list .glint { color: var(--cobalt); width: 16px; height: 16px; }

@media (max-width: 860px) {
  .company-grid, .facilities { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: #c9d2e3; }
.contact h2 { color: var(--white); margin-bottom: 1rem; }
.contact .lede { color: #c9d2e3; }
.contact a { color: var(--white); }
.contact :focus-visible { outline-color: var(--yellow); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }

.steps { list-style: none; margin: 2.5rem 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li::before {
  content: counter(step);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  background: var(--yellow); color: var(--ink);
}
.steps strong { display: block; color: var(--white); font-size: 1.05rem; }

.contact-details { display: grid; gap: 1.1rem; font-style: normal; }
.contact-details div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
@media (max-width: 480px) { .contact-details div { grid-template-columns: 1fr; gap: .1rem; } }
.contact-details dt, .contact-details .k { color: #8e9ab3; font-size: .95rem; }
.contact-details .v { color: var(--white); font-weight: 600; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.contact-details a:hover { border-bottom-color: var(--yellow); color: var(--white); }

.form-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-card h3 { margin-bottom: 1.5rem; }
.form-card :focus-visible { outline-color: var(--cobalt); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(33, 82, 196, .2); }
.form-card .btn { width: 100%; margin-top: .5rem; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1c7a4a; }
.form-status.err { color: #b3261e; }

.map { margin-top: clamp(3rem, 6vw, 5rem); border-radius: 12px; overflow: hidden; height: 360px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: #091226; color: #8e9ab3; padding-block: 4rem 2rem; font-size: .95rem; }
.site-footer a { color: #c9d2e3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 2.5rem; }
.footer-grid .brand { color: var(--white); margin-bottom: 1rem; }
.footer-grid .brand .glint { color: var(--yellow); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-services ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .footer-services ul { grid-template-columns: 1fr; } }

/* ---------- Service detail ---------- */

.detail-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .95rem; color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--slate); }
.detail-grid h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); margin-bottom: 1.5rem; }
.detail-copy .lede { color: #3b4560; margin-bottom: 2.25rem; }
.included h2 { font-size: 1.35rem; margin-bottom: 1rem; letter-spacing: -.01em; }
.included ul { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.included li { display: flex; gap: .85rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.included .glint { color: var(--cobalt); width: 15px; height: 15px; transform: translateY(2px); }
.detail-photo { position: sticky; top: calc(var(--header-h) + 2rem); border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-photo { position: static; aspect-ratio: 4 / 3; order: -1; }
}

.more { background: var(--chalk); }
.more h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 2rem; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2.5rem; }
.more-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.08rem;
}
.more-list a svg { width: 18px; height: 18px; flex: none; color: var(--slate); transition: transform .25s var(--ease), color .25s; }
.more-list a:hover { color: var(--cobalt); }
.more-list a:hover svg { color: var(--cobalt); transform: translateX(4px); }

.cta-band { background: var(--ink); color: #c9d2e3; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 16em; }
.cta-band p { margin: .75rem 0 0; }
.cta-band .hero-actions .btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.cta-band .hero-actions .btn-ghost:hover { background: var(--white); color: var(--ink); }
.cta-band :focus-visible { outline-color: var(--yellow); }
