/* ==========================================================================
   Firm Foundation Recruitment — site styles
   Brand: navy + gold + white  ·  Type: Poppins (display + text)
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0e121b;          /* logo background */
  --navy-light: #161c2b;
  --navy-mid: #20293f;
  --gold: #e5a732;          /* logo "RECRUITMENT" gold */
  --gold-bright: #f3bf52;
  --gold-soft: #f7e7c4;
  --gold-dark: #9a6a12;     /* readable gold for text/links on white */

  --ink: #19222e;
  --muted: #58697a;
  --line: #e4e9ef;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy-soft: #eef1f7;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(14, 18, 27, 0.06);
  --shadow: 0 14px 40px rgba(14, 18, 27, 0.10);
  --shadow-lg: 0 26px 60px rgba(14, 18, 27, 0.16);
  --ring: 0 0 0 1px rgba(229,167,50,.35);

  --max: 1160px;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font: "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.14; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-weight: 700; }
p  { margin: 0 0 1.1em; }
a  { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
::selection { background: var(--gold-soft); color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 86px 0; }
.section.soft { background: var(--bg-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; font-weight: 700; color: var(--gold-dark);
  margin: 0 0 1em;
}
.eyebrow::before { display: none; }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.24rem; line-height: 1.65; color: var(--muted); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font); font-weight: 600; font-size: .97rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary, .btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(229,167,50,.32); }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-bright); box-shadow: 0 12px 28px rgba(229,167,50,.42); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,18,27,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 44px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 1.04rem; }
.brand-word span { color: var(--gold); font-weight: 700; letter-spacing: .34em; font-size: .64rem; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active:not(.nav-cta) { color: var(--gold-bright); }
.nav-links a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--gold-bright); color: var(--navy) !important; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: #fff; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(229,167,50,.20), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(229,167,50,.08), transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-mid) 120%);
  color: #fff; padding: 104px 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.hero::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 42% at 20% 26%, rgba(229,167,50,.26), transparent 62%),
    radial-gradient(40% 40% at 82% 64%, rgba(48,92,168,.42), transparent 60%),
    radial-gradient(46% 46% at 60% 96%, rgba(40,120,165,.26), transparent 64%);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-5%, 4%, 0) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.84); font-size: 1.28rem; max-width: 50ch; text-wrap: pretty; }
.hero-copy h1, .hero-copy p { margin-right: auto; }

.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-sub { background: var(--bg-navy-soft); }

/* Hero two-column with image collage / photo slots */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-start; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 100%; min-height: 0; }
.hero-actions { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 46px; }
.hero-collage img, .hero-collage .photo-slot {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.40);
  border: 1px solid rgba(229,167,50,.16);
}
.hero-collage .hc-big { grid-column: 1; grid-row: 1; min-height: 0; }
.hero-collage .hc-top { grid-column: 2; grid-row: 1; min-height: 0; }
.hero-collage .hc-bottom { grid-column: 1 / span 2; grid-row: 2; min-height: 0; }

/* Two-image hero stack */
.hero-duo { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; height: 100%; min-height: 0; }
.hero-duo img, .hero-duo .photo-slot {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.40);
  border: 1px solid rgba(229,167,50,.16); min-height: 0;
}
@media (max-width: 920px) { .hero-duo { min-height: 360px; } }

/* Single large hero photo (subpages) */
.hero-figure { display: flex; }
.hero-photo {
  width: 100%; height: 100%; min-height: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.40);
  border: 1px solid rgba(229,167,50,.16);
}
@media (max-width: 920px) { .hero-photo { min-height: 300px; } }

