/* ==========================================================================
   RHT Growth Partners — self-hosted rebuild
   Fonts: Cormorant Garamond (headings), DM Sans (body)
   ========================================================================== */

:root {
  --navy:        #162136;
  --navy-2:      #1A263D;
  --navy-panel:  #1B2740;   /* slightly lighter panel for grids */
  --copper:      #985F43;
  --copper-soft: #B5764F;
  --cream:       #F5EFE7;
  --cream-2:     #EFE7DB;
  --cream-line:  #E3D8CB;
  --ink:         #1A263D;
  --muted:       #6A7182;
  --muted-light: #A9B0C0;
  --line-navy:   rgba(169, 176, 192, 0.22);
  --white:       #FFFFFF;
  --maxw:        1180px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.serif-em { font-style: italic; color: var(--copper); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }
.section--navy  { background: var(--navy);  color: var(--white); }
.section--cream { background: var(--cream); color: var(--ink); }

/* Eyebrow with leading copper dash: "— WHO WE ARE" */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--copper); display: inline-block; }
.section--navy .eyebrow { color: var(--copper-soft); }
.section--navy .eyebrow::before { background: var(--copper-soft); }

/* Centered short copper divider (above hero / contact headings) */
.rule-mark { width: 46px; height: 1px; background: var(--copper); margin: 0 auto 34px; }

.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--copper);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  background: var(--copper);
  color: var(--white);
}
.btn:hover { background: var(--copper-soft); border-color: var(--copper-soft); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: var(--copper-soft); }
.btn--outline:hover { background: var(--copper); color: var(--white); transform: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 33, 54, 0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(22, 33, 54, 0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 12px 0;
  backdrop-filter: saturate(140%) blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 14px; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo .wordmark {
  font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600;
  color: var(--white); letter-spacing: 0.01em; white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav__links > li { position: relative; }
.nav__link, .nav__dd-toggle {
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); transition: color .2s var(--ease);
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover, .nav__dd-toggle:hover { color: var(--white); }
/* Two-line nav item: main word + small italic subtext */
.nav__stack { flex-direction: column; align-items: center; text-align: center; gap: 3px; line-height: 1.15; }
.nav__word { display: inline-flex; align-items: center; gap: 6px; }
.nav__sub {
  font-size: 9px; font-style: italic; font-weight: 400;
  letter-spacing: 0.04em; text-transform: none; text-align: center;
  color: rgba(255,255,255,0.55);
  max-width: 6.5em; line-height: 1.25;
  min-height: 2.5em; /* reserve 2 lines so every stack is the same height
                        and all top words (WHO/WHAT/HOW/WHY) stay level */
}
.nav__link:hover .nav__sub, .nav__dd-toggle:hover .nav__sub { color: rgba(255,255,255,0.8); }
.nav__dd-toggle .caret { font-size: 9px; transition: transform .25s var(--ease); }
.nav__item--dd.open .nav__dd-toggle .caret { transform: rotate(180deg); }
.nav__cta { padding: 11px 24px; font-size: 12px; }

/* Dropdown */
.nav__dd {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #1c2942; border: 1px solid var(--line-navy); min-width: 190px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 20px 44px rgba(0,0,0,.4); list-style: none;
}
/* Invisible bridge across the gap so hovering from the button to the menu
   doesn't pass through empty space and close the dropdown. */
.nav__dd::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav__item--dd.open .nav__dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dd a {
  display: block; padding: 11px 22px; font-size: 13px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82); transition: background .18s, color .18s;
}
.nav__dd a:hover { background: rgba(255,255,255,0.05); color: var(--copper-soft); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s var(--ease); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #1d2b47 0%, var(--navy) 55%), var(--navy);
  color: var(--white);
  padding: 140px 0 90px;
}
.hero__inner { max-width: 900px; padding: 0 32px; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); font-weight: 500; margin-bottom: 42px; }
.hero h1 .line { display: block; }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head { max-width: 760px; margin: 0 auto 70px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 500; }
.section-head p  { color: var(--muted); margin-top: 20px; font-size: 18px; }
.section--navy .section-head p { color: var(--muted-light); }

/* ==========================================================================
   Who We Are / Founders  (stacked full-width rows)
   ========================================================================== */
.founders { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 40px; align-items: start; }
.founder__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--cream-line);
}
.founder__name { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.founder__role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper); margin: 6px 0 20px; }
.founder__bio { color: #3E4658; font-size: 16.5px; }
.founder__bio p { margin-bottom: 16px; }
.founder__link {
  margin-top: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--copper); transition: gap .2s var(--ease), color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.founder__link:hover { color: var(--copper-soft); gap: 12px; }

/* ==========================================================================
   Bordered 2x2 grid (shared by Criteria + Why Us)
   ========================================================================== */
.grid2 {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-navy);
  background: rgba(255,255,255,0.015);
}
.grid2 > * { padding: 46px 48px; border-top: 1px solid var(--line-navy); border-left: 1px solid var(--line-navy); }
.grid2 > *:nth-child(1), .grid2 > *:nth-child(2) { border-top: none; }
.grid2 > *:nth-child(odd) { border-left: none; }

