/* ==========================================================================
   Footer Styles - FixPro 24x7 Home Appliance Repair
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-top {
  padding: 70px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-logo-icon svg {
  width: 22px;
  height: 22px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-brand-title span {
  color: #38bdf8;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
  width: fit-content;
}

.footer-trust-badge svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* Footer Columns */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links a::before {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
}

/* Footer Contact List */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--white);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 19, 36, 0.95);
  font-size: 0.85rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  margin: 0;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

/* Floating Action Buttons for Desktop */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.float-btn-whatsapp {
  background: var(--whatsapp-green);
}

.float-btn-call {
  background: var(--primary);
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-tooltip {
  position: absolute;
  right: 66px;
  background: var(--text-dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text-dark);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Sticky Bottom Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px 10px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.08);
  z-index: 998;
  gap: 6px;
}

.mobile-bottom-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 1.2;
}

.mobile-bottom-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.mobile-btn-call {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.2);
}

.mobile-btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.mobile-btn-book {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
}

.mobile-bottom-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    padding: 36px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-brand {
    gap: 10px;
  }
  .footer-logo {
    gap: 10px;
  }
  .footer-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .footer-logo-icon svg {
    width: 17px;
    height: 17px;
  }
  .footer-brand-title {
    font-size: 1.2rem;
  }
  .footer-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: justify !important;
    text-justify: inter-word;
  }
  .footer-trust-badge {
    padding: 6px 11px;
    font-size: 0.74rem;
    gap: 6px;
  }
  .footer-trust-badge svg {
    width: 14px;
    height: 14px;
  }
  .footer-col-title {
    font-size: 0.96rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  .footer-col-title::after {
    width: 22px;
    height: 2px;
  }
  .footer-links {
    gap: 9px;
  }
  .footer-links a {
    font-size: 0.82rem;
    gap: 5px;
  }
  .footer-contact-list {
    gap: 11px;
  }
  .footer-contact-item {
    font-size: 0.82rem;
    gap: 10px;
  }
  .footer-contact-item svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  .footer-bottom {
    padding: 16px 0 18px;
    font-size: 0.72rem;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-copy {
    font-size: 0.68rem;
    line-height: 1.4;
    color: #64748b;
    max-width: 340px;
    margin: 0 auto;
  }
  .footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2px 0 0 0;
    padding: 0;
  }
  .footer-bottom-links a {
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }
  .social-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .social-btn svg {
    width: 13px;
    height: 13px;
  }
  .floating-actions {
    display: none; /* Hide floating buttons on mobile to avoid overlapping the bottom bar */
  }
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 54px; /* Offset for sticky bottom bar */
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding: 24px 0 16px;
  }
  .footer-grid {
    gap: 16px;
  }
  .footer-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .footer-logo-icon svg {
    width: 14px;
    height: 14px;
  }
  .footer-brand-title {
    font-size: 1.05rem;
  }
  .footer-desc {
    font-size: 0.74rem;
    line-height: 1.42;
    text-align: justify !important;
    text-justify: inter-word;
  }
  .footer-trust-badge {
    padding: 4px 8px;
    font-size: 0.66rem;
  }
  .footer-trust-badge svg {
    width: 12px;
    height: 12px;
  }
  .footer-col-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
    padding-bottom: 4px;
  }
  .footer-links {
    gap: 6px;
  }
  .footer-links a {
    font-size: 0.76rem;
  }
  .footer-contact-list {
    gap: 8px;
  }
  .footer-contact-item {
    font-size: 0.76rem;
    gap: 7px;
  }
  .footer-contact-item svg {
    width: 14px;
    height: 14px;
  }
  .footer-bottom {
    padding: 12px 0 14px;
  }
  .footer-bottom .container {
    gap: 7px;
  }
  .footer-copy {
    font-size: 0.64rem;
    line-height: 1.35;
    max-width: 300px;
  }
  .footer-bottom-links {
    gap: 10px;
  }
  .footer-bottom-links a {
    font-size: 0.64rem;
    white-space: nowrap;
  }
  .social-links {
    gap: 6px;
  }
  .social-btn {
    width: 25px;
    height: 25px;
  }
  .social-btn svg {
    width: 11px;
    height: 11px;
  }
  .mobile-bottom-bar {
    padding: 5px 8px;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
    gap: 5px;
  }
  .mobile-bottom-btn {
    padding: 7px 4px;
    font-size: 0.74rem;
    gap: 4px;
    border-radius: 8px;
  }
  .mobile-bottom-btn svg {
    width: 13px;
    height: 13px;
  }
  body {
    padding-bottom: 50px;
  }
}

@media (max-width: 360px) {
  .footer-top {
    padding: 20px 0 14px;
  }
  .footer-brand-title {
    font-size: 0.98rem;
  }
  .footer-desc {
    font-size: 0.70rem;
    text-align: justify !important;
    text-justify: inter-word;
  }
  .footer-links a,
  .footer-contact-item {
    font-size: 0.72rem;
  }
  .footer-bottom-links {
    gap: 8px;
  }
  .footer-bottom-links a {
    font-size: 0.60rem;
  }
  .mobile-bottom-bar {
    padding: 4px 6px;
    gap: 4px;
  }
  .mobile-bottom-btn {
    padding: 6px 2px;
    font-size: 0.7rem;
    gap: 3px;
  }
  .mobile-bottom-btn svg {
    width: 12px;
    height: 12px;
  }
}
