/* Footer FX — self-hosted recreation of the Squarespace live footer:
   a wave divider rising into the section above + a drifting particle field
   (Squarespace's "Background Art" canvas, which doesn't run on a static export).
   Scoped entirely to the .footer-fx-host element the JS opts in; touches nothing else. */

.footer-fx-host { position: relative; overflow: visible; }

/* Particle canvas: fills the host, sits behind the text, ignores pointer events. */
.footer-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Keep the footer's real content above the particles. */
.footer-fx-host > .content-wrapper,
.footer-fx-host > .section-border,
.footer-fx-host > .content { position: relative; z-index: 1; }

/* Wave divider rising out of the top of the footer section. */
.footer-fx-wave {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .footer-fx-canvas { display: none; }
}

/* Unified newsletter section color across all pages — overrides per-page inline style and any
   head !important rules that may differ between pages, ensuring one consistent mint tone. */
[data-section-id="659c6112d8953319b03ce751"] {
  background-color: rgb(210, 234, 227) !important;
}

/* ============================================================
   Site component classes — use these instead of inline styles.
   Loaded on every page via footer-fx.css.
   ============================================================ */

/* --- Sections --- */
.sec        { padding: 64px 40px; }
.sec-sm     { padding: 48px 40px; }
.sec-title  { padding: 64px 40px 32px; text-align: center; }
.sec-cta    { background: #e8f4f1; padding: 40px 20px; text-align: center; }

/* --- Inner containers --- */
.sec-inner      { max-width: 860px;  margin: 0 auto; width: 100%; }
.sec-inner-wide { max-width: 960px;  margin: 0 auto; width: 100%; }
.sec-inner-cta  { max-width: 700px;  margin: 0 auto; width: 100%; }

/* --- Flex layouts --- */
.sec-flex      { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.sec-flex-wide { display: flex; gap: 64px; align-items: flex-start; flex-wrap: wrap; }
.flex-body     { flex: 1 1 300px; }

/* --- Display headings (big decorative left-column text) --- */
.display-heading {
  font-family: var(--heading-font-font-family, sans-serif);
  font-weight: 500;
  color: #256868;
  line-height: 1;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.display-lg  { font-size: clamp(36px,  4vw,  56px);  margin-top: -0.08em; }
.display-xl  { font-size: clamp(60px,  7vw,  100px); margin-top: -0.10em; }
.display-xxl { font-size: clamp(100px, 15vw, 200px); margin-top: -0.10em; }
.display-amber { color: #c8880a; }

/* --- Section headings --- */
.h-teal  { color: #256868; }
.h-amber { color: #c8880a; }

/* --- Text helpers --- */
.text-center { text-align: center; }

/* --- Centered bullet list (flyer style) --- */
.list-center { list-style: none; padding: 0; margin: 16px 0; text-align: center; }
.list-center li { margin: 5px 0; }
.list-center li::before { content: "•\00a0"; color: #c8880a; }

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: #256868;
  color: #fff;
  padding: 0.6em 1.6em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px 12px;
  font-size: 1.1em;
}
.btn-outline {
  display: inline-block;
  background: #fff;
  color: #256868;
  border: 2px solid #256868;
  padding: 0.6em 1.6em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px 12px;
  font-size: 1.1em;
}

/* --- Inline links --- */
.link-teal { color: #256868; font-weight: 600; }

/* --- Video embed --- */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- Images --- */
.img-rounded { border-radius: 8px; display: block; }
.img-full    { width: 100%; max-width: 100%; margin: 16px auto 28px; }
.img-half    { width: 100%; max-width: 500px; margin: 24px auto; }

/* --- Safety resource grid --- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.safety-grid a { text-decoration: none; color: inherit; text-align: center; }
.safety-grid img { width: 100%; height: 180px; object-fit: contain; background: white; padding: 20px 0; display: block; }
.safety-grid p { margin: 8px 0 0; text-decoration: underline; }

/* --- Mobile --- */
@media (max-width: 640px) {
  .sec        { padding: 48px 20px; }
  .sec-sm     { padding: 36px 20px; }
  .sec-title  { padding: 48px 20px 24px; }
  .sec-cta    { padding: 32px 20px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .display-heading { white-space: normal; }
}
