/* Shared Sonovate footer for modern and legacy WordPress templates.
   Loaded after theme.css on 2026 templates and on its own on legacy pages
   (see app/setup-sonovate2026.php). Moved out of theme.css section 18 so
   both page types render the same footer; keep footer styles here. */

/* ---------- Tokens: legacy pages do not load theme.css ---------- */
.footer {
  --color-electric-blue: #01E1FD;
  --color-white: #FFFFFF;
  --radius-pill: 9999px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --font-primary: 'GT Walsheim Pro', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- Resets matching theme.css base (legacy CSS styles these globally) ---------- */
:where(.footer) *,
:where(.footer) *::before,
:where(.footer) *::after { box-sizing: border-box; }
:where(.footer) a { color: inherit; text-decoration: none; }
:where(.footer) svg { display: block; max-width: 100%; }
:where(.footer) h3 { font-family: inherit; line-height: inherit; }

/* Legacy .container is a 12-column grid with different padding. */
.footer > .container {
  display: block;
  grid-template-columns: none;
  gap: normal;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .footer > .container { padding-inline: 40px; }
}

/* ---------- Footer (legacy-style: vivid purple + giant wordmark) ---------- */
.footer-brand-name {
  display: flex;
  align-items: center;
}

.footer {
  --footer-purple: #7000FF;
  background: var(--footer-purple);
  color: var(--color-white);
  padding: clamp(64px, 8vw, 96px) 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr) 1.3fr;
  gap: 48px 32px;
  padding-bottom: 56px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-brand-name { display: inline-block; }
.footer-brand-tag {
  margin: 20px 0 24px;
  max-width: 300px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-white);
}

.footer-help-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms var(--ease-out-quart), color 200ms var(--ease-out-quart);
}
.footer-help-btn:hover {
  background: var(--color-white);
  color: var(--footer-purple);
}

.footer-contact {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-contact a { color: var(--color-electric-blue); }
.footer-contact a:hover { color: var(--color-white); }

.footer-col-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 160ms var(--ease-out-quart);
}
.footer-col ul a:hover { color: var(--color-electric-blue); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.footer-social a {
  color: var(--color-electric-blue);
  transition: color 160ms var(--ease-out-quart), transform 160ms var(--ease-out-quart);
}
.footer-social a:hover { color: var(--color-white); transform: translateY(-2px); }

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 18px;
}
.footer-address strong { color: var(--color-white); font-weight: 700; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a { color: rgba(255, 255, 255, 0.75); }
.footer-legal a:hover { color: var(--color-white); }

/* Giant brand wordmark — the legacy footer's signature move */
.footer-wordmark {
  font-size: clamp(88px, 16.5vw, 252px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.78;
  text-align: center;
  color: var(--color-white);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  padding-top: clamp(40px, 6vw, 88px);
  margin-bottom: -0.06em;
}