/* Criteria cell */
.crit__tick { width: 30px; height: 2px; background: var(--copper); margin-bottom: 22px; }
.crit__title { font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: -0.01em; }
.crit__desc  { color: var(--muted-light); font-size: 15.5px; }

/* Why cell */
.why__num  { font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--copper-soft); margin-bottom: 18px; letter-spacing: 0.06em; }
.why__title { font-family: "Cormorant Garamond", serif; font-size: 27px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.why__desc  { color: var(--muted-light); font-size: 16px; }

/* ==========================================================================
   Process (timeline)
   ========================================================================== */
.process { max-width: 720px; margin: 0 auto; }
.process__step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 34px;
  padding-bottom: 56px;
}
.process__step:last-child { padding-bottom: 0; }
/* connecting vertical line */
.process__step:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--cream-line);
}
.process__num {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--copper);
  color: var(--copper); display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif; font-size: 22px; background: var(--cream); position: relative; z-index: 1;
}
.process__when { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.process__body { padding-top: 4px; }
.process__body h3 { font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.process__body p  { color: var(--muted); font-size: 16px; max-width: 520px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; max-width: 1040px; margin: 0 auto; align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  color: var(--white); font-family: "DM Sans", sans-serif; font-size: 16px; padding: 14px 16px;
  transition: border-color .2s var(--ease), background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: rgba(255,255,255,0.07); }
.field textarea { resize: vertical; min-height: 150px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; font-size: 15px; min-height: 22px; }
.form-status.success { color: #7FBF8F; }
.form-status.error   { color: #E08A7D; }

.contact-card { padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-card:first-child { border-top: none; padding-top: 0; }
.contact-card__name { font-family: "Cormorant Garamond", serif; font-size: 25px; font-weight: 600; margin-bottom: 10px; }
.contact-card a, .contact-card span { display: block; color: var(--muted-light); font-size: 16px; margin-bottom: 4px; transition: color .2s; }
.contact-card a:hover { color: var(--copper-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--muted-light); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.site-footer p { font-size: 13px; letter-spacing: 0.05em; }
.site-footer .loc { color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   Bio pages (/team/*)
   ========================================================================== */
.bio-page { background: var(--cream); color: var(--ink); }
.bio-hero { background: var(--navy); color: var(--white); padding: 150px 0 70px; }
.bio-back { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-soft); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; transition: gap .2s var(--ease); }
.bio-back:hover { gap: 14px; }
.bio-hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 500; }
.bio-hero .founder__role { font-size: 12px; margin-top: 14px; }

.bio-body { max-width: 760px; margin: 0 auto; padding: 80px 32px 40px; }
.bio-body p { margin-bottom: 22px; font-size: 17.5px; color: #3E4658; }
.bio-block { margin: 54px 0 0; }
.bio-block h2 { font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.bio-quote { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 23px; line-height: 1.4; color: var(--navy-2); border-left: 3px solid var(--copper); padding-left: 24px; }

.bio-gallery { max-width: 900px; margin: 20px auto 0; padding: 20px 32px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bio-figure figure { margin: 0; }
.bio-figure img { width: 100%; height: 320px; object-fit: cover; box-shadow: 0 12px 30px rgba(22,33,54,0.14); }
.bio-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; font-style: italic; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav__logo .wordmark { display: none; }
  .nav__links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 330px);
    background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.4);
    overflow-y: auto;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: block; z-index: 110; }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Dropdown becomes inline on mobile */
  .nav__dd {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    background: transparent; border: none; padding: 6px 0 0 14px; min-width: 0; display: none;
  }
  .nav__item--dd.open .nav__dd { display: block; transform: none; }
  .nav__dd a { padding: 8px 0; }

  .founder { grid-template-columns: 90px 1fr; gap: 26px; }
  .founder__photo { width: 90px; height: 90px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2 > * { border-left: none; padding: 36px 30px; }
  .grid2 > *:nth-child(2) { border-top: 1px solid var(--line-navy); }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .bio-gallery { grid-template-columns: 1fr; }
  .bio-figure img { height: 260px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .form-row { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { width: 84px; height: 84px; }
}
