/* ==========================================================================
   AUTHENTICHIRE - FOOTER STYLESHEET (footer.css)
   Pairs with footer.html. Link this alongside home.css.
   ========================================================================== */

.footer-wrapper {
  --footer-primary: #004188;
  --footer-hover: #ee4343;
  --footer-card-bg: #f6f4ef;
  --footer-border: #e8e4dc;
  --footer-divider: #e0dbce;
  --footer-text: #3f4752;
  position: relative;
  margin-top: 80px;
}

.footer-cards-float {
  width: min(calc(100% - 40px), 1100px);
  margin: 0 auto -60px auto;
  position: relative;
  z-index: 10;
}

.contact-cards-container {
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-border);
  border-radius: 20px;
  padding: 35px 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-card-col {
  padding: 10px;
}

.contact-card-col:not(:last-child) {
  border-right: 1px solid var(--footer-divider);
}

.contact-card-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--footer-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 15px auto;
  transition: all 0.3s;
}

.contact-card-col:hover .contact-card-icon {
  background-color: var(--footer-hover);
  transform: scale(1.08);
}

.contact-card-col h5 {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card-col p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.5;
}

.contact-card-col a {
  color: var(--footer-primary);
  font-weight: 700;
}

.main-footer {
  background-color: var(--bg-dark);
  color: #f2f3f5;
  padding: 120px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2d333b;
}

.footer-logo-badge {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

.footer-logo-img {
  height: 38px;
}

.footer-col p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 15px 0;
  line-height: 1.7;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  color: var(--accent-red);
  font-size: 10px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: #2d333b;
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.footer-bottom p a {
  color: #1379e8;
  font-weight: 300;
}

.footer-legal-links a {
  color: #94a3b8;
  margin-left: 15px;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.back-to-top-btn {
  position: fixed;
  right: 50px;
  bottom: -7px;
  z-index: 9998;
  display: flex;
  width: 50px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 20%;
  background: #004188;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 65, 136, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #ee4343;
  box-shadow: 0 6px 18px rgba(238, 67, 67, 0.4);
  transform: translateY(-2px) scale(1.08);
}

.whatsapp-pulse-btn {
  position: fixed;
  bottom: 50px;
  left: 50px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  cursor: pointer;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-cards-container { grid-template-columns: 1fr; gap: 20px; }
  .contact-card-col:not(:last-child) { border-right: none; border-bottom: 1px solid var(--footer-divider); padding-bottom: 20px; }
}

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal-links a { margin: 0 8px; }
  .back-to-top-btn { right: 20px; bottom: 50px; }
  .whatsapp-pulse-btn { left: 20px; bottom: 50px; }
}