/* ============================================================
   FourSight Partners — styles.css
   Palette: forest green + warm-gold dappled light (impressionist)
   Type: Fraunces (display serif) + Inter (sans)
   ============================================================ */

:root {
  --forest-deep: #0E2116;
  --forest:      #163524;
  --forest-2:    #285943;
  --green:       #3E8C60;
  --moss:        #7FA88B;
  --sage:        #B7CDBB;
  --gold:        #C9A24B;
  --gold-soft:   #E6CB86;
  --cream:       #F4F1E8;
  --cream-2:     #FBFAF4;
  --paper:       #FFFFFF;
  --ink:         #16231B;
  --ink-soft:    #2C3A30;
  --muted:       #5E6E63;
  --muted-light: #AFC0B2;
  --line:        rgba(22, 35, 27, 0.10);
  --line-light:  rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 1px 2px rgba(16,33,22,.06), 0 4px 14px rgba(16,33,22,.05);
  --shadow-md: 0 8px 30px rgba(16,33,22,.10);
  --shadow-lg: 0 18px 48px rgba(16,33,22,.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.kicker-light { color: var(--gold-soft); }

.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  color: var(--ink);
  max-width: 18ch;
}

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 28px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-gold { background: var(--gold); color: #21180a; box-shadow: 0 6px 18px rgba(201,162,75,.28); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,75,.34); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; transform: translateY(-2px); }
.section .btn-ghost { border-color: rgba(22,35,27,.28); color: var(--ink); }
.section .btn-ghost:hover { background: rgba(22,35,27,.05); border-color: var(--forest-2); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(251, 250, 244, 0.97);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16,33,22,.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.34rem; color: #fff; letter-spacing: -0.01em; }
.brand-sub { font-size: .64rem; font-weight: 600; letter-spacing: .34em; color: var(--gold-soft); margin-top: 3px; }
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-sub { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88); transition: color .18s ease; }
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.site-header.scrolled .main-nav a:hover { color: var(--forest-2); }

.nav-cta {
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 9px 20px;
  border-radius: 8px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #21180a !important; }
.site-header.scrolled .nav-cta { border-color: var(--forest-2); color: var(--forest-2) !important; }
.site-header.scrolled .nav-cta:hover { background: var(--forest-2); color: #fff !important; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background-color .25s ease; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(14,33,22,.99);
  display: flex; flex-direction: column;
  padding: 8px 28px 24px;
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 99;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a { color: #fff; padding: 16px 4px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line-light); }
.mobile-nav a:last-child { border-bottom: none; color: var(--gold-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--forest-deep) url("assets/hero-forest.svg") center/cover no-repeat;
}
.hero-bg::after {
  /* legibility wash, stronger on the left where text sits */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,18,11,.74) 0%, rgba(8,18,11,.5) 38%, rgba(8,18,11,.12) 72%, rgba(8,18,11,0) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 64px; }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.5rem);
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 26px;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-lede {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  max-width: 60ch;
  margin: 0 0 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1;
  background: linear-gradient(to bottom, rgba(244,241,232,0), var(--cream));
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach { background: var(--cream); }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.approach-lead .section-title { max-width: 14ch; }
.approach-body p { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 20px; }
.approach-body p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 600; color: var(--forest-2); line-height: 1; margin-bottom: 14px; }
.stat-label { display: block; font-size: .98rem; color: var(--muted); max-width: 32ch; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream-2); }
.cards { display: grid; gap: 24px; }
.services-cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card { display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(62,140,96,.32); }
.card-q { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--gold); margin-bottom: 10px; }
.service-card h3 { font-size: 1.62rem; color: var(--ink); margin-bottom: 14px; }
.card-desc { color: var(--muted); margin: 0 0 24px; min-height: 12em; }
.ticks { display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: .98rem; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ============================================================
   INDUSTRIES (dark band)
   ============================================================ */
.industries { position: relative; background: var(--forest-deep); color: #fff; overflow: hidden; }
.industries::before {
  /* subtle dappled light, ties to hero motif */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 82% 8%, rgba(201,162,75,.18), transparent 70%),
    radial-gradient(50% 70% at 8% 90%, rgba(62,140,96,.22), transparent 70%);
  pointer-events: none;
}
.industries .container { position: relative; z-index: 1; }
.industries .section-title { color: #fff; }
.industry-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 52px); }
.industry { padding-top: 8px; }
.industry-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-light);
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.industry-icon svg { width: 26px; height: 26px; }
.industry h3 { font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.industry p { color: rgba(255,255,255,.74); font-size: 1.02rem; margin: 0; }

/* ============================================================
   WHO WE WORK WITH
   ============================================================ */
.clients { background: var(--cream); }
.clients-cards { grid-template-columns: repeat(4, 1fr); }
.client-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-num { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.client-card h3 { font-size: 1.28rem; color: var(--ink); margin: 16px 0 12px; }
.client-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--cream-2); }
.team-cards { grid-template-columns: repeat(4, 1fr); }
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--sage);
  box-shadow: inset 0 0 0 1px rgba(22,35,27,.06);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-name { font-size: 1.32rem; color: var(--ink); margin-bottom: 4px; }
.team-role { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.team-bio { font-size: .94rem; color: var(--muted); margin: 0 0 20px; }
.team-firms { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.team-firms li { font-size: .72rem; font-weight: 500; color: var(--forest-2); background: rgba(62,140,96,.10); border: 1px solid rgba(62,140,96,.18); padding: 4px 10px; border-radius: 999px; }
.team-edu { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; color: #fff; overflow: hidden; text-align: center; }
.contact-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 78% 12%, rgba(201,162,75,.20), rgba(201,162,75,0) 55%),
    radial-gradient(80% 100% at 12% 92%, rgba(62,140,96,.24), rgba(62,140,96,0) 60%),
    linear-gradient(160deg, #173A26 0%, #0B1C12 72%);
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,11,.42), rgba(8,18,11,.30)); }
.contact-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.contact .section-title { color: #fff; margin: 0 auto 22px; max-width: 18ch; }
.contact .kicker { margin-left: auto; margin-right: auto; }
.contact-lede { color: rgba(255,255,255,.85); font-size: 1.15rem; margin: 0 auto 36px; max-width: 52ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0A1A11; color: rgba(255,255,255,.7); padding: 64px 0 36px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand { max-width: 420px; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-content: start; }
.footer-nav a { font-size: .95rem; color: rgba(255,255,255,.72); transition: color .18s ease; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-domain { letter-spacing: .04em; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* small stagger for grids */
.cards .reveal:nth-child(2), .industry-row .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .industry-row .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .services-cards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .card-desc { min-height: 0; }
  .clients-cards { grid-template-columns: repeat(2, 1fr); }
  .team-cards { grid-template-columns: repeat(2, 1fr); }
  .industry-row { grid-template-columns: 1fr; max-width: 620px; }
  .industry { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; }
  .industry-icon { margin-bottom: 0; }
  .industry h3 { grid-column: 2; }
  .industry p { grid-column: 2; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .approach-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .stat-label { max-width: 40ch; }
  .footer-grid { flex-direction: column; gap: 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .clients-cards, .team-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .hero { min-height: 92vh; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .footer-base { flex-direction: column; gap: 6px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .btn:hover, .card:hover, .client-card:hover, .team-card:hover { transform: none; }
}
