/* =========================================================
   LUMIN TREASURY CONSULTING — site.css (clean consolidated v2)
   Path: /assets/css/site.css
   ========================================================= */

/* ---------- Brand tokens ---------- */
:root {
  --rich-black: #020202;
  --gold-main: #B29343;

  /* force all legacy golds to match */
  --gold-soft: #B29343;
  --gold-light: #B29343;

  --bg-soft: #F8F5EA;
  --bg-light: #FFFFFF;
  --text-main: #111111;
  --text-muted: #4A4A4A;

  --border: #e6dfcf;
  --border-2: #e3e3e3;
  --shadow-soft: 0 6px 24px rgba(0,0,0,0.06);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Basic type rhythm */
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons / links ---------- */
.btn-gold {
  background: var(--gold-main);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.06s ease, opacity 0.2s ease;
}
.btn-gold:active { transform: translateY(1px); }
.btn-gold:hover { opacity: 0.92; }

.btn-outline {
  border-radius: 999px;
  border: 1px solid #d1d1d1;
  padding: 11px 24px;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.btn-outline:hover { opacity: 0.85; }

.nav-link-gold {
  border-radius: 999px;
  padding: 8px 20px;
  background: var(--gold-main);
  color: #ffffff;
  font-weight: 600;
  display: inline-block;
}
.nav-link-ghost {
  border: 1px solid #d7d7d7;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-main);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
.nav {
  border-bottom: 1px solid var(--border-2);
  background: #ffffffee;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
}

/* New wrapper used by updated includes/header.php */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo-main {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rich-black);
  white-space: nowrap;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-main);
  white-space: normal;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  align-items: center;
}
.nav-links a { color: var(--text-main); }
.nav-links a:hover { color: var(--gold-main); }

/* Active nav indicator */
.nav-links a.active {
  color: var(--gold-main);
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold-main);
}

/* Optional CTA link styling (if used in header.php) */
.nav-links a.cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d1d1d1;
}
.nav-links a.cta:hover { opacity: 0.9; }

.menu-toggle {
  display: none;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.sticky-cta { display: none; }

/* ---------- Layout / sections ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 64px;
  padding: 80px 72px 48px;
  background: radial-gradient(circle at top left, var(--bg-soft), #ffffff 55%);
}

/* Ensure sections after hero don’t “inherit” grid oddities */
section { display: block; }

.hero-eyebrow,
.section-eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--gold-main);
  margin-bottom: 12px;
}

.hero h1,
h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--rich-black);
}

.hero-sub,
.sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 0 18px;
  line-height: 1.75;
}

.hero-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 5;
}
.hero-ctas a { position: relative; z-index: 6; pointer-events: auto; }

/* Panels */
.hero-panel,
.panel {
  background: #f3f0e6;
  border-radius: 24px;
  padding: 26px 24px 22px;
  border: 1px solid #e4d6b6;
  line-height: 1.7;
}

.hero-panel-title,
.panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.hero-panel-main,
.panel-main {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--rich-black);
}

.hero-panel-copy,
.panel-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}

/* Section wrapper used across pages */
.section {
  padding: 72px 72px;
}

/* H2 styling — applies everywhere */
h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 0 0 14px;
  color: var(--rich-black);
  line-height: 1.25;
}

@media (max-width: 900px) {
  h2 { font-size: 24px; }
}

.section-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 860px;
  margin-bottom: 30px;
  line-height: 1.75;
}

.section-soft {
  background: #faf7f0;
}

/* ---------- Clients strip ---------- */
.clients-strip {
  padding: 8px 72px 42px;
  border-bottom: 1px solid #eee2c4;
  background: #fdfaf3;
}

.clients-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.4;
}

.clients-logos.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.clients-logos.logos img {
  max-height: 28px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.clients-logos.logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ---------- Grids / cards ---------- */
.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.service-card {
  border-top: 2px solid var(--gold-main);
  padding-top: 16px;
}
.service-card h3 { font-size: 18px; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-list li { margin: 8px 0; }
.service-list li::before { content: "• "; color: var(--gold-main); }

.card,
.pill {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  line-height: 1.7;
}

.pill-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pill p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.75; }

/* ---------- Resources cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.resource-card {
  border-radius: 16px;
  border: 1px solid #e4e4e4;
  padding: 18px 20px 16px;
  background: #ffffff;
}
.resource-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #777;
  margin-bottom: 6px;
}
.resource-card h3 { font-size: 16px; margin: 0 0 6px; }
.resource-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.75; }
.resource-meta { font-size: 12px; color: #999; line-height: 1.4; }

/* ---------- Forms ---------- */
.form-wrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 20px;
  background: #fff;
  max-width: 780px;
}

