/* ==========================================================================
   TAILWINDS WEALTH -- SHARED SITE-WIDE STYLES
   Extracted from the per-page inline <style> blocks. Contains only CSS that
   is identical across pages: reset, CSS variables, nav bar, mega menu, slide
   popup, footer, contact-form component, and CTA-section component.
   ========================================================================== */

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--cream); color: var(--dark); line-height: 1.6; overflow-x: hidden; padding-top: 62px; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

/* --- CSS VARIABLES --- */
:root {
  --cream: #f2f2f0;
  --cream-light: #eae9e6;
  --bronze: #a0591f;
  --bronze-light: #b8692a;
  --dark: #1a1a1a;
  --dark-bg: #181818;
  --text: #4a4a4a;
  --text-light: #757575;
  --sage: #5b7b7d;
  --sage-light: #bdcacb;
  --sans: 'Inter', -apple-system, sans-serif;
  --content-width: 1800px;
  --side-pad: max(48px, calc((100vw - var(--content-width) + 96px) / 2));
}

/* --- SCROLL REVEAL ANIMATIONS --- */
/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }
.reveal-d4 { transition-delay: 0.6s; }

/* --- NAV BAR --- */
nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; max-width: 1800px; margin: 0 auto; padding: 0 48px; min-height: 62px;
}
/* ─── NAV BAR (Coverly-style) ─── */
.nav-wrapper { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; width: 100%; background: var(--cream); border-bottom: 1px solid rgba(0,0,0,0.08); }
.menu-toggle {
  justify-self: start; display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 15px; font-weight: 400; color: var(--dark); padding: 8px 0;
}
#menuLabel { display: inline-block; min-width: 42px; transition: opacity 0.2s ease, transform 0.2s ease; }
#menuLabel.fading { opacity: 0; }
.menu-toggle .dot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px; }
.menu-toggle .dot-grid span { display: block; width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--dark); transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.menu-toggle.active .dot-grid span { transform: translate(1.25px, 3.75px); opacity: 0; }
.menu-toggle.active .dot-grid span:nth-child(4) { opacity: 1; transform: translate(-1.25px, 1.25px); }
.nav-logo-center { justify-self: center; text-decoration: none; display: flex; align-items: center; }
.nav-logo-center img { height: 33px; width: auto; display: block; }
.nav-cta-wrap { justify-self: end; }
.nav-cta {
  display: inline-block; background: var(--dark); color: #fff; padding: 8px 20px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 4px;
  position: relative; overflow: hidden; perspective: 600px;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta span {
  display: inline-block;
  transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}
.nav-cta::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotateX(90deg); transform-origin: center top;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.nav-cta:hover { background: var(--bronze); }
.nav-cta:hover span {
  transform: rotateX(-90deg); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.nav-cta:hover::after {
  transform: rotateX(0deg); opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}
.nav-cta-bronze { background: var(--bronze); }
.nav-cta-bronze:hover { background: var(--dark); }
/* ─── Nav Disclosures link underline ─── */
.nav-disc { position: relative; opacity: 0.6; transition: opacity 0.3s; }
.nav-disc:hover { opacity: 1; }
.nav-disc span { position: relative; display: inline-block; }
.nav-disc span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-disc:hover span::after { transform: scaleX(1); }

/* --- MENU OVERLAY --- */
/* ─── MENU OVERLAY ─── */
.menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* --- MEGA MENU --- */
/* ─── MEGA MENU ─── */
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transform: perspective(800px) rotateX(-90deg); transform-origin: top center; opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
}
.mega-menu.open { transform: perspective(800px) rotateX(0deg); opacity: 1; }
.mega-menu.closing {
  transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}
.mega-menu.closing .mega-menu-inner { transition: opacity 0.1s ease; }
.mega-menu-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr 1.4fr;
  gap: 0; padding: 32px 48px 36px; align-items: start;
  max-width: 1800px; margin: 0 auto;
  opacity: 0;
  transition: opacity 0.35s ease 0.2s;
}
.mega-menu.open .mega-menu-inner { opacity: 1; }
.mega-col-title {
  display: block; font-family: var(--sans); font-size: 16px; font-weight: 400;
  color: var(--dark); margin-bottom: 18px; letter-spacing: -0.01em;
}
.mega-col a {
  display: block; width: fit-content; font-family: var(--sans); font-size: 15px; font-weight: 400;
  color: var(--text); text-decoration: none; padding: 7px 0;
  opacity: 0.6; transition: opacity 0.3s; white-space: nowrap;
  position: relative;
}
.mega-col a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 5px;
  height: 1.5px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mega-col a:hover { opacity: 1; }
