/**
 * Sanjal Enterprises — Site footer
 * Matches homepage foot-grid language (mono gold h5, hairlines, teal hover).
 * Home keeps token overrides via body.home in home.css; this file covers all pages.
 */

.site-footer {
  padding: 70px 32px 30px;
  border-top: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  background: var(--surface-2, #EEF1F6);
  color: var(--color-text, rgba(10, 20, 40, 0.84));
}

.site-footer .wrap {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  position: relative;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--color-signal-teal, var(--accent, #0B948C));
  text-decoration: none;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 54px;
}

.site-footer .foot-grid h5 {
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brass-gold, var(--gold, #8A6818));
  margin: 0 0 18px;
  font-weight: 600;
}

.site-footer .foot-grid li {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--color-text, rgba(10, 20, 40, 0.84));
  font-weight: 500;
  font-family: var(--font-body, 'IBM Plex Sans', system-ui, sans-serif);
  line-height: 1.45;
}

.site-footer .foot-grid li a:hover {
  color: var(--color-signal-teal, var(--accent, #0B948C));
}

.site-footer .logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  line-height: 0;
}

.site-footer .logo .brand-logo img {
  height: 34px;
  width: auto;
  max-width: min(180px, 70vw);
}

/* Footer is always on a light surface — never show the light lockup */
.site-footer .logo .brand-logo .brand-logo__light {
  display: none;
}

.site-footer .foot-brand {
  max-width: 300px;
}

.site-footer .foot-brand .foot-tagline {
  font-size: 13px;
  color: var(--color-text, rgba(10, 20, 40, 0.84));
  margin: 0 0 10px;
  line-height: 1.5;
  font-weight: 600;
}

.site-footer .foot-brand .foot-lede {
  font-size: 13px;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
}

.site-footer .foot-nap,
.site-footer .foot-contact .foot-nap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .foot-nap li,
.site-footer .foot-contact .foot-nap li {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
}

.site-footer .foot-nap a,
.site-footer .foot-contact .foot-nap a {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.site-footer .foot-nap a:hover,
.site-footer .foot-contact .foot-nap a:hover {
  color: var(--color-signal-teal, var(--accent, #0B948C));
}

/* Newsletter strip — shared by .site-footer and homepage <footer> */
.foot-newsletter {
  border-top: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  padding-top: 28px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px 32px;
  align-items: end;
}

.foot-newsletter h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-family: var(--font-body, 'IBM Plex Sans', system-ui, sans-serif);
  font-weight: 600;
  color: var(--color-navy, #0A1428);
}

.foot-newsletter .card-muted {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.7));
  line-height: 1.5;
  max-width: 36ch;
}

.foot-newsletter .newsletter-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.foot-newsletter .newsletter-form-row .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
  gap: 4px;
}

.foot-newsletter .newsletter-form-row input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.18));
  border-radius: var(--radius-sm, 6px);
  background: var(--surface-1, #fff);
  color: var(--color-text, rgba(10, 20, 40, 0.84));
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.foot-newsletter .newsletter-form-row input[type="email"]:hover {
  border-color: rgba(10, 20, 40, 0.28);
}

.foot-newsletter .newsletter-form-row input[type="email"]:focus,
.foot-newsletter .newsletter-form-row input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-signal-teal, #0B948C);
  box-shadow: 0 0 0 3px rgba(11, 148, 140, 0.2);
}

.foot-newsletter .newsletter-form-row .form-actions--inline {
  align-self: flex-start;
}

.foot-newsletter .newsletter-form-row .btn {
  flex-shrink: 0;
  align-self: flex-start;
  min-height: 48px;
  min-width: 7.5rem;
}

.foot-newsletter .form-status {
  margin-bottom: 10px;
}

.site-footer .foot-bottom {
  border-top: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-weight: 500;
}

@media (max-width: 900px) {
  .site-footer .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .foot-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .foot-newsletter {
    grid-template-columns: 1fr;
  }

  .foot-newsletter .newsletter-form-row {
    flex-direction: column;
  }

  .foot-newsletter .newsletter-form-row .form-group,
  .foot-newsletter .newsletter-form-row .form-actions--inline,
  .foot-newsletter .newsletter-form-row .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 56px 20px 24px;
  }

  .site-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }
}
