/**
 * template-footer.css — Theron Travels v3.0
 * Color system derived from logo — matching header v3.0:
 *   Navy base:   #07090f  (slightly deeper for footer depth)
 *   Fire orange: #e8600a  (logo flame + TRAVELS wordmark) — PRIMARY accent
 *   Cyan teal:   #2dd4bf  (logo wave) — SECONDARY accent / icons
 *   White:       #ffffff  (logo T letterform)
 */

/* ─────────────────────────────────────────
   SCOPED TOKENS
───────────────────────────────────────── */
.footer {
  --ft-fire:       #e8600a;
  --ft-fire-lt:    #f5793a;
  --ft-fire-glow:  rgba(232, 96, 10, 0.22);
  --ft-teal:       #2dd4bf;
  --ft-teal-dim:   rgba(45, 212, 191, 0.10);
  --ft-ink:        #ffffff;
  --ft-muted:      rgba(255,255,255,0.62);
  --ft-dim:        rgba(255,255,255,0.35);
  --ft-border:     rgba(255,255,255,0.06);
  --ft-border2:    rgba(255,255,255,0.10);
  --ft-surface:    rgba(255,255,255,0.03);
}

/* ─────────────────────────────────────────
   FOOTER CORE
───────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #0b1535 0%, #080e22 40%, #07090f 100%);
  color: var(--ft-ink);
  padding: 3rem 0 0;
  position: relative;
}

/* Top accent line — dual color matching logo */
.footer-top-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ft-teal) 20%,
    var(--ft-fire) 55%,
    var(--ft-fire-lt) 80%,
    transparent 100%
  );
  opacity: 0.75;
}
.footer-top-glow::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(180deg, rgba(11,21,53,0.5) 0%, transparent 100%);
}

/* ─────────────────────────────────────────
   HEADINGS
───────────────────────────────────────── */
.footer-heading {
  color: var(--ft-ink);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.55rem;
  letter-spacing: 0.3px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--ft-fire), var(--ft-fire-lt));
  border-radius: 2px;
}

.business-hours-heading,
.emergency-heading,
.office-heading {
  color: var(--ft-ink);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.business-hours-heading::after,
.emergency-heading::after,
.office-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--ft-fire), var(--ft-fire-lt));
  border-radius: 2px;
}
.business-hours-heading i,
.office-heading i,
.emergency-heading i {
  margin-right: 8px;
  color: var(--ft-fire);
  opacity: 0.85;
}

/* ─────────────────────────────────────────
   BRAND / LOGO SECTION
───────────────────────────────────────── */
.footer-brand-section { margin-bottom: 1rem; }
.footer-logo-img {
  max-height: 48px; width: auto;
  filter: brightness(1.05);
  display: block;
  transition: filter 0.3s ease;
}
.footer-logo-img:hover { filter: brightness(1.15); }

