/* Site-wide 3D footer and floating WhatsApp / Call buttons.
   Loaded on every page from partials/head-meta.php, after components.css. */

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(47, 92, 134, 0.45), transparent 60%),
    var(--color-primary-dark);
  box-shadow: inset 0 3px 0 var(--color-orange), inset 0 4px 18px rgba(240, 98, 3, 0.35);
}
/* faint perspective grid along the bottom for depth */
.site-footer::before {
  content: "";
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -40%;
  height: 90%;
  pointer-events: none;
  transform: perspective(500px) rotateX(70deg);
  transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 70px);
  -webkit-mask: linear-gradient(to top, #000, transparent 85%);
  mask: linear-gradient(to top, #000, transparent 85%);
}
.site-footer .container { position: relative; }

/* each column becomes a raised glass tile */
.footer-brand,
.footer-col {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    2px 2px 0 #0a2944, 4px 4px 0 #08233b, 6px 6px 0 #061d31,
    18px 22px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: translate 300ms cubic-bezier(.16, 1, .3, 1), box-shadow 300ms ease;
}
.footer-brand:hover,
.footer-col:hover {
  translate: -3px -3px;
  box-shadow:
    2px 2px 0 #0a2944, 4px 4px 0 #08233b, 6px 6px 0 #061d31, 8px 8px 0 #cf5202, 10px 10px 0 #a84302,
    24px 30px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
  position: relative;
  padding-bottom: 10px;
  font-size: 1rem;
  text-shadow: 0 1px 0 #9fb0c2, 0 2px 0 #5f7790, 0 6px 10px rgba(0, 0, 0, 0.5);
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-orange);
  box-shadow: 0 2px 0 #a84302, 0 0 10px rgba(240, 98, 3, 0.6);
}
/* Brand name: header-3d.css colours it navy for the white header, which
   vanished on the navy footer, so it gets its own light 3D treatment here. */
.footer-brand .brand { gap: 14px; font-size: 1.55rem; }
.footer-brand .brand-mark {
  width: 58px;
  height: 58px;
  box-shadow:
    0 0 0 3px #fff,
    0 3px 0 3px #f06203, 0 5px 0 3px #a84302,
    0 0 22px 4px rgba(240, 98, 3, 0.45),
    0 12px 18px rgba(0, 0, 0, 0.4);
}
.footer-brand .brand > span:last-child {
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 0 #dfe6ee, 0 2px 0 #f06203, 0 3px 0 #cf5202, 0 4px 0 #a84302,
    0 0 18px rgba(240, 98, 3, 0.35),
    0 8px 12px rgba(0, 0, 0, 0.55);
}

/* links slide forward with an orange chevron */
.footer-col ul { gap: 6px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 4px;
  border-radius: 8px;
  transition: translate 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.footer-col a::before {
  content: "›";
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  translate: 6px 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

/* email / phone rows as raised chips */
.footer-brand ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  word-break: break-all;
  transition: translate 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.footer-brand ul a:hover { translate: 0 -2px; background: rgba(255, 255, 255, 0.12); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); }

/* social buttons */
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  transition: translate 120ms ease, box-shadow 120ms ease;
}
.footer-social a:first-child {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 4px 0 #8e1a6c, 0 10px 16px rgba(0, 0, 0, 0.35);
}
.footer-social a:last-child {
  background: linear-gradient(160deg, #4be37f, #1fae54);
  box-shadow: 0 4px 0 #137a39, 0 10px 16px rgba(0, 0, 0, 0.35);
}
.footer-social a:hover { translate: 0 -3px; }
.footer-social a:active { translate: 0 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }

.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); }

