/* =========================================================
   NAVBAR ↔ FOOTER — FINAL CLEAN & CONSOLIDATED
   Single Source of Truth • No Conflicts • Production-Ready
   ========================================================= */

/* =========================================================
   1️⃣ THEME VARIABLES (AUTHORITATIVE)
   ========================================================= */

/* LIGHT THEME */
body[data-theme="light"] {
  --nav-bg: #1e3a8a;
  --nav-text: #ffffff;
}

/* BLUE THEME */
body[data-theme="blue"] {
  --nav-bg: #1e2a6d;
  --nav-text: #e5faff;
}

/* DARK THEME */
body[data-theme="dark"] {
  --nav-bg: #0f172a;
  --nav-text: #e5e7eb;
}

/* =========================================================
   2️⃣ NAVBAR (REFERENCE ONLY)
   ========================================================= */

body[data-theme] .navbar {
  background-color: var(--nav-bg);
  color: var(--nav-text);
}

.navbar a,
.navbar .brand {
  color: inherit;
}

/* =========================================================
   3️⃣ FOOTER — SAME COLOR, SAME WIDTH AS PAGE
   ========================================================= */

body[data-theme] footer {
  background-color: var(--nav-bg) !important;
  color: var(--nav-text);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  padding: 4rem 0;
  font-family: 'Poppins', sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 -8px 24px rgba(0,0,0,0.25);
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* =========================================================
   4️⃣ HARD OVERRIDES (TAILWIND / OVERLAYS)
   ========================================================= */

footer,
footer.bg-deep-blue,
footer[class*="bg-"] {
  background-image: none !important;
}

/* Remove pseudo overlays */
.navbar::before,
.navbar::after,
footer::before,
footer::after {
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* =========================================================
   5️⃣ FOOTER CONTENT WIDTH (ALIGNED TO PAGE CONTENT)
   ========================================================= */

footer .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   6️⃣ TYPOGRAPHY — BLENDED & PREMIUM
   ========================================================= */

footer h4 {
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

footer p,
footer li,
footer span {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  line-height: 1.7;
}

footer small {
  color: rgba(255,255,255,0.65);
}

/* =========================================================
   7️⃣ LINKS — GLOW + LIFT
   ========================================================= */

footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

footer a:hover {
  color: #0ea5e9;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(14,165,233,0.45);
}

/* =========================================================
   8️⃣ SOCIAL ICONS — GLASS EFFECT
   ========================================================= */

footer a[aria-label] {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 9999px;
  padding: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

footer a[aria-label]:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* =========================================================
   9️⃣ NEWSLETTER
   ========================================================= */

footer input[type="email"] {
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  border: none;
  outline: none;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
}

footer input::placeholder {
  color: #64748b;
}

footer button[type="submit"] {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(14,165,233,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.6);
}

/* =========================================================
   🔟 FOOTER DIVIDER
   ========================================================= */

footer .border-t {
  border-color: rgba(255,255,255,0.18) !important;
}

/* =========================================================
   1️⃣1️⃣ MOBILE REFINEMENT
   ========================================================= */

@media (max-width: 767px) {
  footer {
    padding: 3rem 0;
    text-align: center;
  }
}

/* =========================================================
   HEADER ↔ FOOTER SYMMETRY POLISH
   ========================================================= */

/* Shared elevation rhythm */
.navbar,
footer {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 18px rgba(0,0,0,0.18);
}

/* Shared typography tone */
.navbar,
footer {
  letter-spacing: 0.01em;
}

/* Shared interactive accent */
.navbar a:hover,
footer a:hover {
  color: #0ea5e9;
}

/* Shared icon treatment */
.navbar i,
footer i {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

/* =========================================================
   THEME TRANSITION ANIMATION (SMOOTH & SAFE)
   ========================================================= */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Smooth theme transitions */
body,
.navbar,
footer {
  transition:
    background-color 350ms ease,
    color 250ms ease,
    box-shadow 350ms ease;
}

/* Links & buttons */
a,
button {
  transition:
    color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

/* =========================================================
   ACCESSIBILITY — CONTRAST & FOCUS AUDIT (WCAG-ALIGNED)
   ========================================================= */

/* Ensure readable text contrast */
footer p,
footer li,
footer span {
  color: rgba(255,255,255,0.85); /* ≥ 4.5:1 on dark bg */
}

footer h4 {
  color: #ffffff; /* maximum contrast */
}

/* Focus visibility (keyboard users) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 3px;
}

/* Inputs contrast */
footer input[type="email"] {
  background-color: #ffffff;
  color: #0f172a;
}

footer input::placeholder {
  color: #475569; /* improved contrast */
}

/* Disable sound/animation cues for reduced motion */
@media (prefers-reduced-motion: reduce) {
  footer a:hover,
  .navbar a:hover {
    transform: none;
    text-shadow: none;
  }
}
