/* ==========================================================================
   Footer — The Sri COM
   --------------------------------------------------------------------------
   Replaces the legacy three-column footer with a four-column editorial grid:
   brand + blurb + subscribe CTA, Explore, Topics, Follow us.

   Loads after footer-polish.css and footer-social.css and owns all footer
   LAYOUT; footer-social.css owns only the icon buttons.
   ========================================================================== */

.site-footer {
  --f-line: rgba(180, 204, 237, .16);
  --f-muted: #9db0c9;
  --f-text: #dfe8f7;
  --f-label: #8ea2bd;
  --f-brand: #2475e8;
  padding-top: 60px;
}

html[data-theme="light"] .site-footer {
  --f-line: #dbe3ef;
  --f-muted: #5b6f89;
  --f-text: #1d2f4a;
  --f-label: #60738b;
}

/* --- Grid ----------------------------------------------------------------- */

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(96px, .55fr) minmax(96px, .55fr) minmax(190px, .9fr);
  align-items: start;
  gap: 44px;
  padding-bottom: 46px;
}

/* --- Brand column --------------------------------------------------------- */

.footer-about p {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--f-muted);
  font-size: .85rem;
  line-height: 1.62;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--f-brand);
  color: #fff;
  font-size: .79rem;
  font-weight: 600;
}

.footer-cta:hover {
  background: #1b62cb;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Link columns --------------------------------------------------------- */

.footer-label {
  margin: 2px 0 15px;
  color: var(--f-label);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

html[data-theme] .footer-links a {
  color: var(--f-text);
  font-size: .82rem;
  line-height: 1.3;
}

html[data-theme] .footer-links a:hover { color: var(--f-brand); }

/* --- Bottom bar ----------------------------------------------------------- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--f-line);
}

.footer-bottom small {
  color: var(--f-muted);
  font-size: .74rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

html[data-theme] .footer-bottom-links a {
  color: var(--f-muted);
  font-size: .74rem;
}

html[data-theme] .footer-bottom-links a:hover { color: var(--f-brand); }

/* --- Tablet --------------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px 32px;
  }

  .footer-about { grid-column: 1 / -1; }
}

/* --- Phone ---------------------------------------------------------------- */

@media (max-width: 620px) {
  .site-footer { padding-top: 44px; }

  /* screen.css hides .brand span below 620px, which was leaving the footer
     with a bare logo circle and no wordmark. The header re-enables its own;
     do the same for the footer. */
  .site-footer .brand span { display: inline; }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px 24px;
    padding-bottom: 34px;
  }

  .footer-about p { max-width: none; }

  .footer-social { grid-column: 1 / -1; }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta:hover { transform: none; }
}
