/* ============================================================
   WealthEQ — pages.css
   Additive styles for multi-page architecture.
   Depends on css/styles.css (uses its :root variables).
   No JS dependency: all content paints visible.
   ============================================================ */

/* --- Page hero (clears fixed nav) --- */
.page-hero {
  background: linear-gradient(145deg, var(--charcoal) 0%, var(--slate) 55%, var(--charcoal) 100%);
  padding: clamp(120px, 16vw, 180px) clamp(20px, 5vw, 80px) clamp(48px, 7vw, 80px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(201,168,76,0.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,168,76,0.4) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.04;
}
.page-hero .section-container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(30px, 5vw, 56px); line-height: 1.12;
  color: var(--white); margin: 0 0 20px;
}
.page-hero h1 .gold { color: var(--gold); font-style: italic; }
.page-lede {
  font-family: var(--ff-body); font-weight: 300;
  font-size: clamp(15px, 1.7vw, 19px); line-height: 1.75;
  color: var(--body); max-width: 780px; margin: 0 0 26px;
}
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-family: var(--ff-body); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 18px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { opacity: 0.5; margin: 0 8px; }

/* --- Answer-first block (who / what / why) --- */
.answer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.15); margin-bottom: 8px;
}
.answer-block { background: var(--charcoal); padding: 30px 28px; }
.answer-block h2 {
  font-family: var(--ff-body); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.answer-block p {
  font-family: var(--ff-body); font-size: 15px; font-weight: 300;
  line-height: 1.7; color: var(--body); margin: 0 0 10px;
}
.answer-block p:last-child { margin-bottom: 0; }
.answer-block ul { margin: 0; padding-left: 18px; }
.answer-block li {
  font-family: var(--ff-body); font-size: 14px; font-weight: 300;
  line-height: 1.65; color: var(--body); margin-bottom: 7px;
}
.answer-block li::marker { color: var(--gold); }

/* --- Prose --- */
.prose { max-width: 820px; }
.prose h2 {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(22px, 3vw, 32px); color: var(--white);
  margin: 44px 0 16px; line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin: 30px 0 12px;
}
.prose p {
  font-family: var(--ff-body); font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300; line-height: 1.8; color: var(--body); margin: 0 0 16px;
}
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; }
.prose li {
  font-family: var(--ff-body); font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300; line-height: 1.75; color: var(--body); margin-bottom: 9px;
}
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--off-white); font-weight: 500; }
.prose a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.35); }
.prose a:hover { color: var(--gold-light); }

/* --- Data table (fees) --- */
.data-table-wrap { overflow-x: auto; margin: 22px 0 12px; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--slate);
}
.data-table caption {
  font-family: var(--ff-body); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  text-align: left; padding: 0 0 12px;
}
.data-table th, .data-table td {
  font-family: var(--ff-body); font-size: 14px; font-weight: 300;
  color: var(--body); text-align: left; padding: 14px 18px;
  border-bottom: 1px solid rgba(138, 146, 153, 0.15);
}
.data-table thead th {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  background: var(--deep); border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.num { font-variant-numeric: tabular-nums; color: var(--white); }
.data-table tfoot td {
  font-size: 12px; color: var(--slate-light); background: var(--deep);
}
.table-note {
  font-family: var(--ff-body); font-size: 12px; font-weight: 300;
  line-height: 1.65; color: var(--slate-light); margin: 10px 0 0;
}

/* --- Callout --- */
.callout {
  border-left: 2px solid var(--gold); background: rgba(201, 168, 76, 0.05);
  padding: 22px 26px; margin: 26px 0;
}
.callout h3 {
  font-family: var(--ff-body); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.callout p {
  font-family: var(--ff-body); font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--body); margin: 0 0 10px;
}
.callout p:last-child { margin-bottom: 0; }

/* --- PLACEHOLDER MARKER — must be zero on a published page --- */
.tbd {
  background: #ff00a0; color: #fff; font-weight: 600;
  padding: 1px 7px; letter-spacing: 0.5px;
}

/* --- FAQ --- */
.faq-list { max-width: 900px; border-top: 1px solid rgba(201, 168, 76, 0.15); }
.faq-item { border-bottom: 1px solid rgba(201, 168, 76, 0.15); padding: 26px 0; }
.faq-item h3 {
  font-family: var(--ff-heading); font-size: clamp(17px, 2vw, 21px);
  font-weight: 600; color: var(--white); margin: 0 0 12px; line-height: 1.35;
}
.faq-item p {
  font-family: var(--ff-body); font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300; line-height: 1.8; color: var(--body); margin: 0 0 12px;
}
.faq-item p:last-child { margin-bottom: 0; }
.faq-item a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.35); }

