/* TerraCelest Footer — fixed dark, theme-independent */

.hp-footer {
  background: #0B1D3A;
  color: #E6EDF3;
  padding: 48px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  margin-top: 48px;
  font-family: inherit;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hp-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand */
.hp-footer-brand {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.hp-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.hp-footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.hp-footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.01em;
}

.hp-footer-brand p {
  font-size: 0.86rem;
  color: #B1BAC4;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 520px;
}

/* Contact chips */
.hp-footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #E6EDF3;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease;
}

.footer-chip:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(0,166,156,0.55);
  color: var(--text-inverse);
  text-decoration: none;
}

.footer-chip i { font-size: 0.82rem; color: #00A69C; }
.footer-chip i.fa-whatsapp { color: #25D366; font-size: 0.86rem; }

/* Coverage */
.flags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 26px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.flags-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B95A1;
  margin-right: 6px;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #B1BAC4;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.flag-badge i { font-size: 0.68rem; color: #00A69C; }

/* Nav columns */
.hp-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hp-footer-nav { grid-template-columns: repeat(4, 1fr); }
}

.hp-footer-col h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin: 0 0 16px;
}

.hp-footer-col a,
.hp-footer-col .hp-footer-link {
  display: block;
  width: 100%;
  font-size: 0.86rem;
  color: #B1BAC4;
  text-decoration: none;
  margin-bottom: 11px;
  line-height: 1.4;
  transition: color .15s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.hp-footer-col a:hover,
.hp-footer-col .hp-footer-link:hover {
  color: #00A69C;
  text-decoration: none;
}

/* Bottom */
.hp-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.hp-footer-copy {
  font-size: 0.78rem;
  color: #8B95A1;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.hp-footer-addr {
  font-size: 0.72rem;
  color: #6E7883;
}

/* Modals */
.hp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 12, 24, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: hpFade .2s ease;
}

.hp-overlay.open { display: flex; }

@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }

.hp-modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  color: #0B1D3A;
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(6,12,24,0.35);
  position: relative;
  animation: hpPop .28s cubic-bezier(0.22,1,0.36,1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@keyframes hpPop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #F0F2F5;
  color: #556170;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.hp-modal-close:hover { background: #E2E8EF; }

.hp-modal h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0B1D3A;
  margin: 0 0 4px;
  text-align: center;
  letter-spacing: -0.015em;
}

.hp-modal-sub {
  font-size: 0.82rem;
  color: #627D98;
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
}

.hp-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F5F8FA;
  border: 1px solid #E4ECF2;
  text-decoration: none;
  color: #0B1D3A;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background .15s ease, border-color .15s ease;
}

.hp-modal-item:hover {
  background: #EAF2F8;
  border-color: #C8D8E4;
  text-decoration: none;
}

.hp-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: #00A69C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid #E4ECF2;
}

.hp-modal-icon i.fa-whatsapp { color: #25D366; }

.hp-modal-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hp-modal-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0B1D3A;
  margin-bottom: 2px;
}

.hp-modal-text em {
  font-size: 0.76rem;
  color: #627D98;
  font-style: normal;
  line-height: 1.4;
}

.hp-modal-arrow {
  color: #B1BAC4;
  font-size: 0.75rem;
  flex-shrink: 0;
}