/* Footer, floating WhatsApp button and toast.
   Standalone on purpose: terms.php does not load shared.css. */

.site-footer {
  z-index: 3;
  --f-bg: #0a1a3f; --f-line: rgba(255, 255, 255, .12); --f-text: rgba(255, 255, 255, .72); --f-head: #fff; --f-gold: #f2b01e;
  position: relative; background: var(--f-bg); color: var(--f-text); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; line-height: 1.6; text-align: left; margin: 0; padding: 0;
}
.site-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, #f2b01e, #1f5bd8, #0f9d9a, #f2b01e); background-size: 300% 100%; animation: sfShift 14s linear infinite; }
@keyframes sfShift { to { background-position: -300% 0; } }
.site-footer * { box-sizing: border-box; }

.sf-wrap { max-width: 1160px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 32px) 36px; display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr; gap: 40px; }
.sf-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.sf-logo img { width: 44px; height: 44px; border-radius: 10px; background: #fff; padding: 2px; object-fit: contain; }
.sf-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.sf-logo strong { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif; font-size: 20px; color: var(--f-head); font-weight: 800; letter-spacing: -.02em; }
.sf-logo small { font-size: 11px; color: var(--f-text); margin-top: 2px; }
.sf-brand p { margin: 16px 0 18px; max-width: 34ch; }
.sf-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: #1faa59; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.sf-wa:hover { background: #178a49; transform: translateY(-2px); }
.sf-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.sf-col h3 { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--f-head); font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.sf-col h3.sf-gap { margin-top: 22px; }
.site-footer .sf-link { display: block; color: var(--f-text); text-decoration: none; padding: 4px 0; transition: color .18s, transform .18s; word-break: break-word; }
.site-footer .sf-link:hover { color: var(--f-gold); transform: translateX(3px); text-decoration: none; }
.sf-text { display: block; padding: 4px 0; }

.sf-bar { max-width: 1160px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 26px; border-top: 1px solid var(--f-line); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 900px) { .sf-wrap { grid-template-columns: 1fr 1fr; gap: 32px; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf-wrap { grid-template-columns: 1fr; padding-top: 44px; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 250; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1faa59; color: #fff; box-shadow: 0 10px 26px rgba(31, 170, 89, .45); transition: transform .25s cubic-bezier(.22, .8, .24, 1), background .2s; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); background: #178a49; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; opacity: 0; animation: waPulse 2.6s ease-out 1.5s 4; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 520px) { .wa-float { right: 12px; bottom: 12px; width: 52px; height: 52px; } }

/* Toast fallback for pages that do not load shared.css (terms.php) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 900; transform: translate(-50%, 24px); background: #0a1a3f; color: #fff; padding: 12px 20px; border-radius: 12px; font: 600 14px 'Plus Jakarta Sans', system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.22, .8, .24, 1); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .site-footer::before, .wa-float::after { animation: none; }
}
