/* Site footer v3 (partials/footer.php) — loaded on every page from partials/header.php.
   White band with a faint blueprint grid: closing CTA, link columns, an oversized DEFYNED wordmark
   with a cursor-following gold spotlight, and a spinning "back to top" badge. All rules scoped to .ft */

footer.ft {
  --ft-bg: #ffffff;
  --ft-ink: var(--navy, #01017E);
  --ft-mute: var(--gray-dark, #525252);
  --ft-line: rgba(1, 1, 126, 0.1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--ft-line);
  background:
    radial-gradient(50% 45% at 100% 0%, rgba(255, 191, 82, 0.16), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(1, 1, 126, 0.05), transparent 70%),
    var(--ft-bg);
  color: var(--ft-ink);
  font-size: 1rem;
}
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft a { color: inherit; text-decoration: none; }

.ft-grid-bg {                       /* faint blueprint grid, like the homepage hero */
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(1, 1, 126, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(1, 1, 126, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  pointer-events: none;
}

.ft-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- CTA ---------- */
.ft-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--ft-line);
}
.ft-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-accent, #E1A641);
}
.ft-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ft-cta-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--navy, #01017E);
  text-wrap: balance;
}
.ft-cta-title em {                  /* navy italic with a gold highlight, like the homepage hero */
  position: relative;
  z-index: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--navy, #01017E);
  white-space: nowrap;
}
.ft-cta-title em::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0.1em;
  height: 0.26em;
  z-index: -1;
  background: var(--gold, #FFBF52);
  border-radius: 2px;
}
.ft-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ft-btn:hover { transform: translateY(-2px); }
.ft-btn span { transition: transform 0.2s ease; }
.ft-btn:hover span { transform: translateX(4px); }
.ft .ft-btn-gold { background: var(--gold, #FFBF52); color: var(--navy, #01017E); box-shadow: 0 12px 30px -12px rgba(255, 191, 82, 0.8); }
.ft .ft-btn-gold:hover { background: var(--gold-accent, #E1A641); }
.ft .ft-btn-line { border-color: var(--navy, #01017E); color: var(--navy, #01017E); }
.ft .ft-btn-line:hover { background: var(--navy, #01017E); border-color: var(--navy, #01017E); color: #fff; }
.ft-btn:focus-visible { outline: 2px solid var(--navy, #01017E); outline-offset: 3px; }

/* ---------- Columns ---------- */
.ft-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0 40px;
}
.ft-logo img { display: block; height: 52px; width: auto; }
.ft-tagline { margin: 20px 0 22px; max-width: 340px; line-height: 1.6; color: var(--ft-mute); }
.ft-social { display: flex; gap: 10px; }
.ft-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(1, 1, 126, 0.18);
  color: var(--navy, #01017E);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ft-social a:hover { background: var(--gold, #FFBF52); border-color: var(--gold, #FFBF52); color: var(--navy, #01017E); transform: translateY(-2px); }
.ft-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ft-social .ft-dot { fill: currentColor; stroke: none; }

.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ft-col-title {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-accent, #E1A641);
}
.ft-col a:not(.ft-badge) {
  position: relative;
  color: var(--ft-ink);
  font-size: 0.97rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ft-col a:not(.ft-badge)::before {  /* gold dash slides in on hover */
  content: "";
  position: absolute;
  left: -18px; top: 50%;
  width: 10px; height: 2px;
  background: var(--gold, #FFBF52);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.ft-col a:not(.ft-badge):hover { color: var(--gold-accent, #E1A641); transform: translateX(6px); }
.ft-col a:not(.ft-badge):hover::before { transform: scaleX(1); }
.ft a:focus-visible { outline: 2px solid var(--navy, #01017E); outline-offset: 3px; border-radius: 4px; }

.ft-nap { margin: 0; font-style: normal; line-height: 1.8; color: var(--ft-ink); }
.ft-nap a { color: var(--ft-ink); }
.ft-visit .ft-arrow-link {
  margin-top: 4px;
  font-weight: 800;
  border-bottom: 2px solid var(--gold, #FFBF52);
  padding-bottom: 2px;
}
.ft-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ft-line);
  transition: transform 0.2s ease;
}
.ft-badge:hover { transform: rotate(-3deg); }
.ft-badge img { display: block; width: 72px; height: auto; }

/* ---------- Oversized wordmark with spotlight ---------- */
.ft-mark {
  --mx: 50%;
  --my: 50%;
  position: relative;
  margin: 0 auto -0.17em;
  padding: 0 12px;
  font-size: clamp(5rem, 21.5vw, 22rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  cursor: default;
}
.ft-mark span { display: block; }
.ft-mark-base {                     /* quiet gradient wordmark */
  background: linear-gradient(180deg, rgba(1, 1, 126, 0.09), rgba(1, 1, 126, 0.015) 85%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.ft-mark-glow {                     /* gold copy revealed in a circle around the pointer */
  position: absolute;
  inset: 0;
  padding: 0 12px;
  background: linear-gradient(180deg, #FFD58A, var(--gold, #FFBF52) 45%, #E1A641);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-mask-image: radial-gradient(circle 14vw at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
          mask-image: radial-gradient(circle 14vw at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ft-mark.is-lit .ft-mark-glow { opacity: 1; }
@media (hover: none) {             /* touch screens: a slow gold sweep instead of the cursor */
  .ft-mark-glow { opacity: 0.85; animation: ft-sweep 7s ease-in-out infinite alternate; }
}
@keyframes ft-sweep { from { --mx: 5%; } to { --mx: 95%; } }
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

/* ---------- Bottom bar ---------- */
.ft-bottom {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--ft-line);
  font-size: 0.85rem;
  color: var(--ft-mute);
}
.ft-legal, .ft-disclaimer { margin: 0; }
.ft-disclaimer { flex: 1; min-width: 240px; }
.ft-legal-links { display: flex; gap: 20px; }
.ft-legal-links a { color: var(--ft-mute); transition: color 0.2s ease; }
.ft-legal-links a:hover { color: var(--navy, #01017E); }

.ft-top {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 84px; height: 84px;
  margin-left: auto;                /* always the last thing on the right of the bottom bar */
  border-radius: 50%;
  color: var(--navy, #01017E);
}
.ft-top svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: ft-spin 14s linear infinite;
}
.ft-top text { fill: var(--navy, #01017E); font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px; }
.ft-top-arrow {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold, #FFBF52);
  color: var(--navy, #01017E);
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.25s ease;
}
.ft-top:hover .ft-top-arrow { transform: translateY(-4px); }
.ft-top:hover svg { animation-duration: 5s; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ft-top svg, .ft-mark-glow { animation: none !important; }
  .ft *, .ft *::before { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ft-wrap { padding: 0 16px; }
  .ft-cta { padding: 64px 0 40px; }
  .ft-cta-actions, .ft-btn { width: 100%; }
  .ft-btn { justify-content: center; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding: 44px 0 28px; }
  .ft-visit { grid-column: 1 / -1; }
  .ft-col a:not(.ft-badge):hover { transform: none; }
  .ft-bottom { padding-bottom: 96px; }   /* clear the floating appointment + chat buttons */
  .ft-top { width: 72px; height: 72px; }
}