.mega-col a:link, .mega-col a:visited { color: var(--text); text-decoration: none; }
.mega-col a:hover::after { transform: scaleX(1); }
.mega-col-noheader { padding-top: 34px; }
.mega-menu-image {
  border-radius: 4px; overflow: hidden; max-height: 160px;
  margin-left: 20px;
}
.mega-menu-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-img-label {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: #fff; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 3px; transition: background 0.3s;
}
.mega-menu-image:hover .mega-img-label { background: var(--bronze); }

/* --- SLIDE-IN POPUP --- */
/* ─── SLIDE-IN POPUP ─── */
.slide-popup {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  background: var(--cream); border-radius: 4px; border: 1px solid var(--dark);
  max-width: 520px; width: 100%;
  display: flex; overflow: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.slide-popup.visible { transform: translateX(0); }
.slide-popup-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: rgba(26,26,26,0.35);
  font-size: 22px; cursor: pointer; font-family: var(--sans); font-weight: 200;
  line-height: 1; padding: 4px; transition: color 0.2s; z-index: 1;
}
.slide-popup-close:hover { color: var(--dark); }
.slide-popup-img {
  flex: 0 0 200px; overflow: hidden;
}
.slide-popup-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.slide-popup-content {
  flex: 1; padding: 28px 28px 28px 24px; display: flex; flex-direction: column; justify-content: center;
}
.slide-popup-label {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--bronze);
}
.slide-popup-heading {
  font-family: var(--sans); font-size: 22px; font-weight: 400;
  color: var(--bronze); line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.02em;
}
.slide-popup-desc {
  font-family: var(--sans); font-size: 13px; color: var(--text);
  line-height: 1.6; margin: 0 0 16px;
}
.slide-popup-btn {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--dark); background: none; padding: 8px 16px; position: relative; overflow: hidden; perspective: 600px;
  border-radius: 4px; border: 1px solid var(--dark); text-decoration: none;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s; align-self: flex-start;
}
.slide-popup-btn span {
  display: inline-block;
  transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}
.slide-popup-btn::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotateX(90deg); transform-origin: center top;
  opacity: 0; color: #fff;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.slide-popup-btn:hover { background: var(--dark); color: #fff; }
.slide-popup-btn:hover span {
  transform: rotateX(-90deg); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.slide-popup-btn:hover::after {
  transform: rotateX(0deg); opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}

/* --- FOOTER --- */
/* ─── FOOTER ─── */
footer {
  background: var(--dark-bg); color: #fff;
  padding: 80px var(--side-pad) 0;
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px;
}
.footer-brand { padding-right: 24px; }
.footer-logo { margin-bottom: 32px; }
.footer-disclaimer {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.4); line-height: 1.7;
}
.footer-col { padding-top: 84px; }
.footer-col-title {
  font-family: var(--sans); font-size: 14px; font-weight: 450;
  color: #fff; margin-bottom: 20px; display: block; letter-spacing: -0.01em;
}
.footer-col a {
  display: block; width: fit-content; font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 12px;
  transition: color 0.3s; position: relative;
}
.footer-col a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 1px;
  height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-col:last-child { text-align: right; }
