/* Tide Reef Footer — shared global footer
   Light foam surface + dark ink (readable on every DNA page).
   Brand band stays lagoon. Prefix: tf- */

:root {
  --tb-lagoon: #024E4A;
  --tb-deep: #013533;
  --tb-apricot: #FF9B71;
  --tb-foam: #EFFFFA;
  --tb-mint: #B8F2E0;
  --tb-ink: #042A28;
  --tb-mute: #2F5C58;
  --tb-ease: cubic-bezier(0.34, 1.4, 0.64, 1);
  --tb-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --tb-display: "Bricolage Grotesque", system-ui, sans-serif;
  --tb-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

.tf-reef {
  position: relative;
  display: block;
  visibility: visible;
  margin-top: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
  color: #042A28;
  font-family: var(--tb-body);
  background-color: #EFFFFA;
  background-image:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(255, 155, 113, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 20%, rgba(2, 78, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #F4FBF8 0%, #EFFFFA 45%, #D8F0E8 100%);
  border-top: 3px solid #FF9B71;
  overflow: hidden;
}

.tf-reef--tide-home {
  padding-bottom: 7.5rem;
}

.tf-wash {
  display: none;
}

.tf-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.tf-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #024E4A;
}

.tf-asymm {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.tf-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(2, 78, 74, 0.16);
  border-radius: 1.6rem 0.5rem 1.6rem 1.6rem;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 10px 28px rgba(1, 53, 51, 0.06);
}

.tf-news h2 {
  margin: 0 0 0.55rem;
  font-family: var(--tb-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #042A28;
}

.tf-news-lede {
  margin: 0 0 1.1rem;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #2F5C58;
}

.tf-news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tf-news-form input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(2, 78, 74, 0.28);
  border-radius: 999px;
  background: #013533;
  color: #EFFFFA;
  font-family: var(--tb-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.25s var(--tb-soft), box-shadow 0.25s var(--tb-soft);
}

.tf-news-form input::placeholder {
  color: rgba(239, 255, 250, 0.5);
  opacity: 1;
}

.tf-news-form input:focus {
  outline: none;
  border-color: #FF9B71;
  box-shadow: 0 0 0 4px rgba(255, 155, 113, 0.25);
}

.tf-news-form button {
  appearance: none;
  border: 0;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: #FF9B71;
  color: #042A28;
  font-family: var(--tb-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(180, 90, 50, 0.35);
  transition: transform 0.35s var(--tb-ease), background 0.25s, box-shadow 0.25s;
}

.tf-news-form button:hover,
.tf-news-form button:focus-visible {
  background: #FFB08E;
  color: #042A28;
  transform: translateY(-2px) scale(1.02);
  outline: 2px solid #024E4A;
  outline-offset: 2px;
  box-shadow: 0 8px 0 rgba(180, 90, 50, 0.3);
}

.tf-news-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #024E4A;
}

.tf-news-status.is-live {
  animation: tf-pulse 0.6s var(--tb-ease);
}

@keyframes tf-pulse {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tf-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tf-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  flex: 1;
}

.tf-buoy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1.25rem 1.25rem 0.4rem 1.25rem;
  text-decoration: none !important;
  color: #042A28 !important;
  background: #FFFFFF;
  border: 1.5px solid rgba(2, 78, 74, 0.14);
  box-shadow: 0 8px 20px rgba(1, 53, 51, 0.06);
  transition: transform 0.35s var(--tb-ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.tf-buoy span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2F5C58;
}

.tf-buoy strong {
  font-family: var(--tb-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #042A28;
}

.tf-buoy:hover,
.tf-buoy:focus-visible {
  transform: translateY(-4px) rotate(-1deg);
  outline: none;
  box-shadow: 0 14px 28px rgba(1, 53, 51, 0.18);
  border-color: #FF9B71;
  color: #042A28 !important;
}

.tf-buoy--mail:hover { background: #B8F2E0; }
.tf-buoy--shop:hover { background: #FF9B71; }
.tf-buoy--help:hover { background: #FFFFFF; }
.tf-buoy--track:hover { background: #B8F2E0; }

.tf-brand-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: #024E4A;
  border: 1px solid rgba(184, 242, 224, 0.2);
  border-radius: 1.35rem 1.35rem 1.35rem 0.35rem;
}

.tf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  color: #EFFFFA !important;
}

.tf-logo-orb {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #013533;
  box-shadow:
    0 0 0 4px rgba(184, 242, 224, 0.25),
    0 0 0 7px rgba(255, 155, 113, 0.35);
  transition: transform 0.4s var(--tb-ease), background 0.25s;
}

.tf-logo:hover .tf-logo-orb,
.tf-logo:focus-visible .tf-logo-orb {
  background: #FF9B71;
  transform: scale(1.08);
}

.tf-logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.tf-logo-copy strong {
  font-family: var(--tb-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #EFFFFA;
}

.tf-logo-copy em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8F2E0;
}

.tf-brand-band p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(239, 255, 250, 0.88);
  max-width: 38rem;
}

.tf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: #FF9B71;
  color: #042A28 !important;
  font-family: var(--tb-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 0 rgba(180, 90, 50, 0.35);
  transition: transform 0.35s var(--tb-ease), background 0.25s, box-shadow 0.25s;
}

.tf-cta:hover,
.tf-cta:focus-visible {
  background: #FFB08E;
  transform: translateY(-2px) scale(1.03);
  outline: 2px solid #EFFFFA;
  outline-offset: 2px;
  box-shadow: 0 8px 0 rgba(180, 90, 50, 0.3);
  color: #042A28 !important;
}

.tf-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  grid-template-areas:
    "operate explore legal aisles"
    "operate explore legal aisles";
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.tf-tile {
  padding: 1.1rem 1.05rem 1.15rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(2, 78, 74, 0.14);
  border-radius: 1.1rem;
  box-shadow: 0 8px 20px rgba(1, 53, 51, 0.05);
  transition: transform 0.35s var(--tb-ease), border-color 0.25s, background 0.25s;
}

.tf-tile--wide { grid-area: operate; border-radius: 1.4rem 0.5rem 1.4rem 1.4rem; }
.tf-tile--accent {
  grid-area: legal;
  background: #FFF5F0;
  border-color: rgba(255, 155, 113, 0.45);
}
.tf-tile--tall { grid-area: aisles; border-radius: 0.5rem 1.4rem 1.4rem 1.4rem; }
.tf-tile:nth-child(2) { grid-area: explore; }

.tf-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 78, 74, 0.28);
  background: #F4FBF8;
}

.tf-tile--accent:hover {
  background: #FFE8DC;
  border-color: rgba(255, 155, 113, 0.65);
}

.tf-tile h3 {
  margin: 0 0 0.75rem;
  font-family: var(--tb-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #024E4A;
}

.tf-tile--accent h3 {
  color: #C45E32;
}

.tf-tile-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tf-tile-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.15rem;
  color: #042A28;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.3s var(--tb-ease), padding-left 0.3s var(--tb-soft);
}

.tf-tile-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  background: #FF9B71;
  transition: width 0.3s var(--tb-soft);
}

.tf-tile-links a:hover,
.tf-tile-links a:focus-visible {
  color: #024E4A;
  padding-left: 0.55rem;
  transform: translateX(2px);
  outline: none;
}

.tf-tile-links a:hover::before,
.tf-tile-links a:focus-visible::before {
  width: calc(100% - 0.55rem);
}

.tf-seal {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem 1.5rem;
  align-items: end;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(2, 78, 74, 0.22);
}

.tf-disclaimer {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #2F5C58;
}

.tf-disclaimer strong {
  color: #042A28;
  font-weight: 700;
}

.tf-seal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  align-items: center;
}

.tf-year,
.tf-pay {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tf-year {
  background: #FF9B71;
  color: #042A28;
}

.tf-pay {
  background: #B8F2E0;
  color: #013533;
  border: 1px solid rgba(2, 78, 74, 0.2);
}

.tf-seal-mail {
  font-size: 0.82rem;
  font-weight: 600;
  color: #024E4A;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tf-seal-mail:hover,
.tf-seal-mail:focus-visible {
  color: #C45E32;
  border-bottom-color: #FF9B71;
  outline: none;
}

.tf-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: #FF9B71;
  color: #042A28;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 0 0 5px rgba(255, 155, 113, 0.28),
    0 12px 28px rgba(1, 53, 51, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--tb-soft), transform 0.4s var(--tb-ease), background 0.25s;
}

.tf-reef--tide-home .tf-top {
  bottom: 1.35rem;
  right: 1.25rem;
}

.tf-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tf-top:hover,
.tf-top:focus-visible {
  background: #FFB08E;
  transform: translateY(-3px) scale(1.06);
  outline: 2px solid #024E4A;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .tf-asymm,
  .tf-brand-band,
  .tf-seal {
    grid-template-columns: 1fr;
  }

  .tf-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "operate explore"
      "legal aisles";
  }

  .tf-brand-band {
    justify-items: start;
  }

  .tf-seal-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .tf-mosaic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "operate"
      "explore"
      "legal"
      "aisles";
  }

  .tf-social-grid {
    grid-template-columns: 1fr;
  }

  .tf-news-form {
    flex-direction: column;
  }

  .tf-news-form button {
    width: 100%;
  }

  .tf-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .tf-reef--tide-home .tf-top {
    bottom: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-buoy,
  .tf-cta,
  .tf-tile,
  .tf-tile-links a,
  .tf-top,
  .tf-news-form button,
  .tf-logo-orb {
    transition: none !important;
  }

  .tf-news-status.is-live {
    animation: none !important;
  }
}

.tf-reef .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hard lock — beat DNA body a {} rules; keep footer visible + readable */
html body .tf-reef,
html body.has-nv-nexus .tf-reef {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #EFFFFA !important;
  background-image:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(255, 155, 113, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 20%, rgba(2, 78, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #F4FBF8 0%, #EFFFFA 45%, #D8F0E8 100%) !important;
  color: #042A28 !important;
  border-top: 3px solid #FF9B71 !important;
}

html body .tf-reef .tf-wash {
  display: none !important;
}

html body .tf-reef .tf-card {
  background: #FFFFFF !important;
  border-color: rgba(2, 78, 74, 0.16) !important;
}

html body .tf-reef .tf-tile {
  background: #FFFFFF !important;
  border-color: rgba(2, 78, 74, 0.14) !important;
}

html body .tf-reef .tf-tile--accent {
  background: #FFF5F0 !important;
  border-color: rgba(255, 155, 113, 0.45) !important;
}

html body .tf-reef h2,
html body .tf-reef .tf-buoy strong,
html body .tf-reef .tf-disclaimer strong {
  color: #042A28 !important;
}

html body .tf-reef .tf-news-lede,
html body .tf-reef .tf-disclaimer,
html body .tf-reef .tf-buoy span {
  color: #2F5C58 !important;
}

html body .tf-reef .tf-eyebrow,
html body .tf-reef .tf-tile h3,
html body .tf-reef .tf-news-status,
html body .tf-reef .tf-seal-mail {
  color: #024E4A !important;
}

html body .tf-reef .tf-tile--accent h3 {
  color: #C45E32 !important;
}

html body .tf-reef .tf-tile-links a {
  color: #042A28 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

html body .tf-reef .tf-tile-links a:hover,
html body .tf-reef .tf-tile-links a:focus-visible {
  color: #024E4A !important;
}

html body .tf-reef .tf-buoy {
  color: #042A28 !important;
  background: #FFFFFF !important;
}

html body .tf-reef .tf-buoy:hover,
html body .tf-reef .tf-buoy:focus-visible {
  color: #042A28 !important;
  border-color: #FF9B71 !important;
}

html body .tf-reef .tf-buoy--mail:hover { background: #B8F2E0 !important; }
html body .tf-reef .tf-buoy--shop:hover { background: #FF9B71 !important; }
html body .tf-reef .tf-buoy--help:hover { background: #FFFFFF !important; }
html body .tf-reef .tf-buoy--track:hover { background: #B8F2E0 !important; }

html body .tf-reef .tf-brand-band {
  background: #024E4A !important;
  border-color: rgba(184, 242, 224, 0.2) !important;
}

html body .tf-reef .tf-brand-band p {
  color: rgba(239, 255, 250, 0.88) !important;
}

html body .tf-reef .tf-logo,
html body .tf-reef .tf-logo-copy strong {
  color: #EFFFFA !important;
}

html body .tf-reef .tf-logo-copy em {
  color: #B8F2E0 !important;
}

html body .tf-reef .tf-cta,
html body .tf-reef .tf-news-form button,
html body .tf-reef .tf-top,
html body .tf-reef .tf-year {
  background: #FF9B71 !important;
  color: #042A28 !important;
}

html body .tf-reef .tf-cta:hover,
html body .tf-reef .tf-cta:focus-visible,
html body .tf-reef .tf-news-form button:hover,
html body .tf-reef .tf-news-form button:focus-visible,
html body .tf-reef .tf-top:hover,
html body .tf-reef .tf-top:focus-visible {
  background: #FFB08E !important;
  color: #042A28 !important;
}

html body .tf-reef .tf-pay {
  background: #B8F2E0 !important;
  color: #013533 !important;
}

html body .tf-reef .tf-seal-mail:hover,
html body .tf-reef .tf-seal-mail:focus-visible {
  color: #C45E32 !important;
}

html body .tf-reef .tf-news-form input {
  color: #EFFFFA !important;
  background: #013533 !important;
  border-color: rgba(2, 78, 74, 0.35) !important;
}

html body .tf-reef .tf-news-form input::placeholder {
  color: rgba(239, 255, 250, 0.5) !important;
  opacity: 1 !important;
}
