/* ============================================================
   Closing section — sky + clock-tower artwork above the footer
   ============================================================ */

.closing {
  position: relative;
  overflow: hidden;
  /* Caps at 755px on wide viewports, scales down on smaller widths.
     56vw means the cap is reached at ~1350px viewport width. Matches
     the prior static-bg sizing — the Rive canvas now uses Fit.Cover
     to fill this box (cropping the artwork's left/right edges as
     needed), same visual outcome as background-size: cover did. */
  min-height: clamp(420px, 56vw, 755px);
  /* Center the copy vertically so it lines up with the clock face in the bg art */
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

/* Rive footer composition — fixed pixel dimensions, anchored to section
   center, ZERO responsive behavior. The section's overflow:hidden clips
   the sides on narrower viewports. z-index 0 places it above the page
   body but below closing__copy (z:1). */
.closing__rive {
  position: absolute;
  width: 2440px;
  height: 755px;
  /* Override reset.css's global `canvas { max-width: 100% }` — without
     this the canvas width gets clamped to the section width on narrow
     viewports while height stays at 755px, squashing the artwork. */
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Mobile: the centered 2440px canvas would put the artwork's middle (sky)
   in the narrow viewport. Translate left to bring the tower (~77% of the
   artwork's width) into view, plus a uniform scale to shrink the whole
   composition to fit. */
@media (max-width: 720px) {
  .closing__rive {
    transform: translate(calc(-50% - 230px), -50%) scale(0.56);
  }
}

/* Narrow-desktop / tablet band: keep the natural size but slide the canvas
   120px left so the tower sits in the same visual spot the rest of the
   composition expects. */
@media (min-width: 721px) and (max-width: 1080px) {
  .closing__rive {
    transform: translate(calc(-50% - 120px), -50%);
  }
}

.closing__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  /* Nudge down from vertical center to line up with the clock face */
  margin-top: 70px;
}

.closing__cursive {
  width: 100%;
  max-width: 480px;
  height: auto;
  align-self: center;
}

/* Mobile: push the closing section down a bit so the tower has air above
   it, and pin the copy near the top of the section so it sits clear of
   the tower body below. */
@media (max-width: 720px) {
  .closing {
    margin-top: clamp(60px, 8vh, 120px);
  }
  .closing__copy {
    position: absolute;
    top: 0;
    margin-top: 10px;
  }
}

/* Foreground cloud in front of the clock-tower's timecard for depth.
   Sits above the bg artwork but below the cursive copy. */
.closing__cloud-front {
  position: absolute;
  left: 50%;
  bottom: 0%;
  transform: translateX(-50%);
  width: 44%;
  max-width: 640px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .closing__cloud-front { display: none; }
}

/* ============================================================
   Site footer — white area with brand, link columns, back to top
   ============================================================ */

.site-footer {
  background: #F8F8F8;
  padding-top: clamp(40px, 6vh, 80px);
  /* Tighter bottom padding so the copyright line doesn't sit in a sea of
     whitespace below it. */
  padding-bottom: clamp(18px, 2.5vh, 28px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) auto auto auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;
}
.site-footer__logo img,
.site-footer__logo canvas {
  /* Scaled up to match the new topnav logo size (+6px tall, ~24% wider). */
  width: 226px;
  height: auto;
  aspect-ratio: 191 / 26;
  display: block;
}
/* Match the topnav: nudge the canvas 6px left so the visible letterform
   aligns with the column edge (artboard reserves padding for animation).
   Bumped from 4px now that the logo is sized larger — optical alignment
   scales with logo size. */
.site-footer__logo canvas {
  margin-left: -6px;
}
.site-footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-navy);
}
.site-footer__brand .btn { align-self: flex-start; }

/* Social icons row beneath the brand CTA. Same 32×32 navy circles as
   the mobile menu, sharing the same SVG assets. */
.site-footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.site-footer__social {
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.site-footer__social svg { width: 32px; height: 32px; display: block; }
/* SVGs are inlined so we can target just the navy circle background; on
   hover, swap its fill to brand-sage while the white glyph inside stays
   white. Size stays put. */
.site-footer__social-bg {
  transition: fill 200ms var(--ease-out);
}
.site-footer__social:hover .site-footer__social-bg {
  fill: var(--c-sage);
}

.site-footer__heading {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--c-sage);
  margin-bottom: 22px;
}
.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__nav a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-navy);
  font-weight: 500;
  transition: opacity 200ms var(--ease-out);
}
.site-footer__nav a:hover { opacity: 0.7; }
/* Highlight the link matching the current page (e.g., Privacy Policy when
   the visitor is on /privacy) so the footer reads as navigation, not just
   a list of links that all behave the same. */
.site-footer__nav a.is-active {
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.site-footer__top {
  justify-self: end;
  align-self: start;
  /* Vertically align roughly to the column headings/links */
  padding-top: 0;
}

/* Small centered copyright line below the footer grid. */
.site-footer__copyright {
  margin-top: clamp(24px, 4vh, 40px);
  margin-bottom: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-microcopy);
  padding-inline: var(--gutter);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__top {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
  }
  .closing__cursive {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Center the entire footer on phone — brand block, nav columns, and the
   back-to-top button all align to the center of the viewport. */
@media (max-width: 720px) {
  .site-footer__grid {
    justify-items: center;
    text-align: center;
  }
  .site-footer__brand {
    align-items: center;
  }
  .site-footer__brand .btn {
    align-self: center;
  }
  .site-footer__top {
    justify-self: center;
  }
}
