/* Static-mirror fixes — restore Squarespace JS-rendered section backgrounds.
   On the live site, BackgroundImageFXParallax paints these images onto a
   <canvas> via JS. That JS doesn't run in a static mirror, leaving the
   <img> hidden and the section blank. Force the image to display as a
   normal covering background, and hide the empty FX canvas. */
img.background-image-fx,
.section-background-content img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

canvas.background-fx-canvas,
.section-background-canvas {
  display: none !important;
}

/* Testimonials carousel is rendered by the UserItemsListCarousel JS, which
   does not run in a static export. We hide the broken carousel and render a
   static quotes grid (.mirror-testimonials) injected into the page instead. */
.user-items-list-carousel {
  display: none !important;
}

/* Static replacement for the testimonials carousel, styled to match the
   original Squarespace design: white quotes directly on the green section
   background, with a circular nav control. Peeking carousel: ~3.5 quotes
   wide, ~2.25 medium, ~1.25 narrow. JS nav lives in mirror-fixes.js. */
.mirror-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}
.mirror-track {
  --vis: 3.5;
  --gap: 32px;
  display: flex;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  /* side padding leaves gutters for the nav buttons so they never cover text */
  padding: 8px 76px 16px;
  scroll-padding-left: 76px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mirror-track::-webkit-scrollbar { display: none; }
.mirror-quote {
  flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis));
  scroll-snap-align: start;
  color: #ffffff;
  margin: 0;
  padding: 8px 4px;
}
.mirror-quote__text {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
}
.mirror-quote__meta {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.mirror-quote__stars { letter-spacing: 1px; }
@media (max-width: 999px) { .mirror-track { --vis: 2.25; } }
@media (max-width: 639px) {
  .mirror-track { --vis: 1.25; }
  .mirror-quote__text { font-size: 19px; }
}

.mirror-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #a7e1c0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
}
.mirror-nav:hover { background: #93d8ae; }
.mirror-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #1f9d57;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mirror-nav--prev { left: 10px; }
.mirror-nav--next { right: 10px; }
@media (max-width: 639px) {
  .mirror-nav { width: 46px; height: 46px; }
  .mirror-track { padding-left: 60px; padding-right: 60px; scroll-padding-left: 60px; }
  .mirror-nav--prev { left: 6px; }
  .mirror-nav--next { right: 6px; }
}

/* Static contact form (replaces the JS-rendered Squarespace form block).
   Fields match the original: Name (First/Last), Email, Message, Send. */
/* The Squarespace .form-wrapper is display:grid with an auto column, so it
   sizes to the form's content — which makes the form shrink when the Name/Email
   fields are hidden (e.g. on /app-contact with query params). Force it to a
   normal block so the form is a consistent full width either way. */
.sqs-block-form .form-wrapper {
  display: block !important;
}
.mirror-contact-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}
.mirror-contact-form .mcf-name {
  border: none;
  margin: 0 0 18px;
  padding: 0;
}
.mirror-contact-form legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}
.mirror-contact-form .mcf-row {
  display: flex;
  gap: 16px;
}
.mirror-contact-form .mcf-row .mcf-field { flex: 1; }
.mirror-contact-form .mcf-field {
  display: block;
  margin: 0 0 18px;
}
.mirror-contact-form .mcf-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}
.mirror-contact-form .mcf-req {
  font-weight: 400;
  color: #888;
}
.mirror-contact-form input,
.mirror-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.15s ease;
}
.mirror-contact-form input:focus,
.mirror-contact-form textarea:focus {
  outline: none;
  border-color: #2ec866;
  box-shadow: 0 0 0 3px rgba(46, 200, 102, 0.15);
}
.mirror-contact-form textarea { resize: vertical; min-height: 120px; }
.mirror-contact-form .mcf-submit {
  display: inline-block;
  margin-top: 4px;
  padding: 13px 34px;
  border: none;
  border-radius: 999px;
  background: #2ec866;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mirror-contact-form .mcf-submit:hover { background: #29b259; }
.mirror-contact-form .mcf-note {
  margin-top: 14px;
  font-size: 13px;
  color: #999;
}

.mirror-contact-form .mcf-hidden { display: none !important; }
.mirror-form-success {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  color: #1a1a1a;
  white-space: pre-wrap;
}
.mirror-form-success p { margin: 0 0 10px; }
.mirror-form-success a { color: #2ec866; font-weight: 700; }

/* Honeypot field — visually hidden, off-screen; bots fill it, humans don't. */
.mcf-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mcf-error {
  margin-top: 14px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
}

/* Section dividers: Squarespace's angled dividers used clip-paths that the
   static export mangled into `clip-path: url(<page>.html)` (invalid), so they
   rendered inconsistently across browsers/hosts with stray white lines.
   Clip-paths are neutralized in the HTML; hide the angled divider blocks too
   so every section has a clean straight edge. */
.section-divider-block { display: none !important; }

/* Dividers are gone, so drop the bottom spacing they reserved: zero the
   divider-height variable (used by some sections' padding calc) so divider
   sections fall back to their normal symmetric padding. */
.has-section-divider { --divider-height: 0px !important; }

/* Site-wide announcement bar. Live Squarespace renders this from account
   settings via JS into `.sqs-announcement-bar-dropzone`; that JS doesn't run
   here, so it's rebuilt as static markup (same text/link as live) with the
   site's default announcement-bar theme (black background, white text — no
   custom color override exists in the live site's CSS). Dismissed state is
   read/written by mirror-fixes.js via a cookie so closing it on one page
   keeps it closed on every page. */
.mirror-announcement-bar {
  background: #000;
  color: #fff;
}
.mirror-announcement-bar[hidden] { display: none; }
.mirror-announcement-bar__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 56px;
  text-align: center;
}
.mirror-announcement-bar__text {
  margin: 0;
  font-family: var(--body-font-font-family, inherit);
  font-size: 15px;
  line-height: 1.4;
}
.mirror-announcement-bar__text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.mirror-announcement-bar__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 639px) {
  .mirror-announcement-bar__inner { padding: 12px 44px; font-size: 14px; }
  .mirror-announcement-bar__close { right: 8px; }
}
