/*
 * ═══════════════════════════════════════════════════
 *  MIKAL FOOTER — Premium Redesign
 *  Architectural depth · Warm greens · Layered glass
 * ═══════════════════════════════════════════════════
 */

/* ─── Base ─── */
.mikal-footer {
  position: relative;
  background: var(--clr-surface-dark, #0f1a0f);
  color: var(--clr-text-on-dark, #f0f5ec);
  overflow: hidden;
  isolation: isolate;
}

/* Subtle topographic pattern overlay */
.mikal-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(
      circle at 20% 50%,
      transparent 0,
      transparent 60px,
      rgba(237, 245, 232, 0.5) 60px,
      rgba(237, 245, 232, 0.5) 61px,
      transparent 61px
    ),
    repeating-radial-gradient(
      circle at 80% 20%,
      transparent 0,
      transparent 80px,
      rgba(237, 245, 232, 0.4) 80px,
      rgba(237, 245, 232, 0.4) 81px,
      transparent 81px
    ),
    repeating-radial-gradient(
      circle at 50% 80%,
      transparent 0,
      transparent 100px,
      rgba(237, 245, 232, 0.3) 100px,
      rgba(237, 245, 232, 0.3) 101px,
      transparent 101px
    );
  pointer-events: none;
  z-index: 0;
}

/* Green gradient glow from top */
.mikal-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(
    180deg,
    rgba(10, 92, 24, 0.12) 0%,
    rgba(10, 92, 24, 0.04) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Accent line at top ─── */
.mikal-footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--clr-primary) 15%,
    var(--clr-accent, #e8a817) 50%,
    var(--clr-primary) 85%,
    transparent 100%
  );
  z-index: 2;
}

.mikal-footer-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(
    180deg,
    rgba(232, 168, 23, 0.15),
    transparent
  );
  filter: blur(6px);
  pointer-events: none;
}

/* ─── Main grid ─── */
.mikal-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 64px;
  padding-bottom: 32px;
}

/* ─── Brand column ─── */
.mikal-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mikal-footer-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--clr-text-on-dark);
  text-decoration: none;
}

.mikal-footer-brand-name:hover {
  color: var(--clr-accent, #e8a817);
}

.mikal-footer-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(237, 245, 232, 0.08);
  padding: 4px;
}

.mikal-footer-brand-desc {
  color: rgba(240, 245, 236, 0.65);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 36ch;
}

/* Trust badges */
.mikal-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mikal-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(237, 245, 232, 0.07);
  border: 1px solid rgba(237, 245, 232, 0.12);
  color: rgba(237, 245, 232, 0.82);
  transition: all 280ms var(--ease-out-expo);
}

.mikal-footer-badge:hover {
  background: rgba(237, 245, 232, 0.12);
  border-color: rgba(237, 245, 232, 0.22);
  transform: translateY(-1px);
}

.mikal-footer-badge .material-symbols-outlined {
  font-size: 15px;
  color: var(--clr-accent, #e8a817);
}

/* Social icons */
.mikal-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.mikal-footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 245, 232, 0.06);
  border: 1px solid rgba(237, 245, 232, 0.1);
  color: rgba(240, 245, 236, 0.7);
  transition: all 280ms var(--ease-out-expo);
}

.mikal-footer-social-link:hover {
  background: rgba(10, 92, 24, 0.3);
  border-color: rgba(10, 92, 24, 0.5);
  color: #cdecc8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 92, 24, 0.25);
}

.mikal-footer-social-link .material-symbols-outlined {
  font-size: 20px;
}

/* ─── Link columns ─── */
.mikal-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mikal-footer-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--clr-text-on-dark);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(232, 168, 23, 0.3);
  display: inline-block;
}

.mikal-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: rgba(240, 245, 236, 0.62);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 260ms var(--ease-out-expo);
  border-right: 2px solid transparent;
  padding-right: 10px;
  margin-right: -10px;
}

.mikal-footer-link:hover {
  color: #cdecc8;
  border-right-color: var(--clr-accent, #e8a817);
  padding-right: 14px;
}

.mikal-footer-link .material-symbols-outlined {
  font-size: 17px;
  opacity: 0.5;
  transition: opacity 260ms ease;
}

.mikal-footer-link:hover .material-symbols-outlined {
  opacity: 1;
  color: var(--clr-accent, #e8a817);
}

.mikal-footer-link--active {
  color: #cdecc8;
  font-weight: 600;
}

/* ─── Contact card ─── */
.mikal-footer-contact {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(
    160deg,
    rgba(237, 245, 232, 0.07) 0%,
    rgba(237, 245, 232, 0.03) 100%
  );
  border: 1px solid rgba(237, 245, 232, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mikal-footer-contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-text-on-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mikal-footer-contact-title .material-symbols-outlined {
  color: var(--clr-accent, #e8a817);
  font-size: 20px;
}

.mikal-footer-contact-desc {
  color: rgba(240, 245, 236, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.mikal-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 280ms var(--ease-spring);
  cursor: pointer;
}

.mikal-footer-cta:active {
  transform: scale(0.97);
}

.mikal-footer-cta--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mikal-footer-cta--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(37, 211, 102, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mikal-footer-cta--phone {
  background: rgba(237, 245, 232, 0.08);
  color: #cdecc8;
  border: 1px solid rgba(237, 245, 232, 0.15);
  font-size: 0.9rem;
}

.mikal-footer-cta--phone:hover {
  background: rgba(237, 245, 232, 0.14);
  border-color: rgba(237, 245, 232, 0.28);
  transform: translateY(-2px);
}

.mikal-footer-cta .material-symbols-outlined {
  font-size: 20px;
}

.mikal-footer-cta-phone-number {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Working hours */
.mikal-footer-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(237, 245, 232, 0.08);
}

.mikal-footer-hours-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(240, 245, 236, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.mikal-footer-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.mikal-footer-hours-label {
  color: rgba(240, 245, 236, 0.5);
}

.mikal-footer-hours-value {
  color: rgba(237, 245, 232, 0.8);
  font-weight: 600;
}

.mikal-footer-hours-value--live {
  color: #5ce67e;
}

.mikal-footer-hours-value--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ce67e;
  margin-inline-end: 5px;
  animation: footer-pulse 2s ease-in-out infinite;
}

@keyframes footer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── Bottom bar ─── */
.mikal-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(237, 245, 232, 0.08);
}

.mikal-footer-copyright {
  color: rgba(240, 245, 236, 0.4);
  font-size: 0.82rem;
  line-height: 1.6;
}

.mikal-footer-copyright a {
  color: rgba(237, 245, 232, 0.6);
  text-decoration: none;
  transition: color 200ms ease;
}

.mikal-footer-copyright a:hover {
  color: var(--clr-accent, #e8a817);
}

.mikal-footer-back-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(237, 245, 232, 0.06);
  border: 1px solid rgba(237, 245, 232, 0.1);
  color: rgba(240, 245, 236, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 280ms var(--ease-out-expo);
}

.mikal-footer-back-top:hover {
  background: rgba(237, 245, 232, 0.12);
  border-color: rgba(237, 245, 232, 0.2);
  color: #cdecc8;
  transform: translateY(-2px);
}

.mikal-footer-back-top .material-symbols-outlined {
  font-size: 18px;
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .mikal-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .mikal-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .mikal-footer-brand-desc {
    max-width: 100%;
  }

  .mikal-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .mikal-footer-contact {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .mikal-footer-badges {
    gap: 6px;
  }

  .mikal-footer-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .mikal-footer-inner {
    padding-top: 36px;
  }
}
