/* ─────────────────────────────────────────
   Momentum Partners — Shared Styles
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ── CSS Variables (Warm default) ── */
:root {
  --bg:           #faf8f3;
  --bg-alt:       #f1ede4;
  --bg-dark:      #1c1916;
  --text:         #1c1916;
  --text-muted:   #6b6460;
  --text-inv:     #faf8f3;
  --accent:       #da532c;
  --accent-h:     #bf4420;
  --accent-light: #fdf1ec;
  --gold:         #c4913a;
  --border:       #e4dfd5;
  --card-bg:      #ffffff;
  --shadow-sm:    0 1px 6px rgba(28,25,22,0.06);
  --shadow-md:    0 4px 20px rgba(28,25,22,0.09);
  --ff-display:   'Raleway', system-ui, sans-serif;
  --ff-body:      'Raleway', system-ui, sans-serif;
  --container:    1200px;
  --nav-h:        72px;
}

/* ── Theme: Cool Blue ── */
[data-theme="cool"] {
  --bg:           #f6f9fc;
  --bg-alt:       #eaf1f8;
  --bg-dark:      #0e1c2f;
  --text:         #0e1c2f;
  --text-muted:   #5a6e85;
  --accent:       #1e6fc4;
  --accent-h:     #155aa0;
  --accent-light: #e8f2fd;
  --gold:         #3a82c8;
  --border:       #d5e3f0;
  --card-bg:      #ffffff;
}

/* ── Theme: Forest Green (brand palette) ── */
[data-theme="forest"] {
  --bg:           #f6f8f5;
  --bg-alt:       #e8ede7;
  --bg-dark:      #1a3224;
  --text:         #1a3224;
  --text-muted:   #587060;
  --accent:       #C9952A;
  --accent-h:     #a87420;
  --accent-light: #fdf5e4;
  --gold:         #C9952A;
  --border:       #d0dcd2;
  --card-bg:      #ffffff;
}

/* ── Font style: Sans only ── */
[data-font="sans"] h1,
[data-font="sans"] h2,
[data-font="sans"] h3 {
  font-family: var(--ff-body);
  letter-spacing: -0.02em;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
h4 {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.75; }
strong { color: var(--text); font-weight: 500; }

/* ── Label / eyebrow ── */
.label-tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Divider accent ── */
.divider {
  width: 44px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 18px;
}
.divider-center { margin: 18px auto 0; }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--text-inv); }
.section-dark p { color: rgba(250,248,243,0.68); }
.section-dark .label-tag { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(218,83,44,0.25); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-inv:hover { background: #fff; color: var(--text); border-color: #fff; }

/* ── Transparent nav (hero pages) ── */
.hero-page .site-header { background: transparent; box-shadow: none; }
.hero-page .site-header.scrolled { background: var(--bg-dark); box-shadow: 0 2px 28px rgba(0,0,0,0.22); }
.hero-page main { padding-top: 0; }

/* ── Navigation ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.22); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(250,248,243,0.75);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 8px 13px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-cta-link {
  margin-left: 8px;
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.65) !important;
  border-radius: 5px !important;
  padding: 8px 18px !important;
  font-weight: 500 !important;
}
.nav-cta-link:hover { background: rgba(255,255,255,0.12) !important; border-color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 8px; 
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  padding: 8px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(250,248,243,0.8);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; color: var(--accent); font-weight: 500; }
.mobile-nav a:hover { color: #fff; }

main { padding-top: var(--nav-h); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(28,25,22,0.75) 35%, rgba(28,25,22,0.28) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 28px;
}
.hero-content h1 { color: #fff; max-width: 720px; margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 36px; font-size: 1.125rem; }
.hero-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero (small) for inner pages */
.hero-sm {
  position: relative;
  height: 340px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-sm .hero-bg::after {
  background: linear-gradient(to top, rgba(28,25,22,0.82) 0%, rgba(28,25,22,0.3) 100%);
}
.hero-sm-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 44px;
}
.hero-sm-content h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.hero-sm-content p { color: rgba(255,255,255,0.78); margin-top: 8px; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(28,25,22,0.12); }
.card-body { padding: 32px; }

/* ── Section header ── */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .divider { margin: 18px auto 0; }
.section-header h2 { margin-top: 10px; }
.section-header p { margin-top: 16px; max-width: 580px; }
.section-header.center p { margin: 16px auto 0; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-2-thirds { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

/* ── Stars ── */
.stars { display: flex; gap: 2px; }
.star { color: #f5a623; font-size: 1rem; line-height: 1; }

/* ── Team ── */
.team-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.team-photo-placeholder {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.team-role { color: var(--accent); font-size: 0.875rem; font-weight: 500; margin: 4px 0 14px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(250,248,243,0.65);
  padding: 68px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 60px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-desc { font-size: 0.9rem; max-width: 290px; line-height: 1.65; }
.footer-col h4 { color: rgba(250,248,243,0.45); margin-bottom: 18px; }
.footer-col a {
  display: block;
  color: rgba(250,248,243,0.65);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,248,243,0.4);
}
.footer-bottom a { color: rgba(250,248,243,0.55); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ── Forms ── */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Calc result box ── */
.result-box {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 8px;
}
.result-box .result-main {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.result-box .result-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.result-item { }
.result-item .val { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.result-item .lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ── Range slider ── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
  box-shadow: none;
}
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(218,83,44,0.3);
  transition: box-shadow 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 2px 14px rgba(218,83,44,0.45); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ── Highlight bar ── */
.highlight-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.highlight-bar p { color: var(--text); font-style: italic; margin: 0; }

/* ── Page content (disclosure, privacy) ── */
.page-content { max-width: 780px; }
.page-content h2 { margin: 44px 0 16px; font-size: 1.6rem; }
.page-content h3 { font-family: var(--ff-body); font-size: 1.05rem; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.page-content p { margin-bottom: 16px; }
.page-content ul { list-style: disc; padding-left: 24px; color: var(--text-muted); }
.page-content ul li { margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.75; }

main { padding-top: var(--nav-h); }

/* ── Gold button ── */
.btn-gold {
  background: #C9952A; color: #fff; border-color: #C9952A;
}
.btn-gold:hover { background: #a87420; border-color: #a87420; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,149,42,0.3); }

/* ── Blog card ── */
.blog-card { background: var(--card-bg); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(28,25,22,0.12); }
.blog-card-img { height: 200px; background: var(--bg-alt); position: relative; overflow: hidden; }
.blog-card-body { padding: 24px 28px 28px; }
.blog-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card-body p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }

/* ── Framework steps ── */
.framework-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; }
.framework-step { padding: 28px 20px; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.framework-step:last-child { border-right: none; }
.framework-num { font-family: var(--ff-display); font-size: 3rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 12px; opacity: 0.9; }
.framework-step h4 { color: #fff; font-family: var(--ff-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.framework-step p { color: rgba(250,248,243,0.6); font-size: 0.875rem; margin: 0; }

/* ── Forest hero overlay ── */
[data-theme="forest"] .hero-bg::after {
  background: linear-gradient(160deg, rgba(18,44,30,0.76) 0%, rgba(14,36,24,0.84) 100%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .framework-steps { grid-template-columns: repeat(3,1fr); }
  .framework-step { border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 768px) {
  .framework-steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-2-thirds { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .result-breakdown { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btn-row { flex-direction: column; }
}