label { font-size: 13px; display: block; margin-bottom: 4px; }

input, textarea, select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: inherit;
}

textarea { resize: vertical; }

.row { display: flex; flex-wrap: wrap; gap: 14px; }
.col { flex: 1 1 240px; }

.notice {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e4d6b6;
  background: #f3f0e6;
  border-radius: 12px;
  color: #111;
  font-size: 14px;
}

/* ---------- CTA blocks ---------- */
.cta-block,
.cta {
  padding: 56px 72px 52px;
  background: var(--rich-black);
  color: #ffffff;
  text-align: center;
}

.cta-block h2,
.cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin: 0 0 10px;
}

.cta-block p,
.cta p {
  font-size: 14px;
  color: #d4d4d4;
  margin: 0 0 20px;
}

.cta-meta {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999;
}

/* ---------- Footer ---------- */
footer {
  padding: 20px 72px 28px;
  background: #050505;
  color: #aaa;
  font-size: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.footer-email { margin: 6px 0; }
.footer-email a {
  color: #aaa;
  font-weight: 500;
  text-decoration: none;
}
.footer-email a:hover { text-decoration: underline; }

.footer-meta {
  color: #777;
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #aaa;
}
.footer-legal a {
  color: #aaa;
  text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }

.footer-divider { opacity: 0.6; }

/* ---------- Treasury Operating Model – spacing ---------- */
.hero-panel { gap: 26px; }

.hero-panel-copy {
  line-height: 1.7;
  margin-bottom: 14px;
}

.hero-panel p strong,
.hero-panel .metric-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.metric { padding-top: 8px; }

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--rich-black);
  line-height: 1.5;
}

/* ---------- Case Studies hero alignment fix ---------- */
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

.case-hero-left .eyebrow { margin: 0 0 14px; }
.case-hero-left .sub { margin: 0; max-width: 760px; line-height: 1.65; }
.case-hero-right h1 { margin: 0; line-height: 1.2; }

/* About hero: keep text readable on wide screens */
.hero > div { max-width: 980px; }

/* ---------- Engagement note under client logos ---------- */
.engagement-note {
  font-size: 12px;
  color: #777;
  margin: 10px 0 0;
  max-width: 1200px;
}

@media (min-width: 901px) {
  .engagement-note { padding: 0 72px; }
}
@media (max-width: 900px) {
  .engagement-note { padding: 0 20px; }
}

/* =========================================================
   Post Go-Live Advisory – stable, minimal fixes (scoped)
   ========================================================= */

/* Slightly tighten vertical rhythm inside the advisory section only */
.post-go-live-advisory .section-intro { margin-bottom: 18px; }
.post-go-live-advisory p { margin-bottom: 14px; }
.post-go-live-advisory ul { margin: 12px 0 18px 22px; }
.post-go-live-advisory li { margin: 0 0 10px; line-height: 1.6; }

/* Optional: ensure this hero doesn't create excess bottom whitespace */
.hero[aria-labelledby="post-hero-heading"] {
  padding-bottom: 48px;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px) {

  .nav-inner { padding: 14px 20px; align-items: flex-start; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-2);
    padding: 14px 20px;
    flex-direction: column;
    gap: 14px;
    z-index: 50;
  }
  .nav-links.open { display: flex; }

  .logo { flex: 1 1 auto; min-width: 0; }
  .logo-main { font-size: 22px; letter-spacing: 0.10em; white-space: nowrap; }
  .logo-sub {
    font-size: 10px;
    letter-spacing: 0.06em;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .hero { grid-template-columns: 1fr; padding: 52px 20px 32px; }
  .clients-strip { padding: 10px 20px 32px; }
  .section { padding: 52px 20px; }

  .columns-3,
  .pill-grid,
  .resource-grid,
  .grid-2 { grid-template-columns: 1fr; }

  .cta-block,
  .cta { padding: 44px 20px 38px; }

  footer { padding: 18px 20px 24px; }

  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    z-index: 30;
  }
  .sticky-cta a { font-size: 13px; padding: 9px 18px; }

  /* Mobile type rhythm */
  body { line-height: 1.65; }
  p { margin: 0 0 12px; }
}
/* === Force consistent primary gold buttons === */
.btn-gold,
.nav-link-gold,
a.btn-gold,
a.nav-link-gold {
  background-color: var(--gold-main) !important;
  color: #ffffff !important;
}

.btn-gold:hover,
.nav-link-gold:hover {
  opacity: 0.92;
}