/* ---------- Floating WhatsApp / Call buttons ---------- */
.float-actions { gap: 16px; }
.float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  transition: translate 120ms ease, box-shadow 120ms ease;
}
.float-btn svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3)); }
/* glossy highlight */
.float-btn::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 45%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.float-btn.whatsapp {
  background: radial-gradient(circle at 35% 30%, #5ef08e, #25d366 45%, #149c47);
  box-shadow: 0 5px 0 #0f7a37, 0 12px 20px rgba(0, 0, 0, 0.3);
}
.float-btn.call {
  background: radial-gradient(circle at 35% 30%, #ff9a52, var(--color-orange) 45%, var(--color-orange-dark));
  box-shadow: 0 5px 0 #a84302, 0 12px 20px rgba(0, 0, 0, 0.3);
}
.float-btn:hover { translate: 0 -3px; }
.float-btn.whatsapp:hover { box-shadow: 0 8px 0 #0f7a37, 0 16px 24px rgba(0, 0, 0, 0.3); }
.float-btn.call:hover { box-shadow: 0 8px 0 #a84302, 0 16px 24px rgba(0, 0, 0, 0.3); }
.float-btn:active { translate: 0 4px; }
.float-btn.whatsapp:active { box-shadow: 0 1px 0 #0f7a37, 0 4px 8px rgba(0, 0, 0, 0.3); }
.float-btn.call:active { box-shadow: 0 1px 0 #a84302, 0 4px 8px rgba(0, 0, 0, 0.3); }
/* soft pulse ring around WhatsApp */
.float-btn.whatsapp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: floatPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes floatPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 640px) {
  .footer-brand, .footer-col { padding: var(--space-4); }
  .float-btn { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-btn.whatsapp::after { animation: none; opacity: 0; }
  .footer-brand, .footer-col, .footer-col a, .float-btn { transition: none; }
}

/* ---------- Customer helpline band (above the footer, every page) ---------- */
.helpline-band {
  padding: var(--space-6) 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(240, 98, 3, 0.14), transparent 60%),
    linear-gradient(180deg, #f6f8fa, #eef2f6);
}
.helpline-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b3254, var(--color-navy) 70%);
  border-top: 3px solid var(--color-orange);
  color: #fff;
  text-decoration: none;
  box-shadow:
    2px 2px 0 #0a2944, 4px 4px 0 #08233b, 6px 6px 0 #061d31, 8px 8px 0 #cf5202,
    0 24px 40px rgba(2, 28, 51, 0.3);
  transition: translate 300ms cubic-bezier(.16, 1, .3, 1), box-shadow 300ms ease;
}
.helpline-card:hover,
.helpline-card:focus-visible {
  translate: -3px -3px;
  box-shadow:
    2px 2px 0 #0a2944, 4px 4px 0 #08233b, 6px 6px 0 #061d31, 8px 8px 0 #cf5202, 11px 11px 0 #a84302,
    0 30px 46px rgba(2, 28, 51, 0.35);
}
.helpline-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a52, var(--color-orange) 45%, var(--color-orange-dark));
  box-shadow: 0 0 0 3px #fff, 0 4px 0 3px #a84302, 0 0 24px 6px rgba(240, 98, 3, 0.45);
  animation: helplineRing 2.4s ease-in-out infinite;
}
@keyframes helplineRing {
  0%, 70%, 100% { rotate: 0deg; }
  75% { rotate: -12deg; } 80% { rotate: 12deg; } 85% { rotate: -8deg; } 90% { rotate: 6deg; }
}
.helpline-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.helpline-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb27a;
}
.helpline-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow:
    0 1px 0 #dfe6ee, 0 2px 0 #f06203, 0 3px 0 #cf5202, 0 4px 0 #a84302,
    0 8px 12px rgba(0, 0, 0, 0.5);
}
.helpline-sub { font-size: 0.88rem; color: var(--color-on-dark-muted); }
.helpline-btn {
  flex-shrink: 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ff9a52, var(--color-orange) 45%, var(--color-orange-dark));
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 0 #a84302, 0 10px 18px rgba(240, 98, 3, 0.35);
}
.helpline-card:active .helpline-btn { translate: 0 3px; box-shadow: 0 2px 0 #a84302; }

@media (max-width: 640px) {
  .helpline-card { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; padding: 22px 18px; }
  .helpline-text { flex-basis: 100%; align-items: center; }
  .helpline-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .helpline-icon { animation: none; }
  .helpline-card { transition: none; }
}

/* ---------- Floating helpline button (left, level with WhatsApp) ---------- */
.float-helpline {
  position: fixed;
  left: var(--space-5);
  bottom: calc(var(--space-5) + 56px + 16px);
  z-index: 90;
  background: radial-gradient(circle at 35% 30%, #4f7fae, #0b3254 45%, var(--color-navy));
  box-shadow: 0 0 0 2px #f06203, 0 5px 0 2px #a84302, 0 12px 20px rgba(0, 0, 0, 0.3);
}
.float-helpline:hover { box-shadow: 0 0 0 2px #f06203, 0 8px 0 2px #a84302, 0 16px 24px rgba(0, 0, 0, 0.3); }
.float-helpline:active { box-shadow: 0 0 0 2px #f06203, 0 1px 0 2px #a84302, 0 4px 8px rgba(0, 0, 0, 0.3); }
.float-helpline svg { animation: helplineRing 2.4s ease-in-out infinite; }
.float-helpline-label {
  position: absolute;
  left: 66px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 3px 0 #d5dce4, 0 8px 16px rgba(2, 28, 51, 0.18);
  pointer-events: none;
}
.float-helpline-label small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange-dark);
}
@media (max-width: 640px) {
  .float-helpline { bottom: calc(var(--space-5) + 52px + 16px); }
  .float-helpline-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float-helpline svg { animation: none; }
}
