/* ============================================================
   Legacy Search Advisors — Landing Page
   Implemented from Figma "Design 1 light rev 01"
   ============================================================ */

:root {
  --cream:    #f8f4e3;  /* nav / hero bg            */
  --cream-2:  #f8f5e8;  /* services bg              */
  --cream-3:  #fbf9ee;  /* contact bg               */
  --cream-4:  #efe9d2;  /* footer bg                */
  --sand:     #ebe2c4;  /* placement bg             */
  --gold:     #ab8d30;  /* accent                   */
  --navy:     #121529;  /* darkest headings         */
  --navy-2:   #1a1c2a;  /* primary text             */
  --ink:      #1c1e2b;  /* stat captions            */
  --muted:    rgba(26, 28, 42, 0.7);

  --serif:  "Playfair Display", Georgia, serif;
  --sans:   "Montserrat", system-ui, sans-serif;
  --cond:   "Sofia Sans Condensed", "Arial Narrow", sans-serif;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* offset anchor jumps so the sticky header doesn't cover the target */
.stats, .services, .placement, .contact { scroll-margin-top: 124px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.eyebrow--center { text-align: center; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--cream-2);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 40px;
  border: 1px solid var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s ease, color .25s ease;
}
.btn-gold:hover { background: var(--navy); border-color: var(--navy); }
.btn-gold--sm { padding: 18px 52px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  backdrop-filter: blur(1px);
  border-bottom: 1px solid rgba(168, 137, 42, 0.12);
}
.nav__inner {
  height: 112px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { width: 129px; height: 84px; }
.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--navy-2);
  text-decoration: none;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--gold); }

/* hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-2);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
/* animate into an "X" when open */
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: 60px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero > * { position: relative; z-index: 1; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.hero__eyebrow .rule { width: 36px; height: 1px; background: var(--gold); }
.eyebrow-text {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* video card */
.hero__video {
  position: relative;
  width: 720px;
  max-width: 100%;
  margin: 0 0 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,137,42,0.2);
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 26px;
  max-width: 1241px;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2.25;
  color: var(--navy-2);
  letter-spacing: 0.3px;
  max-width: 942px;
  margin: 0 0 34px;
}
.hero__sub .reg { font-weight: 300; }
.hero__sub .refresh {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(26px, 2.6vw, 35px);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  text-decoration: none;
}
.hero__scroll-label {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), rgba(168, 137, 42, 0));
}
.hero__scroll-arrow {
  width: 36px; /* ~30% smaller than the previous 52px */
  height: auto;
  fill: none;
  stroke: var(--gold); /* same color as the label */
  stroke-width: 2;     /* thin / less bold */
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scroll-bounce 1.8s ease-in-out infinite;
  transition: transform .25s ease;
}
.hero__scroll:hover .hero__scroll-arrow { transform: scale(1.12); }

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow { animation: none; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: #fff;
  padding: 84px 24px;
  position: relative;
}
.stats::before, .stats::after {
  content: "";
  position: absolute;
  left: 34.38%; right: 34.38%;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,137,42,0), rgba(168,137,42,0.4), rgba(168,137,42,0));
}
.stats::before { top: 0; }
.stats::after  { bottom: 0; }

.stats .eyebrow { margin-bottom: 64px; }

.stats__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.stat {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 1px; height: 140px;
  background: linear-gradient(180deg, rgba(168,137,42,0), rgba(168,137,42,0.4), rgba(168,137,42,0));
}
.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.stat__num span { font-size: clamp(72px, 7vw, 110px); }
.stat__num em {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 77px);
}
.stat__num .plus { font-weight: 400; }
.stat__num--italic em { font-weight: 500; }
.stat__num .pct { font-size: clamp(30px, 3.4vw, 77px); }
.stat__desc {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  color: var(--ink);
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--cream-2);
  padding: 110px 24px 120px;
}
.services__head {
  max-width: var(--maxw);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.services__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-2);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0;
}
.services__title em { font-style: italic; font-weight: 400; color: var(--gold); }
.services__intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(168,137,42,0.4);
}
.card {
  padding: 56px 50px 64px;
  border-top: 1px solid rgba(168,137,42,0.25);
  border-left: 1px solid rgba(168,137,42,0.25);
}
.card:nth-child(1), .card:nth-child(2) { border-top: none; }
.card:nth-child(odd) { border-left: none; }
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--gold);
}
.card__icon {
  display: block;
  margin: 28px 0 30px;
}
.card__icon svg {
  width: 44px; height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--navy-2);
  margin: 0 0 16px;
}
.card__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 460px;
}

/* ============================================================
   PLACEMENT
   ============================================================ */