/* ---------- Photo slots (clearly-marked, brand-styled placeholders) ---------- */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(229,167,50,.05) 0 12px, rgba(229,167,50,.10) 12px 24px),
    var(--navy-light);
  color: rgba(255,255,255,.78);
}
.photo-slot .ps-ico { width: 30px; height: 30px; color: var(--gold-bright); }
.photo-slot .ps-label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.photo-slot .ps-dim { font-size: .72rem; color: rgba(255,255,255,.52); }
/* Light photo slot for use on white sections */
.photo-slot.light {
  background:
    repeating-linear-gradient(135deg, rgba(229,167,50,.10) 0 14px, rgba(229,167,50,.20) 14px 28px),
    var(--bg-navy-soft);
  color: var(--navy); border: 2px dashed var(--gold);
}
.photo-slot.light .ps-ico { color: var(--gold-dark); }
.photo-slot.light .ps-label { color: var(--navy); }
.photo-slot.light .ps-dim { color: var(--muted); }
/* Large standalone banner photo slot */
.photo-banner { width: 100%; min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; }
.photo-banner .ps-ico { width: 42px; height: 42px; }
.photo-banner .ps-label { font-size: .95rem; }
.photo-banner .ps-dim { font-size: .78rem; }
@media (max-width: 760px) { .photo-banner { min-height: 280px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(229,167,50,.4); }
.founder-card { margin-top: 105px; }  /* aligns box top with the founder bio's body paragraph, not the eyebrow/heading above it */
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(145deg, var(--gold-soft), #fff);
  border: 1px solid rgba(229,167,50,.30);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.card .icon .ico { width: 26px; height: 26px; }

/* standalone icon (outside .card) */
.icon .ico { width: 26px; height: 26px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat { padding: 8px 6px; }
.stat .num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat .num em { color: var(--gold-dark); font-style: normal; }
.stat .label { color: var(--muted); font-size: .94rem; margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 8px; position: relative; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; }
.step .n {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--navy-mid));
  color: var(--gold-bright); font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(229,167,50,.35);
}
.step h3 { margin-bottom: 3px; }
.step p { margin-bottom: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff; padding: 80px 0;
  background:
    radial-gradient(700px 320px at 50% -30%, rgba(229,167,50,.22), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-mid));
}
.cta-band::before {
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 40% at 24% 30%, rgba(229,167,50,.22), transparent 62%),
    radial-gradient(38% 44% at 78% 72%, rgba(48,92,168,.34), transparent 60%),
    radial-gradient(40% 46% at 60% 8%, rgba(40,120,165,.20), transparent 64%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Quote ---------- */
.quote {
  position: relative; max-width: 820px; margin: 0 auto;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5; color: var(--navy); font-style: italic;
  padding: 8px 0 0 0; text-align: center;
}
.quote::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin: 0 auto 22px;
}
.quote cite { display: block; font-family: var(--font); font-style: normal; font-size: .92rem; font-weight: 600; color: var(--muted); margin-top: 18px; letter-spacing: .02em; }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 36px; margin-bottom: 15px; color: var(--ink); }
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 13px no-repeat,
        linear-gradient(#000,#000);
  -webkit-mask-composite: source-out; mask-composite: subtract;
}
/* fallback simple gold dot+tick for browsers without mask compositing */
@supports not (mask-composite: subtract) {
  .checks li::before { background: var(--gold); }
  .checks li::after {
    content: "\2713"; position: absolute; left: 5px; top: 2px; color: var(--navy);
    font-size: .8rem; font-weight: 800;
  }
}

/* ---------- Infographic (HTML/SVG rebuild) ---------- */
.infographic-wrap { display: flex; justify-content: center; margin-top: 40px; }
.infographic-card {
  width: 100%; max-width: 920px;
  background: linear-gradient(160deg, var(--navy), var(--navy-mid));
  color: #fff; border-radius: var(--radius-lg); padding: 44px clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.infographic-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(229,167,50,.28), transparent 70%);
}
.ig-head { position: relative; z-index: 1; text-align: center; margin-bottom: 34px; }
.ig-head h3 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.ig-head p { color: rgba(255,255,255,.72); margin: 0; font-size: .96rem; }
.ig-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.ig-stat { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 22px 14px; }
.ig-stat .big { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--gold-bright); line-height: 1; }
.ig-stat .cap { font-size: .82rem; color: rgba(255,255,255,.78); margin-top: 10px; line-height: 1.4; }
.ig-flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ig-step { text-align: center; }
.ig-step .dot {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(229,167,50,.16); border: 1px solid rgba(229,167,50,.45);
  color: var(--gold-bright); display: flex; align-items: center; justify-content: center;
}
.ig-step .dot .ico { width: 22px; height: 22px; }
.ig-step .t { font-weight: 700; font-size: .9rem; color: #fff; }
.ig-step .d { font-size: .76rem; color: rgba(255,255,255,.62); margin-top: 4px; line-height: 1.4; }
.ig-flow .ig-step { position: relative; }
.ig-flow .ig-step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; right: -6px; width: 12px; height: 2px;
  background: rgba(229,167,50,.5);
}
.ig-foot { position: relative; z-index: 1; text-align: center; margin: 30px 0 0; font-size: .76rem; color: rgba(255,255,255,.5); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 7px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,167,50,.20); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 52px; }
.contact-info p { margin-bottom: .35em; }
.contact-info .label { font-weight: 700; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, #0b0e16 100%);
  color: rgba(255,255,255,.74); padding: 64px 0 30px;
}
.site-footer::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -45%; height: 72%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 28% 0%, rgba(229,167,50,.14), transparent 65%),
    radial-gradient(45% 60% at 82% 14%, rgba(48,92,168,.22), transparent 62%);
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.74); display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: none; }
.footer-brand img { height: 116px; width: auto; margin-bottom: 18px; display: block; }
.footer-brand p { max-width: 38ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s 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: 920px) {
  .founder-card { margin-top: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero p { max-width: 60ch; }
  .hero-collage { min-height: 360px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .hero { padding: 76px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr; }
  .ig-flow { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .ig-flow .ig-step:not(:last-child)::after { display: none; }
  .brand-mark { height: 38px; }
  .brand-word strong { font-size: .94rem; }
  .brand-word span { font-size: .6rem; letter-spacing: .3em; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; width: 100%; }
  .nav-links a.active:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: block; }
}

/* ---------- Utilities (extracted from inline styles) ---------- */
.grid-wrap { margin-top: 44px; }
.steps-wrap { max-width: 780px; margin-top: 40px; }
.stat .src { display: block; font-size: .82em; opacity: .7; margin-top: 5px; }
.stat .src a, .ig-foot a { color: inherit; text-decoration: underline; }
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
