/* ==========================================================================
   Components — buttons, logo, nav, cards, form, footer, chrome
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out),
    background-color var(--d-mid) var(--e-out), color var(--d-mid) var(--e-out),
    border-color var(--d-mid) var(--e-out);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* Primary — the light source made into a control */
.btn-primary {
  background: var(--grad-fresh);
  color: var(--ink-900);
  box-shadow: var(--glow-soft);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan);
}

/* Sheen sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--e-out);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* Ghost — on ink */
.btn-ghost {
  border: 1px solid rgba(var(--rgb-white), 0.22);
  color: var(--paper-50);
  background: rgba(var(--rgb-white), 0.04);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(var(--rgb-cyan), 0.6);
  background: rgba(var(--rgb-cyan), 0.1);
  color: var(--cyan-300);
}

/* Solid blue — on paper */
.btn-blue {
  background: var(--blue-500);
  color: var(--paper-50);
  box-shadow: 0 14px 34px -14px rgba(var(--rgb-blue), 0.75);
}

.btn-blue:hover {
  background: var(--blue-600);
  box-shadow: 0 20px 44px -14px rgba(var(--rgb-blue), 0.85);
}

/* Testimonials tail: the carousel shows four quotes, this is the way out to
   the rest of them on Google. */
.quotes__more {
  margin-top: var(--sp-7);
  text-align: center;
}

/* Text link with travelling underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan-300);
}

.link-arrow span {
  position: relative;
}

.link-arrow span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-mid) var(--e-out);
}

.link-arrow:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--d-mid) var(--e-out);
}

.link-arrow:hover svg {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.logo__mark {
  width: 52px;
  height: 52px;
  flex: none;
  /* The roundel is cut to a transparent circle, so nothing needs clipping
     here; object-fit only guards against a future re-export at another
     aspect ratio squashing it. */
  object-fit: contain;
  transition: transform var(--d-mid) var(--e-spring);
}

.logo:hover .logo__mark {
  transform: rotate(-8deg) scale(1.05);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper-50);
}

.logo__text span {
  /* was 0.62rem = 9.92px, below the 12px floor for legible label text */
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out),
    backdrop-filter var(--d-mid) var(--e-out);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--nav-h);
  transition: height var(--d-mid) var(--e-out);
}

.nav.is-stuck {
  background: rgba(4, 16, 28, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(var(--rgb-cyan), 0.28), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.nav.is-stuck .nav__inner {
  height: 68px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
  margin-inline: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark);
  transition: color var(--d-fast) var(--e-out);
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--cyan-300);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-mid) var(--e-out);
}

.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link .chev {
  width: 12px;
  height: 12px;
  transition: transform var(--d-fast) var(--e-out);
}

.nav__link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__phone {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--paper-50);
  transition: color var(--d-fast) var(--e-out);
}

.nav__phone:hover {
  color: var(--cyan-300);
}

.nav__phone svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--paper-50);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-fast) linear;
}

.nav__toggle span::before {
  transform: translateY(-7px);
}
.nav__toggle span::after {
  transform: translateY(5px);
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg) translateY(-1px);
}

/* ---- Mega dropdown ------------------------------------------------------- */
.mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: var(--z-menu);
  background: rgba(7, 26, 44, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(var(--rgb-cyan), 0.18);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-out),
    visibility var(--d-mid);
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr;
  gap: var(--sp-6);
  padding-block: var(--sp-6) var(--sp-7);
}

.mega__title {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: var(--sp-4);
}

.mega__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--on-dark);
  transition: background-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out);
}

.mega__item:hover {
  background: rgba(var(--rgb-cyan), 0.1);
  color: var(--cyan-300);
  transform: translateX(4px);
}

.mega__item svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--blue-400);
}

.mega__promo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
  color: var(--paper-50);
}

.mega__promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.62) contrast(1.06);
}

.mega__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--rgb-blue), 0.15), rgba(var(--rgb-ink), 0.9));
}

.mega__promo > div {
  position: relative;
  z-index: 1;
}

.mega__promo strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
}

.mega__promo p {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  margin-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Chrome — scroll progress, cursor, scroll cue
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-fresh);
  z-index: var(--z-progress);
  pointer-events: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-400);
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.3s var(--e-out), height 0.3s var(--e-out), background-color 0.3s var(--e-out),
    border-color 0.3s var(--e-out), opacity 0.3s linear;
}

.cursor.is-active {
  opacity: 1;
}

