/* ============================================
   MELIVATE CONSULTING GROUP — brand stylesheet
   Crimson #A50E1D | Ink #1B1817 | Paper #F7F4EF
   Playfair Display (display) + Lato (text)
   ============================================ */

:root {
  --crimson: #a50e1d;
  --crimson-deep: #7c0a15;
  --ink: #1b1817;
  --ink-soft: #2b2726;
  --paper: #f7f4ef;
  --paper-warm: #efe9df;
  --line: #d9d2c6;
  --text: #33302e;
  --text-muted: #6f6862;
  --white: #fffdf9;
  --max: 1180px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--crimson); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfc8bd;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 9px; padding-bottom: 9px;
}
.topbar a { color: var(--paper); }
.topbar a:hover { color: #fff; }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.brand .mono {
  font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1;
  color: var(--ink); letter-spacing: .01em;
}
.brand .mono span { color: var(--crimson); }
.brand small {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
nav.primary { display: flex; align-items: center; gap: 38px; }
nav.primary a {
  color: var(--ink); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
nav.primary a:hover, nav.primary a.active { border-color: var(--crimson); }
.nav-cta {
  background: var(--crimson); color: #fff !important;
  padding: 12px 26px; border-bottom: none !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--crimson-deep); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 34px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 2px;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.burger span { top: 16px; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {           /* oversized watermark monogram */
  content: "M";
  position: absolute; right: -4vw; bottom: -22vw;
  font-family: var(--serif); font-weight: 900;
  font-size: 58vw; line-height: 1; color: rgba(165, 14, 29, .14);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
  max-width: var(--max);
}
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .34em;
  text-transform: uppercase; color: #b8b0a4;
  display: flex; align-items: center; gap: 16px;
}
.kicker::before { content: ""; width: 44px; height: 2px; background: var(--crimson); }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.04; letter-spacing: -.01em;
  margin: 26px 0 28px; color: var(--white); max-width: 13ch;
}
.hero h1 em { font-style: italic; color: #e8b7ba; }
.hero p.lede { font-size: 19px; max-width: 54ch; color: #cfc8bd; }
.hero .actions { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 800; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 17px 36px; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--crimson); color: #fff; }
.btn-solid:hover { background: var(--crimson-deep); }
.btn-ghost { border: 1px solid #6b645d; color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

/* ---------- trust strip ---------- */
.strip { background: var(--crimson); color: #fff; }
.strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-top: 22px; padding-bottom: 22px;
}
.strip div {
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: center;
}

/* ---------- section scaffolding ---------- */
section.block { padding: clamp(70px, 9vw, 130px) 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .34em;
  text-transform: uppercase; color: var(--crimson);
}
h2.display {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1;
  color: var(--ink); margin: 14px 0 0; letter-spacing: -.005em;
}
.split {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.split .copy p + p { margin-top: 1.2em; }
.stat-rail { border-left: 2px solid var(--crimson); padding-left: 28px; display: grid; gap: 26px; }
.stat-rail h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.stat-rail p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- services ---------- */
.services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 64px;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.svc {
  padding: 46px 38px 52px; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s;
  display: flex; flex-direction: column;
}
.svc:hover { background: var(--paper); }
.svc.cta-cell { background: var(--ink); justify-content: center; }
.svc.cta-cell h3 { color: var(--white); }
.svc.cta-cell p { color: #b8b0a4; flex: 0; }
.svc.cta-cell:hover { background: #000; }
.svc .num {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--crimson); letter-spacing: .05em;
}
.svc h3 {
  font-family: var(--serif); font-weight: 800; font-size: 26px;
  color: var(--ink); margin: 14px 0 16px; line-height: 1.2;
}
.svc p { color: var(--text-muted); font-size: 16px; flex: 1; }
.svc a {
  margin-top: 26px; font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--crimson);
}
.svc a:hover { color: var(--crimson-deep); }

/* ---------- process ---------- */
.process ol {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 60px;
}
.process li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 22px; }
.process li::before {
  content: "0" counter(step);
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--crimson);
}
.process h3 { font-family: var(--serif); font-size: 23px; color: var(--ink); margin: 8px 0 10px; }
.process p { font-size: 15.5px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--ink); color: var(--paper); }
.faq h2.display { color: var(--white); }
.faq-list { margin-top: 56px; border-top: 1px solid #3a3533; }
details {
  border-bottom: 1px solid #3a3533;
}
summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 4px;
  font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--white);
}
summary::-webkit-details-marker { display: none; }
summary .tick {
  font-family: var(--sans); font-size: 22px; color: var(--crimson);
  transition: transform .25s; flex-shrink: 0; line-height: 1;
}
details[open] summary .tick { transform: rotate(45deg); }
details .a { padding: 0 4px 30px; color: #cfc8bd; max-width: 72ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--crimson); color: #fff; text-align: center; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.15;
}
.cta-band p { margin: 18px auto 0; max-width: 60ch; color: #f3d5d7; }
.cta-band .btn { margin-top: 36px; background: var(--ink); color: var(--paper); }
.cta-band .btn:hover { background: #000; }

/* ---------- team page ---------- */
.page-head { background: var(--ink); color: var(--paper); }
.page-head .wrap { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.page-head h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 76px); color: var(--white); margin-top: 22px; line-height: 1.05;
}
.person {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(36px, 5vw, 80px);
  align-items: start; padding: clamp(56px, 7vw, 96px) 0;
}
.person + .person { border-top: 1px solid var(--line); }
.person.flip { grid-template-columns: 7fr 4fr; }
.person.flip figure { order: 2; }
.person figure { position: relative; }
.person figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.92); }
.person figure .ph {
  width: 100%; aspect-ratio: 4/5; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 8vw, 110px);
  color: var(--paper);
}
.person figure .ph span { color: var(--crimson); }
.person figure::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--crimson); z-index: -1;
}
.person h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); color: var(--ink); }
.person .role {
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--crimson); margin: 10px 0 24px;
}
.person p + p { margin-top: 1.1em; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-card { display: grid; gap: 30px; }
.contact-card .item { border-left: 2px solid var(--crimson); padding-left: 24px; }
.contact-card h3 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.contact-card p { color: var(--text-muted); font-size: 15.5px; }
.form-shell {
  background: var(--white); border: 1px solid var(--line); padding: 10px;
}
.form-shell iframe { width: 100%; border: 0; min-height: 900px; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink); color: #a49c91;
}
footer.site .wrap {
  padding-top: 64px; padding-bottom: 44px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
footer.site .mono {
  font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--paper);
}
footer.site .mono span { color: var(--crimson); }
footer.site h4 {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: #7c756c; margin-bottom: 16px;
}
footer.site a { color: #cfc8bd; display: block; margin-bottom: 10px; font-size: 15px; }
footer.site a:hover { color: #fff; }
.foot-note {
  border-top: 1px solid #3a3533; margin-top: 10px;
}
.foot-note .wrap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px; font-size: 13px;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
  .split, .contact-grid, .person, .person.flip { grid-template-columns: 1fr; }
  .person.flip figure { order: 0; }
  .person figure img { max-width: 420px; }
  .process ol { grid-template-columns: 1fr; gap: 30px; }
  .strip .wrap { grid-template-columns: 1fr; gap: 8px; }
  footer.site .wrap { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  nav.primary {
    position: fixed; inset: 0; top: 0; z-index: 60;
    background: var(--ink); flex-direction: column; justify-content: center;
    gap: 30px; display: none;
  }
  nav.primary.open { display: flex; }
  nav.primary a { color: var(--paper); font-size: 17px; }
  .burger { display: block; z-index: 70; }
  .burger.open span { background: transparent; }
  .burger.open span::before { transform: translateY(8px) rotate(45deg); background: var(--paper); }
  .burger.open span::after { transform: translateY(-8px) rotate(-45deg); background: var(--paper); }
  .topbar .wrap { justify-content: center; }
  .topbar .left { display: none; }
}