/* --- Related links --- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.related a {
  display: block; background: var(--slate); padding: 22px 24px;
  text-decoration: none; border: 1px solid transparent; transition: all 0.3s;
}
.related a:hover { border-color: rgba(201, 168, 76, 0.35); transform: translateY(-2px); }
.related-label {
  font-family: var(--ff-body); font-size: 9px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.related-title {
  font-family: var(--ff-heading); font-size: 17px; font-weight: 600;
  color: var(--white); display: block; line-height: 1.35;
}

/* --- Bio layout --- */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.bio-photo { width: 100%; height: auto; display: block; border: 1px solid rgba(201, 168, 76, 0.2); }
.bio-creds { margin-top: 20px; }
.bio-cred {
  display: block; font-family: var(--ff-body); font-size: 11px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--body); padding: 9px 0; border-bottom: 1px solid rgba(138, 146, 153, 0.15);
}
.bio-cred:last-child { border-bottom: none; }
.bio-cred span { color: var(--gold); }

/* --- CTA strip --- */
.cta-strip {
  background: var(--deep); border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 80px); text-align: center;
}
.cta-strip h2 {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px); color: var(--white); margin: 0 0 14px;
}
.cta-strip p {
  font-family: var(--ff-body); font-size: 15px; font-weight: 300;
  line-height: 1.75; color: var(--body); max-width: 620px; margin: 0 auto 26px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Disclosure --- */
.page-disclosure {
  max-width: 1200px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 80px) 0;
}
.page-disclosure p {
  font-family: var(--ff-body); font-size: 11px; font-weight: 300;
  line-height: 1.7; color: var(--slate-light); margin: 0 0 8px;
}

/* --- CSS-only entrance (no JS, no blank-content risk) --- */
.fade-up { animation: weqFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-up-2 { animation-delay: 0.08s; }
.fade-up-3 { animation-delay: 0.16s; }
@keyframes weqFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .answer-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo { max-width: 280px; }
}
@media (max-width: 600px) {
  .page-hero { padding-top: 110px; }
  .answer-block { padding: 24px 22px; }
  .data-table th, .data-table td { padding: 12px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}

/* ============================================================
   Services dropdown — desktop + mobile
   Requires /js/nav.js
   ============================================================ */

/* --- Desktop --- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; gap: 5px; }

/* Services itself is a real link: it navigates to the services section. */
.nav-dropdown > .nav-link { white-space: nowrap; }

/* Caret is a separate control that only opens the menu.
   NOTE: never use `font: inherit` here — the shorthand resets font-size and
   overrides .nav-link's 9px, which made "Services" render oversized. */
.nav-caret-btn {
  background: none; border: none; cursor: pointer; padding: 6px 2px;
  line-height: 1; color: var(--slate-light);
  font-family: var(--ff-body); font-size: 8px;
  transition: color 0.3s, transform 0.25s ease;
}
.nav-caret-btn:hover, .nav-dropdown.open .nav-caret-btn { color: var(--gold); }
.nav-dropdown.open .nav-caret-btn { transform: rotate(180deg); }
.nav-caret-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  min-width: 210px; background: var(--charcoal);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 8px 0; z-index: 1200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
/* hover bridge so the gap between trigger and menu doesn't close it */
.nav-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0;
  width: 100%; height: 16px;
}
.nav-dropdown-menu a {
  display: block; padding: 11px 20px;
  font-family: var(--ff-body); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--body); text-decoration: none;
  white-space: nowrap; transition: all 0.2s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--gold); background: rgba(201, 168, 76, 0.07);
  padding-left: 26px; outline: none;
}

/* 10 nav items need tighter gaps just above the mobile breakpoint */
@media (min-width: 1081px) and (max-width: 1320px) {
  .nav-desktop { gap: 13px; }
}

/* --- Mobile --- */
.mobile-dropdown-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.mobile-caret-btn {
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--slate-light); font-family: var(--ff-body); font-size: 11px;
  line-height: 1; transition: color 0.3s, transform 0.25s ease;
}
.mobile-caret-btn.open { transform: rotate(180deg); color: var(--gold); }
.mobile-caret-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.mobile-dropdown-menu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0; width: 100%; text-align: center;
}
.mobile-dropdown-menu.open { max-height: 260px; opacity: 1; }
.mobile-sublink {
  display: block; font-family: var(--ff-body);
  font-size: 13px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--slate-light);
  text-decoration: none; padding: 10px 0;
}
.mobile-sublink:hover, .mobile-sublink:focus-visible { color: var(--gold); outline: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu, .mobile-dropdown-menu, .nav-caret-btn, .mobile-caret-btn { transition: none; }
}