.cursor.is-hover {
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--cyan-300);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.7rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--on-dark-muted);
  z-index: 3;
}

.scroll-cue__rail {
  position: relative;
  width: 1px;
  height: 60px;
  background: rgba(var(--rgb-white), 0.18);
  overflow: hidden;
}

.scroll-cue__rail::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--cyan-300));
  animation: cue 2.4s var(--e-inout) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(350%);
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
/* Service card — photo panel, floating icon badge, body beneath.
   Sits on a light band, so every colour here is the light-band half of the
   palette: white surface, slate text, blue-600 link. cyan-400 is 2.0:1 on
   white and blue-400 is 3.39:1 — neither can carry this link. */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-50);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out);
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.svc-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--e-out);
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.07);
}

/* Grounds the badge and keeps the photo from running bright into the body. */
.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--rgb-ink), 0.45), transparent 52%);
}

/* The badge straddles the seam between photo and body — that overlap is what
   gives the card its depth. It is anchored to the TOP of the body rather than
   the bottom of the media on purpose: .svc-card__media is overflow:hidden so
   the hover zoom stays in its frame, and that clip would slice the overhang
   off. The body clips nothing, so the badge hangs up into the photo intact. */
.svc-card__icon {
  position: absolute;
  right: var(--sp-5);
  top: -26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 3px solid var(--paper-50);
  box-shadow: 0 12px 26px -8px rgba(var(--rgb-blue), 0.55);
  color: var(--paper-50);
  transition: transform var(--d-mid) var(--e-out);
}

.svc-card:hover .svc-card__icon {
  transform: rotate(-8deg) scale(1.07);
}

.svc-card__icon svg {
  width: 24px;
  height: 24px;
}

.svc-card__body {
  position: relative; /* the badge above is positioned against this */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: calc(var(--sp-6) + 8px) var(--sp-5) var(--sp-5);
}

.svc-card h3 {
  font-size: 1.15rem;
  color: var(--slate-700);
}

.svc-card p {
  font-size: 0.92rem;
  color: var(--slate-500);
  margin: 0;
}

/* The shared .link-arrow is cyan-300 for dark bands; on white it needs the
   deep blue instead. */
.svc-card .link-arrow {
  margin-top: var(--sp-2);
  color: var(--blue-600);
}

/* Glow tile — Why Choose Us; cyan follows the pointer */
.glow-tile {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  border: 1px solid rgba(var(--rgb-white), 0.09);
  overflow: hidden;
  transition: border-color var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-out);
}

.glow-tile::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--grad-glow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transition: opacity var(--d-mid) linear;
}

.glow-tile:hover {
  border-color: rgba(var(--rgb-cyan), 0.32);
  transform: translateY(-4px);
}

.glow-tile:hover::before {
  opacity: 0.28;
}

.glow-tile > * {
  position: relative;
}

.glow-tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(var(--rgb-cyan), 0.12);
  border: 1px solid rgba(var(--rgb-cyan), 0.28);
  color: var(--cyan-300);
}

.glow-tile__icon svg {
  width: 26px;
  height: 26px;
}

.glow-tile h3 {
  font-size: var(--fs-heading-sm);
  margin-bottom: var(--sp-3);
}

.glow-tile p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: rgba(var(--rgb-ink), 0.42);
  border: 1px solid rgba(var(--rgb-white), 0.14);
  backdrop-filter: blur(16px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--rgb-white), 0.72);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0; /* form controls carry an intrinsic min-width; drop it */
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(var(--rgb-white), 0.18);
  background: rgba(var(--rgb-ink), 0.45);
  color: var(--paper-50);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(var(--rgb-white), 0.42);
}

/* A select has no ::placeholder — its empty first option stands in for one.
   `required` keeps the control :invalid until a real choice is made, which is
   the only hook for showing that stand-in at placeholder weight rather than
   as though a service had already been picked. */
.field select:invalid {
  color: rgba(var(--rgb-white), 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(var(--rgb-cyan), 0.2);
}

.field select option {
  color: var(--slate-700);
}

.field__error {
  font-size: var(--fs-caption);
  color: #ffb4b4;
  min-height: 1.1em;
}

.form__note {
  font-size: var(--fs-caption);
  color: rgba(var(--rgb-white), 0.6);
}

.form__status {
  font-size: 0.9rem;
  color: var(--mint-400);
  min-height: 1.4em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink-900);
  color: var(--on-dark-muted);
  padding-top: var(--sp-9);
  overflow: clip;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

.footer__grid > * {
  min-width: 0;
}

.footer a {
  overflow-wrap: anywhere; /* the email address must be allowed to break */
}

.footer h3 {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: var(--sp-4);
}

.footer li + li {
  margin-top: var(--sp-2);
}

/* Menu rows: chevron bullet, then the label. align-items:flex-start keeps the
   chevron on the first line when a label wraps to two. The hover shift is a
   transform, not padding, so it never reflows the column. */
.footer__link {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.92rem;
  transition: color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}

.footer__link svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 0.44em; /* optical centring against the first line of text */
  color: var(--blue-400);
  transition: color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}

