/* ============================================================
   SHARED CHROME — FOOTER + BRAND LOGO
   Loaded on every page after _tokens.css.
   ============================================================ */

/* Brand logo (header + footer) — source PNGs are the ~4.9:1 horizontal
   "W." lockup, so heights are tuned lower than a 3:1 mark and stepped
   down on phones to keep the wide lockup clear of the menu controls. */
.site-header .site-brand__logo { height: 36px; width: auto; display: block; }
.menu-panel__brand-logo { height: 32px; width: auto; display: block; }
@media (max-width: 640px) { .site-header .site-brand__logo { height: 30px; } }
@media (max-width: 360px) { .menu-panel__brand-logo { height: 30px; } }

/* ============================================================
   SHARED CLOSING SECTION (.pillars-close)
   Used as the final pre-footer CTA on every page.
   Each page sets its own --close-bg image via inline style.
   ============================================================ */
.pillars-close {
  position: relative; overflow: hidden;
  background: var(--color-navy); color: var(--color-cream);
  padding-block: clamp(6rem, 12vw, 10rem);
  background-image: var(--close-bg, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* iOS Safari doesn't honor background-attachment: fixed reliably, and the
   parallax effect is jittery for motion-sensitive users. Fall back to a
   normal scroll-attached background in both cases. */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .pillars-close { background-attachment: scroll; }
}
.pillars-close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,19,32,0.58) 0%, rgba(8,19,32,0.74) 100%),
    radial-gradient(circle at 25% 30%, rgba(201,168,98,0.10) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(201,168,98,0.06) 0%, transparent 45%);
}
.pillars-close__inner {
  position: relative; z-index: 1;
  text-align: center; display: grid; gap: 1.5rem;
  max-width: 760px; margin-inline: auto;
}
.pillars-close .pillars-close__eyebrow { color: var(--color-gold) !important; justify-self: center; }
.pillars-close .pillars-close__headline { color: var(--color-cream) !important; font-weight: 400; margin: 0; }
.pillars-close .pillars-close__headline em { font-style: italic; color: var(--color-gold) !important; }
.pillars-close .pillars-close__lede { color: rgba(250,247,241,0.85) !important; margin: 0 auto; max-width: 56ch; }
.pillars-close__actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2rem;
}
.pillars-close__actions .btn--gold,
.pillars-close__actions .btn--primary {
  background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy);
}
.pillars-close__actions .btn--gold:hover,
.pillars-close__actions .btn--primary:hover {
  background: var(--color-gold-light); border-color: var(--color-gold-light);
}
.pillars-close__actions .btn--secondary {
  color: var(--color-cream); border-color: rgba(250,247,241,0.4);
}
.pillars-close__actions .btn--secondary:hover {
  background: var(--color-cream); color: var(--color-navy); border-color: var(--color-cream);
}
/* iOS Safari does not support background-attachment: fixed reliably */
@media (max-width: 900px) {
  .pillars-close { background-attachment: scroll; }
}

/* Footer base */
.site-footer { background: var(--color-navy); color: var(--color-cream); }
.site-footer a { text-decoration: none; }

/* CTA band */
.site-footer__cta {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  border-bottom: 1px solid rgba(250,247,241,0.1);
}
.footer-cta {
  display: grid; gap: 1.5rem;
  text-align: center;
  max-width: 720px; margin-inline: auto;
}
.footer-cta .eyebrow { color: var(--color-gold-light); justify-self: center; }
.footer-cta__headline { color: var(--color-cream); font-weight: 400; }
.footer-cta__sub {
  font-size: var(--fs-body-sm);
  color: rgba(250,247,241,0.65);
  margin: 0 auto;
  max-width: 52ch;
}
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 0.5rem; }
.footer-cta__actions .btn--primary { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.footer-cta__actions .btn--primary:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); }
.footer-cta__actions .btn--secondary { color: var(--color-cream); border-color: rgba(250,247,241,0.4); }
.footer-cta__actions .btn--secondary:hover { background: var(--color-cream); color: var(--color-navy); border-color: var(--color-cream); }

/* Main grid */
.site-footer__main { padding-block: clamp(3.5rem, 6vw, 5rem); border-bottom: 1px solid rgba(250,247,241,0.08); }
.footer-contact-row {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,247,241,0.08);
}
@media (min-width: 640px) {
  .footer-contact-row { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
.footer-contact-block { display: grid; gap: 0.3rem; }
.footer-contact-block__label {
  font-size: var(--fs-caption); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--color-gold-light); font-weight: 500;
}
.footer-contact-block__value {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--color-cream); letter-spacing: var(--tracking-tight);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-contact-block__value:hover { color: var(--color-gold-light); }

.footer-main-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 640px)  { .footer-main-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; } }
@media (min-width: 1024px) { .footer-main-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand-col .site-brand--footer { color: var(--color-cream); margin-bottom: 1.25rem; display: inline-block; }
.site-brand--footer .site-brand__divider { background: rgba(250,247,241,0.2); }
.site-brand--footer .site-brand__name { color: rgba(250,247,241,0.55); }
.site-brand--footer .site-brand__logo { height: 48px; width: auto; }
@media (max-width: 640px) { .site-brand--footer .site-brand__logo { height: 38px; } }
.footer-brand-col__tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.75rem; line-height: 1.35;
  color: rgba(250,247,241,0.92); margin: 0 0 1.5rem; max-width: 22ch;
  letter-spacing: var(--tracking-tight);
}
.footer-brand-col__address {
  font-size: 1rem; color: rgba(250,247,241,0.7); line-height: 1.65; margin: 0;
}
.footer-col__heading {
  font-size: var(--fs-caption); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--color-gold-light);
  margin: 0 0 1.25rem; font-weight: 500;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-list a {
  color: rgba(250,247,241,0.75); font-size: var(--fs-body-sm);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-list a:hover { color: var(--color-gold-light); }

/* Legal */
.site-footer__legal { padding-block: 2.5rem; background: var(--color-navy-deep); }
.legal-block { display: grid; gap: 0.875rem; font-size: var(--fs-micro); line-height: 1.65; color: rgba(250,247,241,0.5); }
.legal-block a { color: rgba(250,247,241,0.72); border-bottom: 1px solid rgba(250,247,241,0.2); }
.legal-block a:hover { color: var(--color-gold-light); }
.legal-block__lead { font-size: var(--fs-caption); color: rgba(250,247,241,0.7); }
/* Required LPL Relationship Summary (Form CRS) link — kept prominent above the fine print. */
.legal-block__crs { margin: 0 0 0.375rem; }
.legal-block__crs a {
  display: inline-block; font-size: var(--fs-caption); font-weight: 600;
  letter-spacing: 0.02em; color: var(--color-gold-light);
  border-bottom: 1px solid rgba(201,168,98,0.55); padding-bottom: 3px;
}
.legal-block__crs a:hover { color: var(--color-cream); border-bottom-color: var(--color-cream); }
.legal-block__copyright {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(250,247,241,0.08);
  color: rgba(250,247,241,0.42);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
}
.legal-block__copyright-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.legal-block__copyright-links a { border-bottom: 0; }