.company-description {
  color: var(--ft-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.company-tagline {
  color: rgba(232, 96, 10, 0.65) !important;
  font-style: italic;
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   CONTACT INFO
───────────────────────────────────────── */
.footer-contact-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
}
.footer-contact-info .contact-item i {
  color: var(--ft-teal);
  font-size: 0.8rem;
  width: 16px; text-align: center;
  flex-shrink: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-contact-info .contact-text {
  color: var(--ft-muted);
  font-size: 0.85rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.footer-contact-info .contact-item:hover .contact-text { color: var(--ft-fire); }
.footer-contact-info .contact-item:hover i {
  color: var(--ft-fire);
  text-shadow: 0 0 6px var(--ft-fire-glow);
}

/* ─────────────────────────────────────────
   FOOTER LINKS
───────────────────────────────────────── */
.footer-links li { margin-bottom: 0.35rem; }
.footer-link {
  color: var(--ft-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  gap: 8px;
  padding: 3px 0;
}
.footer-link:hover {
  color: var(--ft-fire) !important;
  text-decoration: none;
  transform: translateX(3px);
}
.footer-link i {
  color: var(--ft-dim);
  transition: color 0.3s ease;
  width: 14px; font-size: 0.75rem;
  flex-shrink: 0; text-align: center;
}
.footer-link:hover i { color: var(--ft-fire); }

/* ─────────────────────────────────────────
   SOCIAL MEDIA GRID
───────────────────────────────────────── */
.social-links { margin-bottom: 1.5rem; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.social-link {
  display: flex; align-items: center;
  padding: 8px 10px;
  background: var(--ft-surface);
  border-radius: 8px;
  color: var(--ft-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--ft-border);
  gap: 8px;
}
.social-link:hover {
  background: rgba(232,96,10,0.07);
  border-color: rgba(232,96,10,0.2);
  color: var(--ft-fire);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--ft-fire-glow);
}
.social-link i { font-size: 0.95rem; width: 16px; text-align: center; flex-shrink: 0; }
.social-link span { font-size: 0.82rem; font-weight: 500; }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.newsletter-section {
  background: rgba(232,96,10,0.04);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(232,96,10,0.10);
  margin-bottom: 1rem;
}
.newsletter-heading {
  color: var(--ft-fire);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}
.newsletter-text {
  color: var(--ft-dim);
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}
.newsletter-form .input-group {
  border-radius: 25px; overflow: hidden;
  border: 1px solid rgba(232,96,10,0.14);
  transition: border-color 0.3s ease;
}
.newsletter-form .input-group:focus-within {
  border-color: rgba(232,96,10,0.35);
  box-shadow: 0 0 0 3px rgba(232,96,10,0.06);
}
.newsletter-input {
  border: none !important;
  background: rgba(255,255,255,0.04) !important;
  padding: 0.6rem 1rem;
  border-radius: 25px 0 0 25px !important;
  font-size: 0.85rem;
  color: #ffffff !important;
}
.newsletter-input::placeholder { color: var(--ft-dim); }
.newsletter-input:focus { box-shadow: none !important; background: rgba(255,255,255,0.06) !important; }
.newsletter-btn {
  background: var(--ft-fire) !important;
  border: none !important;
  padding: 0.6rem 1rem;
  border-radius: 0 25px 25px 0 !important;
  color: #ffffff !important;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.newsletter-btn:hover {
  background: var(--ft-fire-lt) !important;
  transform: scale(1.02);
}

/* ─────────────────────────────────────────
   OFFICE, HOURS, EMERGENCY
───────────────────────────────────────── */
.office-row {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--ft-border);
}
.office-details { margin-top: 0.75rem; }
.office-item {
  display: flex; align-items: flex-start;
  margin-bottom: 0.5rem; gap: 10px;
}
.office-item i {
  color: var(--ft-teal);
  font-size: 0.8rem; flex-shrink: 0;
  width: 16px; text-align: center; margin-top: 3px;
}
.office-text { color: var(--ft-muted); font-size: 0.85rem; line-height: 1.4; word-break: break-word; }

.office-map-link {
  color: var(--ft-teal);
  text-decoration: none; font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex; align-items: center;
  margin-top: 0.4rem; font-size: 0.82rem; gap: 8px; opacity: 0.8;
}
.office-map-link:hover { color: var(--ft-fire); opacity: 1; text-decoration: none; }
.office-map-link i { font-size: 0.75rem; flex-shrink: 0; }

.business-hours { margin-top: 0.5rem; }
.hours-item { color: var(--ft-muted); font-size: 0.85rem; margin-bottom: 0.3rem; line-height: 1.4; }
.hours-item strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* Emergency — keep red, it's semantically important */
.emergency-contact { display: flex; align-items: center; margin-bottom: 0.5rem; gap: 10px; }
.emergency-contact i {
  color: #f87171; font-size: 1rem;
  flex-shrink: 0; width: 16px; text-align: center;
  animation: emergencyPulse 2s infinite;
}
.emergency-text { color: #f87171; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.emergency-description { color: var(--ft-dim); font-size: 0.8rem; line-height: 1.4; margin: 0; }
@keyframes emergencyPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ─────────────────────────────────────────
   AWARDS
───────────────────────────────────────── */
.awards-section { margin-top: 0.5rem; }
.awards-heading {
  color: var(--ft-dim); font-weight: 500;
  margin-bottom: 0.5rem; font-size: 0.82rem; letter-spacing: 0.3px;
}
.award-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.award-badge {
  height: 40px; width: auto; border-radius: 6px;
  opacity: 0.6; transition: all 0.3s ease; filter: grayscale(30%);
}
.award-badge:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }

/* ─────────────────────────────────────────
   COPYRIGHT BAR
───────────────────────────────────────── */
.footer-bar {
  margin-top: 2rem; padding: 1.2rem 0;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(232,96,10,0.10);
  position: relative;
}
/* Subtle orange top highlight on copyright bar */
.footer-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ft-fire), transparent);
  opacity: 0.5;
}
.copyright-content { text-align: center; }
.copyright-main { color: var(--ft-dim); font-size: 0.82rem; margin: 0; font-weight: 400; }
.copyright-sub { color: rgba(255,255,255,0.18); font-size: 0.72rem; margin: 4px 0 0; letter-spacing: 0.5px; }

/* ─────────────────────────────────────────
   WHATSAPP WIDGET (unchanged — green is correct)
───────────────────────────────────────── */
.whatsapp-container { position: fixed; bottom: 25px; right: 25px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.whatsapp-float-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s ease; position: relative;
}
.whatsapp-float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.whatsapp-icon { font-size: 28px; color: white; }
.whatsapp-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: white;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #07090f;
}
.whatsapp-chat-widget {
  position: absolute; bottom: 70px; right: 0;
  width: 320px; height: 480px;
  background: #f0f0f0; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease; transform-origin: bottom right;
}
.whatsapp-chat-widget.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header {
  background: linear-gradient(135deg, #128c7e, #25d366);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; flex-shrink: 0;
}
.chat-info { flex: 1; }
.chat-name { color: white; font-weight: 600; font-size: 14px; margin: 0; }
.chat-status { color: rgba(255,255,255,0.85); font-size: 12px; margin: 0; }
.chat-close {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 16px; cursor: pointer; padding: 4px; opacity: 0.8; transition: opacity 0.2s;
}
.chat-close:hover { opacity: 1; }
.chat-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 16px; gap: 14px; overflow-y: auto; background: #e5ddd5;
}
.chat-message { display: flex; gap: 8px; align-items: flex-start; }
.message-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #128c7e; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: white; flex-shrink: 0;
}
.message-content {
  max-width: 75%; background: #ffffff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.message-content p { margin: 0; font-size: 13px; line-height: 1.45; color: #333; }
.message-content p + p { margin-top: 4px; }
.quick-replies { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: auto; }
.quick-reply-btn {
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.3);
  color: #128c7e; padding: 10px 8px; border-radius: 20px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.quick-reply-btn:hover { background: #25d366; color: white; border-color: #25d366; transform: translateY(-1px); }
.quick-reply-btn i { font-size: 11px; }
.chat-input-area { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.08); }
.chat-input-container { display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 20px;
  font-size: 14px; outline: none;
  transition: border-color 0.3s ease; background: white;
}
.chat-input:focus { border-color: #25d366; box-shadow: 0 0 0 2px rgba(37,211,102,0.1); }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25d366; border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
}
.chat-send-btn:hover { background: #20b358; transform: scale(1.05); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991.98px) { .footer { padding: 2rem 0 0; } }
@media (max-width: 768px) {
  .footer { padding: 2rem 0 0; }
  .social-grid { grid-template-columns: 1fr; }
  .whatsapp-container { bottom: 20px; right: 20px; }
  .whatsapp-chat-widget { width: 300px; height: 450px; bottom: 70px; }
  .quick-replies { grid-template-columns: 1fr; }
  .copyright-main { font-size: 0.8rem; white-space: normal; }
  .office-row { margin-top: 1.5rem; padding-top: 1rem; }
  .contact-text, .office-text { font-size: 0.8rem; }
}
@media (max-width: 576px) {
  .footer { padding: 1.5rem 0 0; }
  .footer-heading { font-size: 0.95rem; }
  .newsletter-section { padding: 0.75rem; }
  .social-link { justify-content: center; text-align: center; }
  .whatsapp-chat-widget { width: calc(100vw - 40px); right: -15px; }
  .whatsapp-float-btn { width: 55px; height: 55px; }
  .whatsapp-icon { font-size: 24px; }
  .copyright-main { font-size: 0.75rem; }
  .copyright-sub { font-size: 0.65rem; }
  .contact-text, .office-text, .emergency-text { font-size: 0.75rem; }
  .office-row { margin-top: 1rem; padding-top: 0.75rem; }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY & MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-btn, .chat-send-btn, .quick-reply-btn,
  .whatsapp-chat-widget, .footer-link, .social-link { transition: none; }
  .whatsapp-pulse, .emergency-contact i { animation: none; }
}
@media (prefers-contrast: high) {
  .whatsapp-float-btn, .chat-send-btn, .quick-reply-btn { border: 2px solid #000; }
  .whatsapp-chat-widget { border: 2px solid #000; }
}
.whatsapp-float-btn:focus, .chat-send-btn:focus,
.quick-reply-btn:focus, .chat-input:focus {
  outline: 2px solid #25d366; outline-offset: 2px;
}
@media print {
  .whatsapp-container { display: none !important; }
  .footer { background: white !important; color: black !important; }
}

/* ─────────────────────────────────────────
   OVERFLOW PREVENTION
───────────────────────────────────────── */
.footer .row { margin-bottom: 0; }
.footer .col-lg-2, .footer .col-lg-3, .footer .col-lg-4,
.footer .col-md-3, .footer .col-md-4, .footer .col-md-6 { overflow: hidden; }