.footer__link:hover {
  color: var(--cyan-300);
  transform: translateX(4px);
}

.footer__link:hover svg {
  color: var(--cyan-300);
  transform: translateX(2px);
}

/* Contact rows: real icons rather than a generic bullet. The last row is a
   <span>, not a link, so the class carries the layout instead of `a`. */
.footer__contact {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.92rem;
  transition: color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.24em;
  color: var(--cyan-400);
  transition: color var(--d-fast) var(--e-out);
}

a.footer__contact:hover {
  color: var(--cyan-300);
  transform: translateX(3px);
}

a.footer__contact:hover svg {
  color: var(--cyan-300);
}

/* Any footer link not covered above (e.g. legal rows added later). */
.footer a:not(.logo):not(.social__link):not(.footer__link):not(.footer__contact) {
  font-size: 0.92rem;
  transition: color var(--d-fast) var(--e-out);
}

.footer a:not(.logo):not(.social__link):not(.footer__link):not(.footer__contact):hover {
  color: var(--cyan-300);
}

.footer__blurb {
  margin-top: var(--sp-4);
  font-size: 0.92rem;
  max-width: 34ch;
}

.social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* The client's review poster in the footer's brand column, with a vector QR
   laid over its printed one. The artwork is a 200px JPEG, so its own code is
   too soft to decode at any display size, while an SVG of the same 41 modules
   stays sharp at every device pixel ratio - both encode the identical review
   URL. The percentages below are measured from the source file: the printed
   code occupies x 51-148, y 149-246 of a 200x283 image, and the overlay adds
   2.5 modules of quiet zone so its white ground covers the original cleanly.
   Re-measure them if the artwork is ever re-exported. */
.review-card {
  position: relative;
  display: block;
  width: 200px;
  max-width: 100%;
  margin-top: var(--sp-5);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--d-mid) var(--e-out);
}

.review-card:hover,
.review-card:focus-visible {
  transform: translateY(-3px);
}

.review-card__art {
  display: block;
  width: 100%;
  height: auto;
}

.review-card__qr {
  position: absolute;
  left: 22.54%;
  top: 50.56%;
  width: 54.41%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
}

.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--rgb-white), 0.14);
  color: var(--on-dark-muted);
  transition: transform var(--d-mid) var(--e-spring), color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out);
}

.social__link svg {
  width: 17px;
  height: 17px;
}

.social__link:hover {
  transform: translateY(-4px);
  color: var(--cyan-300);
  border-color: rgba(var(--rgb-cyan), 0.45);
  background: rgba(var(--rgb-cyan), 0.08);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(var(--rgb-white), 0.08);
  font-size: var(--fs-caption);
}

/* The design credit in the legal row. The catch-all above already gives it a
   colour and a cyan hover, so this only corrects the two things that are
   wrong in this context: 0.92rem is larger than the 13px bar it sits in, and
   base.css leaves links with no underline, which makes a link in running copy
   indistinguishable from the copyright text around it.

   The :not() chain is repeated deliberately — it matches the specificity of
   the catch-all (0,5,1) so this rule wins on source order rather than on an
   !important. */
.footer__bar a:not(.logo):not(.social__link):not(.footer__link):not(.footer__contact) {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--rgb-white), 0.4);
  transition: color var(--d-fast) var(--e-out),
    text-decoration-color var(--d-fast) var(--e-out);
}

.footer__bar a:hover,
.footer__bar a:focus-visible {
  text-decoration-color: currentColor;
}