.placement {
  background: var(--sand);
  padding: 110px 24px 120px;
  text-align: center;
}
.placement .eyebrow { letter-spacing: 4px; margin-bottom: 26px; }
.placement__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0 0 56px;
}
.placement__title em { font-style: italic; font-weight: 400; color: var(--gold); }

.placement__table {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(26,22,16,0.18);
}
.placement__cell {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.8px;
  color: var(--navy);
  padding: 50px 24px;
  border-top: 1px solid rgba(26,22,16,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease, letter-spacing .3s ease;
}
/* gold accent bar that sweeps up from the bottom on hover */
.placement__cell::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}
.placement__cell:hover {
  color: var(--gold);
  background-color: rgba(168, 137, 42, 0.07);
  letter-spacing: -0.2px;
}
.placement__cell:hover::after { transform: scaleX(1); }
.placement__cell:nth-child(odd) { border-right: 1px solid rgba(26,22,16,0.18); }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.quote {
  background: #fff;
  padding: 120px 24px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.quote__mark {
  position: absolute;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 320px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  user-select: none;
}
.quote__mark--open  { top: -40px;  left: 9%; }
.quote__mark--close { bottom: -150px; right: 9%; }
.quote__body {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 30px;
  position: relative;
}
.quote__hl {
  font-weight: 700;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(168,137,42,0.6);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.quote__divider {
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
}
.quote .eyebrow { font-family: var(--cond); font-weight: 500; margin-bottom: 12px; }
.quote__author {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--cream-3);
  padding: 0 clamp(24px, 6vw, 100px) 120px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, rgba(168,137,42,0), rgba(168,137,42,0.4), rgba(168,137,42,0)) 1;
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
}
.contact__left, .contact__form { min-width: 0; }
.contact__form--embed { overflow: hidden; }
.contact__form--embed iframe { width: 100%; max-width: 100%; min-height: 542px; display: block; }
.contact .eyebrow { font-size: 16px; letter-spacing: 5px; margin-bottom: 24px; }
.contact__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-2);
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -2px;
  margin: 0 0 36px;
}
.contact__title em { font-style: italic; color: var(--gold); }
.contact__copy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy-2);
  max-width: 460px;
  margin: 0 0 44px;
}
.contact__rule {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 1px;
  background: rgba(168,137,42,0.25);
  margin-bottom: 36px;
}
.contact__person { display: flex; align-items: center; gap: 22px; }
.contact__person .contact__linkedin { margin-left: 16px; }
.contact__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  padding: 6px;
  border: 1px solid var(--gold);
}
.contact__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--navy-2);
  margin: 0 0 6px;
}
.contact__role {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* form */
.contact__form { display: flex; flex-direction: column; }
.field { margin-bottom: 30px; }
.field label {
  display: block;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(168,137,42,0.3);
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--navy-2);
  padding: 6px 0 12px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--navy-2); opacity: 0.75; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--gold); }

.contact__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.contact__or {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
}
.contact__linkedin { display: inline-flex; }
.contact__linkedin img { width: 55px; height: 55px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream-4);
  border-top: 1px solid rgba(168,137,42,0.2);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer p {
  font-family: var(--cond);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy-2);
  margin: 0;
}
.footer .dot { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__inner { height: 96px; padding: 0 24px; }
  .nav__links { gap: 18px; font-size: 13px; }

  .services__head { grid-template-columns: 1fr; gap: 28px; }
  .services__grid { grid-template-columns: 1fr; }
  .card { border-left: none !important; padding: 44px 28px 48px; }
  .card:nth-child(2) { border-top: 1px solid rgba(168,137,42,0.25); }

  .contact__inner { grid-template-columns: 1fr; gap: 56px; padding-top: 80px; }

  .quote__mark { font-size: 180px; }
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; gap: 48px; }
  .stat + .stat::before { display: none; }
  .stat { padding: 0; }

  .placement__table { grid-template-columns: 1fr; }
  /* stacked: every cell needs its own separator line */
  .placement__cell { border-right: none !important; border-top: 1px solid rgba(26, 22, 16, 0.18); padding: 32px 16px; }
}

/* ---------- Mobile nav / hamburger ---------- */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(168, 137, 42, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .3s ease, padding .35s ease;
  }
  .nav.is-open .nav__links {
    max-height: 340px;
    opacity: 1;
    padding: 8px 24px 20px;
  }
  .nav__links a {
    font-size: 16px;
    letter-spacing: 2px;
    padding: 16px 2px;
    border-top: 1px solid rgba(168, 137, 42, 0.12);
  }
  .nav__links a:first-child { border-top: none; }
}