.footer-col:last-child a { margin-left: auto; }
.footer-bottom {
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 32px; }
.footer-bottom-links a, .footer-bottom a {
  font-size: 11px; color: rgba(255,255,255,0.35); text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover, .footer-bottom a:hover { color: var(--bronze); }

/* --- CONTACT FORM COMPONENT --- */
/* ─── FORM FIELDS ─── */
.contact-form { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.field-group { margin-bottom: 32px; width: 100%; }
.field-label {
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  color: var(--dark); display: block; margin-bottom: 12px;
}
.form-input {
  width: 100%; padding: 12px 0;
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  color: var(--dark); background: transparent;
  border: none; border-bottom: 1px solid rgba(0,0,0,0.15);
  outline: none; transition: border-color 0.3s; appearance: none;
}
.form-input::placeholder { color: transparent; }
.form-input:focus { border-bottom-color: var(--bronze); }
textarea.form-input { min-height: 80px; resize: vertical; }
.form-disclosure {
  font-family: var(--sans); font-size: 11px; color: var(--text-light);
  line-height: 1.5; margin-top: -16px; margin-bottom: 32px; width: 100%;
}
.form-disclosure a { color: var(--text-light); text-decoration: underline; text-underline-offset: 2px; }
.form-disclosure a:hover { color: var(--bronze); }
.btn-submit {
  display: inline-block; padding: 14px 32px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: #fff; background: var(--dark); border: none; border-radius: 4px;
  cursor: pointer; position: relative; overflow: hidden; z-index: 1;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 600px; letter-spacing: 0.02em;
}
.btn-submit span {
  display: inline-block; transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}
.btn-submit::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotateX(90deg); transform-origin: center top;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.btn-submit:hover { background: var(--bronze); }
.btn-submit:hover span {
  transform: rotateX(-90deg); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.btn-submit:hover::after {
  transform: rotateX(0deg); opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}

/* --- CTA SECTION COMPONENT --- */
/* ─── CTA SECTION ─── */
.cta-section {
  position: relative;
  padding: 100px var(--side-pad);
  background: var(--dark-bg);
  overflow: hidden;
}
.cta-bg-photo {
  position: absolute; top: 0; left: 0; width: 55%; height: 100%;
}
.cta-bg-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cta-bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(24,24,24,0.2) 0%, rgba(24,24,24,0.6) 50%, var(--dark-bg) 100%);
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.cta-primary .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: #fff;
  margin-bottom: 20px; display: block;
}
.cta-primary h3 {
  font-family: var(--sans); font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300; letter-spacing: -0.03em; color: #fff;
  line-height: 1.2; margin-bottom: 16px;
}
.cta-primary p {
  font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,0.85);
  line-height: 1.7; margin-bottom: 32px; max-width: 420px;
}
.cta-btn {
  display: inline-block; padding: 12px 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  text-decoration: none; border-radius: 4px;
  position: relative; overflow: hidden; perspective: 600px;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bronze); color: #fff; border: none;
}
.cta-btn span {
  display: inline-block; transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s;
}
.cta-btn::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transform: rotateX(90deg); transform-origin: center top;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.cta-btn:hover { background: #fff; color: var(--dark); }
.cta-btn:hover::after { color: var(--dark); transform: rotateX(0deg); opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s 0.1s; }
.cta-btn:hover span { transform: rotateX(-90deg); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s; }
.cta-secondary {
  display: flex; flex-direction: column; gap: 0;
}
.cta-secondary .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px; display: block;
}
.cta-nav-link {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.cta-nav-link:hover { border-bottom-color: var(--bronze); }
.cta-nav-link .link-title {
  font-family: var(--sans); font-size: 18px; font-weight: 300; color: #fff;
  transition: color 0.3s;
}
.cta-nav-link .link-desc {
  font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* --- RESPONSIVE: 768px --- */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 24px; min-height: 56px; }
  .nav-logo-center img { height: 28px; }
  .nav-disc { display: none; }
  nav .nav-cta { padding: 7px 14px; font-size: 11px; }
  .mega-menu-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 24px 40px; }
  .mega-col-title { font-size: 18px; margin-bottom: 14px; }
  .mega-col a { font-size: 17px; padding: 7px 0; }
  .mega-menu-image { margin-left: 0 !important; max-height: 180px; }
  .mega-menu.open { overflow-y: auto; height: calc(100vh - 56px); max-height: none; }
  .slide-popup.visible { transform: translateY(0); }
  .slide-popup-img { display: none; }
  .slide-popup-content { padding: 16px; }
  .slide-popup-heading { font-size: 17px; }
  .slide-popup-desc { font-size: 12px; }
  .slide-popup-btn { font-size: 11px; padding: 6px 14px; }
  /* Eyebrows smaller */
  /* Popup */
  .slide-popup { bottom: 24px; right: 24px; left: 24px; max-width: none; width: auto; transform: translateY(calc(100% + 24px)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-col { padding-top: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0 32px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px 24px; }
  .footer-col:last-child { text-align: left; }
  .footer-col:last-child a { margin-left: 0; }
  .footer-logo svg { height: 36px !important; }
  /* Footer */
  footer { padding: 48px 24px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-section { padding: 0; }
  .cta-bg-photo { width: 100%; height: 60%; }
  .cta-bg-photo::after {
    background: linear-gradient(to bottom, rgba(24,24,24,0.05) 0%, rgba(24,24,24,0.4) 50%, var(--dark-bg) 95%);
  }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 60px; }
  .cta-secondary { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
  .cta-primary h3 { font-size: 32px; }
  .hero-label,
  .section-label,
  .reality-label,
  .serve-eyebrow,
  .decisions-label,
  .edu-first-label,
  .topics-label,
  .eyebrow,
  .label,
  .event-hero-label,
  .cta-primary .eyebrow,
  .cta-secondary .eyebrow {
    font-size: 9px !important; font-weight: 600 !important; letter-spacing: 2.5px !important;
        display: inline-block;
  }
  body { line-height: 1.55; }
  section { overflow: hidden; }
}

/* --- RESPONSIVE: 480px --- */
@media (max-width: 480px) {
  .nav-cta-wrap { display: none !important; }
  .nav-disc-mobile { display: inline-block !important; grid-column: 3; grid-row: 1; justify-self: end; }
  .mega-menu-inner { grid-template-columns: 1fr; gap: 24px; }
}