/* Oversized ghosted wordmark bleeding off the bottom edge */
.footer__ghost {
  position: absolute;
  left: 50%;
  bottom: -0.28em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 15rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(var(--rgb-white), 0.03);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Six links, the phone and the quote button need ~1290px on one line. Below
   1280 labels would wrap to two lines, so hand over to the drawer. */
@media (max-width: 1279px) {
  .nav__links,
  .nav__phone {
    display: none;
  }

  .nav__toggle {
    display: flex;
    order: 3;
  }

  .nav__actions {
    margin-left: auto;
  }
}

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

  .mega__promo {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .btn {
    padding: 0.85rem 1.35rem;
    font-size: 0.9rem;
  }

  /* The nav bar can't hold the logo, CTA and toggle at this width. The drawer
     and the hero both carry a "Get Free Quote", so drop this one. */
  .nav__actions .btn {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .logo__text b {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   Mobile drawer (shares nav markup)
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 16, 28, 0.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + var(--sp-5)) var(--gutter) var(--sp-7);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-out),
    visibility var(--d-mid);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Group headings are buttons now. They keep the eyebrow treatment the old
   .drawer__title had, so the drawer reads the same when everything is shut. */
.drawer__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  margin-top: var(--sp-4);
  padding: 0.85rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(var(--rgb-white), 0.07);
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-400);
}

.drawer__group .chev {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--d-mid) var(--e-out);
}

.drawer__group[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Indented so the hierarchy is legible once a group is open. Needs the extra
   .drawer to outrank `.drawer a { padding: 0.7rem 0 }` below, which is the
   same specificity, comes later, and resets padding-left via the shorthand. */
.drawer .drawer__panel a {
  padding-left: var(--sp-4);
}

.drawer a {
  display: block;
  padding: 0.7rem 0;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(var(--rgb-white), 0.07);
}

.drawer a:hover {
  color: var(--cyan-300);
}

/* `.drawer a` is (0,1,1) and outranks `.btn` (0,1,0), so without restating
   these the quote button inherits display:block, the drawer's vertical-only
   padding and its divider border — the label ends up jammed against the left
   edge with a stray line under the pill. */
.drawer .btn {
  display: inline-flex;
  width: 100%;
  margin-top: var(--sp-6);
  padding: 0.95rem 1.75rem;
  border-bottom: 0;
}


/* --------------------------------------------------------------------------
   Mobile touch targets

   Text links sit at 24-25px tall, which clears the 24px WCAG 2.5.8 floor but
   is uncomfortable on a phone. Vertical padding brings them to 44px without
   changing the visual rhythm — the list gaps shrink by the same amount, so the
   columns keep their spacing.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .footer__link,
  .footer__contact {
    padding-block: 0.6rem;
  }

  .footer li + li {
    margin-top: 0; /* padding above now supplies the gap */
  }

  /* "View Service" inside the service cards. */
  .link-arrow {
    padding-block: 0.65rem;
  }
}


/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(var(--rgb-ink), 0.94);
}

.lightbox[hidden] { display: none !important; }

.lightbox__img {
  /* --cap is set per photo by the script to twice the source width, so a small
     photo is never stretched across a big screen. min() folds it together with
     the viewport limits instead of the inline style overriding them. */
  width: 100%;
  max-width: min(96vw, 1200px, var(--cap, 1200px));
  max-height: 84vh;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(var(--rgb-white), 0.18);
  background: rgba(var(--rgb-white), 0.10);
  color: var(--on-dark);
  cursor: pointer;
}

.lightbox__btn:hover { background: rgba(var(--rgb-white), 0.20); }

.lightbox__btn:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 2px;
}

.lightbox__btn svg { width: 22px; height: 22px; }

.lightbox__close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox__prev  { left: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox__next  { right: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev svg { transform: rotate(180deg); }

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark-muted);   /* 6.1:1 on the backdrop */
}

/* Below the arrows' reach on a phone: move them to the bottom corners so they
   are not sitting on top of the photo. */
@media (max-width: 560px) {
  .lightbox__prev, .lightbox__next {
    top: auto;
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    transform: none;
  }
  .lightbox__count { bottom: calc(clamp(0.75rem, 2vw, 1.5rem) + 62px); }
}


/* The logo and phone icon must not be what gives way when the nav is tight:
   flex-shrink squeezed "Living Fresh" onto two lines and the icon to a dot. */
.nav .logo {
  flex-shrink: 0;
}

.nav .logo__text {
  white-space: nowrap;
}

.nav__phone svg {
  flex: none;
}

/* Just above the drawer breakpoint the links, phone number and quote button
   need ~11px more than there is (full row fits from ~1291px). The phone number
   steps out in that sliver; the hero call button and the drawer still carry it. */
@media (min-width: 1280px) and (max-width: 1319px) {
  .nav__phone {
    display: none;
  }
}