/* ============================================================
   Bihar Bhraman — Canonical footer (single source of truth)
   Exact homepage design, applied identically on every page.
   Scoped to footer#contact so no page stylesheet can override.
   ============================================================ */

footer#contact {
  position: relative;
  background: linear-gradient(160deg, #2E3A1E 0%, #1c2614 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 4.5rem 8% 2rem;
  margin-top: 0;
  overflow: hidden;
}

/* saffron→gold heritage ribbon */
footer#contact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #E8650A 0%, #C9960C 50%, #E8650A 100%);
}
/* soft saffron glow, top-right */
footer#contact::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 101, 10, 0.16) 0%, transparent 70%);
}

/* ---------- layout ---------- */
footer#contact .footer-top {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
footer#contact .footer-bottom {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72);
}

/* ---------- brand column ---------- */
footer#contact .footer-brand,
footer#contact .footer-brand i { color: #fff; font-family: 'Playfair Display', Georgia, serif; }
footer#contact .footer-brand i { color: #E8650A; margin-right: 8px; }
footer#contact .footer-brand { font-size: 1.25rem; font-weight: 700; display: inline-flex; align-items: center; margin-bottom: 1rem; }
footer#contact .footer-brand:hover { color: #C9960C; }
footer#contact .footer-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Lora', serif; font-style: italic;
  max-width: 300px; margin-bottom: 1.4rem; line-height: 1.7;
}

/* ---------- column headers ---------- */
footer#contact .footer-col h4 {
  color: #C9960C; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.8rem; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 1.1rem;
}
footer#contact .footer-col h4::after {
  content: ""; display: block; width: 26px; height: 2px; margin-top: 8px;
  background: #E8650A; border-radius: 2px;
}

/* ---------- links ---------- */
footer#contact .footer-links { list-style: none; padding: 0; margin: 0; }
footer#contact .footer-links li { margin-bottom: 0.65rem; }
footer#contact .footer-links a {
  color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
}
footer#contact .footer-links a:hover { color: #C9960C; padding-left: 8px; }

/* ---------- socials ---------- */
footer#contact .socials { display: flex; gap: 0.7rem; }
footer#contact .socials a {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92); font-size: 1.05rem; margin: 0;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
footer#contact .socials a:hover {
  background: #E8650A; border-color: #E8650A; color: #fff;
  transform: translateY(-4px) scale(1.05);
}

/* ---------- newsletter ---------- */
footer#contact .footer-news p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; margin-bottom: 1rem; }
footer#contact .newsletter-form {
  display: flex; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden;
}
footer#contact .newsletter-form input {
  flex: 1; background: transparent; border: none; padding: 0.75rem 1.2rem;
  color: #fff; font-size: 0.9rem; outline: none;
}
footer#contact .newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
footer#contact .newsletter-form button {
  background: #E8650A; border: none; color: #fff; padding: 0 1.25rem; cursor: pointer;
  font-size: 1rem; transition: background .25s ease, transform .25s ease;
}
footer#contact .newsletter-form button:hover { background: #b8470a; transform: translateX(2px); }

/* ---------- legal ---------- */
footer#contact .footer-legal { display: flex; gap: 1.5rem; }
footer#contact .footer-legal a { color: rgba(255, 255, 255, 0.72); transition: color .25s ease; }
footer#contact .footer-legal a:hover { color: #C9960C; }

/* ---------- entrance animation ---------- */
footer#contact .footer-top > *,
footer#contact .footer-bottom {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
footer#contact.footer-in .footer-top > *,
footer#contact.footer-in .footer-bottom { opacity: 1; transform: translateY(0); }
footer#contact.footer-in .footer-top > *:nth-child(1) { transition-delay: .05s; }
footer#contact.footer-in .footer-top > *:nth-child(2) { transition-delay: .15s; }
footer#contact.footer-in .footer-top > *:nth-child(3) { transition-delay: .25s; }
footer#contact.footer-in .footer-top > *:nth-child(4) { transition-delay: .35s; }
footer#contact.footer-in .footer-bottom { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  footer#contact .footer-top > *, footer#contact .footer-bottom {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  footer#contact .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer#contact .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  footer#contact { padding: 3.5rem 6% 1.6rem; }
  footer#contact .footer-top { grid-template-columns: 1fr; }
  footer#contact .footer-bottom { flex-direction: column; align-items: flex-start; }
}
