/* ===========================================================
   Triveni Power - Glowing footer
   Brand block + 4 link columns + bottom legal/social row.
   Subtle orange radial glow on the top edge.
   =========================================================== */

.footer {
  position: relative;
  background: #0A0809;
  color: rgba(255,255,255,0.84);
  font-family: "Raleway", var(--font-display);
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* =========================================================
   GLOW - soft orange radial halo at the top edge
   ========================================================= */
.footer__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 110%);
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(245,130,32,0.55) 0%,
    rgba(245,130,32,0.22) 28%,
    rgba(245,130,32,0.08) 50%,
    rgba(245,130,32,0.00) 70%
  );
  filter: blur(60px);
  opacity: 0.85;
  animation: footerGlow 9s ease-in-out infinite;
}
@keyframes footerGlow {
  0%, 100% { opacity: 0.7;  transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.95; transform: translateX(-50%) scale(1.04); }
}

/* Top hairline under the glow for crisp section break */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245,130,32,0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   CONTAINER - matches nav inner alignment
   ========================================================= */
.footer__container {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 112px) var(--s-3) clamp(28px, 3vw, 40px);
}
@media (min-width: 768px) {
  .footer__container { padding-left: var(--s-4); padding-right: var(--s-4); }
}
@media (min-width: 1280px) {
  .footer__container { padding-left: var(--s-5); padding-right: var(--s-5); }
}

/* =========================================================
   TOP - brand + columns
   ========================================================= */
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Tablet (incl. iPad portrait) keeps the base single column: the brand
   block sits full-width on top and the link columns span full-width below,
   instead of cramming all 5 columns into a half-width right pane. */
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: clamp(56px, 7vw, 96px);
  }
}

/* Brand block */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 18px);
  max-width: 360px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
}
.footer__logo svg,
.footer__logo img {
  height: 43px;
  width: auto;
  display: block;
}
/* Footer logo: same theme swap as nav (footer flips to light in light mode). */
.footer__logo .logo-img--on-light { display: none; }
[data-theme="light"] .footer__logo .logo-img--on-dark { display: none; }
[data-theme="light"] .footer__logo .logo-img--on-light { display: block; }
.footer__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #FFFFFF;
}
.footer__copy {
  margin: 0;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: rgba(255,255,255,0.66);
  max-width: 36ch;
}
.footer__address {
  font-style: normal;
  font-size: var(--fs-m);
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

/* Link columns */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(32px, 3.5vw, 56px);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__cols {
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  }
}
@media (min-width: 1024px) {
  .footer__cols {
    grid-template-columns: 0.9fr 1.2fr 1.3fr 1.1fr 0.8fr;
  }
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.footer__list a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}
.footer__list a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   BOTTOM ROW - copyright · legal links · social
   ========================================================= */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: clamp(24px, 3vw, 36px);
}

.footer__legal {
  margin: 0;
  font-size: var(--fs-m);
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.01em;
}
.footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}
.footer__legal-links a {
  font-size: var(--fs-m);
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__legal-links a:hover { color: var(--accent); }

/* Social icons */
.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.03);
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.footer__social a svg { width: 16px; height: 16px; display: block; }
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Focus rings */
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer__glow { animation: none !important; }
  .footer__list a,
  .footer__social a { transition: none !important; }
}
