/* ============================================================
   PERDYSY FOOTER STYLES — dark 4-column premium footer
   ============================================================ */

/* ── Hide Elessi's native footer (all selectors confirmed from live page) ── */
footer#nasa-footer,
#nasa-footer,
.footer-wrapper,
.footer-wrapper.nasa-clear-both,
.nasa-site-footer,
.nasa-footer-wrap,
#footer-content {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ── Ensure our footer is always visible ── */
footer#pd-footer,
#pd-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* ── Footer Base ─────────────────────────────────────────── */
#pd-footer {
  background: #0f1f30;
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ── Main Footer Grid ────────────────────────────────────── */
.pd-footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
}

@media (max-width: 1100px) {
  .pd-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .pd-footer-main {
    grid-template-columns: 1fr;
    padding: 48px 20px 32px;
    gap: 28px;
  }
}

/* ── Brand Column ────────────────────────────────────────── */
.pd-footer-brand {}

.pd-footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.pd-footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.pd-footer-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pd-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  max-width: 260px;
  line-height: 1.65;
}

/* Social Icons */
.pd-footer-social {
  display: flex;
  gap: 10px;
}

.pd-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.pd-social-link:hover {
  border-color: #2D6A9F;
  color: #fff;
  background: rgba(45, 106, 159, 0.3);
}

/* ── Footer Columns ──────────────────────────────────────── */
.pd-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pd-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.pd-footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ── Contact Column ──────────────────────────────────────── */
.pd-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.pd-footer-contact-item .pd-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  margin-top: 1px;
}

.pd-footer-contact-item span {
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* Newsletter Form */
.pd-newsletter {
  margin-top: 20px;
}

.pd-newsletter p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.pd-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-newsletter-form input[type="email"] {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease !important;
}

.pd-newsletter-form input[type="email"]:focus {
  border-color: rgba(45, 106, 159, 0.6) !important;
}

.pd-newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.pd-newsletter-form button {
  width: 100% !important;
  padding: 10px 16px !important;
  background: #2D6A9F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.3s ease !important;
}

.pd-newsletter-form button:hover { background: #1A3A5C !important; }

/* ── Footer Bottom Bar ───────────────────────────────────── */
.pd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pd-footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.pd-footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}
.pd-footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* Payment icons */
.pd-payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pd-payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .pd-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}
