@import url('./fonts/google-fonts.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #1f2421;
  background: #f4f1ea;
  font-family: 'Spectral', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --ivory: #f4f1ea;
  --paper: #faf8f3;
  --ink: #1f2421;
  --green: #26392c;
  --green-dark: #1c2620;
  --gold: #b89a6a;
  --gold-light: #e7d8b6;
  --tea: #a8763e;
  --line: rgba(31, 36, 33, .13);
  --line-light: rgba(244, 241, 234, .18);
  --muted: rgba(31, 36, 33, .62);
  --muted-light: rgba(244, 241, 234, .68);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(28, 38, 32, .12);
}

::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 48px;
  color: var(--ink);
  background: rgba(244, 241, 234, .88);
  border-bottom: 1px solid rgba(31, 36, 33, .08);
  backdrop-filter: blur(18px);
}
.nav-brand { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.logo { font-family: 'Newsreader', Georgia, serif; font-size: 30px; line-height: 1; font-weight: 400; }
.tagline { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(31,36,33,.52); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: rgba(31,36,33,.78); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--tea); }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 14px; cursor: pointer; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(1380px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 108px 0; }
.section-sm { padding: 76px 0; }
.section-dark { color: var(--ivory); background: var(--green); }
.section-paper { background: var(--paper); }

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  color: var(--ivory);
  background:
    linear-gradient(100deg, rgba(20,27,22,.88) 0%, rgba(20,27,22,.68) 48%, rgba(20,27,22,.36) 100%),
    radial-gradient(95% 90% at 76% 22%, #4a614c 0%, #26392c 45%, #172019 100%);
  overflow: hidden;
}
.hero-full { position: relative; isolation: isolate; min-height: 100vh; }
.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(17,23,19,.58) 0%, rgba(17,23,19,.34) 42%, rgba(17,23,19,.74) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 3; width: 100%; text-align: center; }
.hero-full .hero-copy { max-width: 840px; margin: 0 auto; }
.hero-full .hero-search { margin-left: auto; margin-right: auto; }
.hero-full .hero-actions,
.hero-full .trust-strip { justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy { max-width: 760px; }
.kicker { margin: 0 0 18px; color: var(--gold-light); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(54px, 7vw, 104px); line-height: .96; }
h2 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; }
h3 { font-size: 30px; line-height: 1.12; }
h4 { font-size: 22px; line-height: 1.18; }
p { line-height: 1.65; }
.lede { font-size: 21px; line-height: 1.6; color: rgba(244,241,234,.78); max-width: 680px; }
.text-muted { color: var(--muted); }
.text-light { color: var(--muted-light); }
.hero-art {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(244,241,234,.2);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(231,216,182,.18), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 8px, transparent 8px 18px),
    radial-gradient(circle at 72% 26%, #d6c092 0%, #61754f 28%, #202c24 62%, #111713 100%);
  box-shadow: 0 36px 100px rgba(0,0,0,.28);
}
.hero-video-card { isolation: isolate; }
.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { z-index: 1; }
.hero-video-fallback {
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(231,216,182,.18), transparent 38%),
    url('assets/video/hero-poster.jpg') center / cover no-repeat,
    radial-gradient(circle at 72% 26%, #d6c092 0%, #61754f 28%, #202c24 62%, #111713 100%);
}
.hero-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(17,23,19,.42) 100%);
  pointer-events: none;
}
.hero-video-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  color: rgba(244,241,234,.82);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  max-width: 560px;
  padding: 8px;
  background: rgba(244,241,234,.10);
  border: 1px solid rgba(244,241,234,.24);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ivory);
  font-size: 16px;
  padding: 12px 8px 12px 18px;
  outline: none;
}
.hero-search input::placeholder { color: rgba(244,241,234,.6); }
.hero-search .btn { flex: none; border-radius: 999px; padding: 12px 26px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--ink); background: var(--ivory); }
.btn-primary:hover { background: #fff; }
.btn-green { color: var(--ivory); background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { color: inherit; border-color: currentColor; background: transparent; }
.btn-outline:hover { color: var(--tea); }
.btn-text { min-height: auto; padding: 0 0 4px; border-radius: 0; border-bottom: 1px solid currentColor; }

.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 46px; }
.section-head p { max-width: 520px; margin: 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.advisor-flow .process-step { min-height: 190px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(31,36,33,.02);
}
.card-pad { padding: 32px; }
.card:hover.card-lift { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-lift { transition: transform .25s, box-shadow .25s; }

.placeholder {
  position: relative;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(31,36,33,.045) 0 10px, transparent 10px 22px),
    linear-gradient(145deg, #e9e3d4, #cab98e);
}
.placeholder span {
  position: absolute;
  left: 20px;
  top: 18px;
  color: rgba(31,36,33,.42);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.image-frame {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #e9e3d4, #cab98e);
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.ambassador-image { aspect-ratio: 4 / 4.6; min-height: 0; }
.ambassador-card { display: flex; flex-direction: column; height: 100%; }
.ambassador-card .placeholder { aspect-ratio: 4/4.6; min-height: 0; }
.ambassador-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 26px; }
.ambassador-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.city { font-size: 13px; color: rgba(31,36,33,.5); letter-spacing: .08em; text-transform: uppercase; }
.role { color: var(--tea); font-size: 13px; letter-spacing: .13em; text-transform: uppercase; }
.quote { font-family: 'Newsreader', Georgia, serif; font-size: 21px; line-height: 1.35; font-style: italic; color: rgba(31,36,33,.82); }
.tags, .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ambassador-card .tags { margin-top: auto; }
.tag, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: #e4f0df;
  color: #2c4230;
}
.badge { border: 1px solid rgba(44,66,48,.18); background: rgba(250,248,243,.76); }
.card-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: rgba(31,36,33,.58); font-size: 14px; }

.process-step { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); }
.step-number { color: var(--tea); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-strip .badge { color: var(--ivory); border-color: rgba(244,241,234,.24); background: rgba(244,241,234,.08); }

.page-hero { padding: 92px 0 74px; background: var(--green); color: var(--ivory); }
.page-hero p { color: var(--muted-light); max-width: 720px; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.filter-group label { display: block; margin-bottom: 8px; color: rgba(31,36,33,.62); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
select, input, textarea {
  width: 100%;
  border: 1px solid rgba(31,36,33,.18);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--tea); box-shadow: 0 0 0 3px rgba(184,154,106,.16); }
.empty-state { display: none; padding: 34px; border: 1px dashed rgba(31,36,33,.28); border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.52); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.pagination:empty { display: none; }
.pagination-btn {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.pagination-btn:hover:not(:disabled) { color: var(--tea); border-color: var(--tea); }
.pagination-btn:disabled { cursor: not-allowed; opacity: .42; }
.pagination-status { color: var(--muted); font-size: 14px; }

.profile-hero { padding: 70px 0; background: var(--green); color: var(--ivory); }
.profile-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 54px; align-items: center; }
.profile-main-image,
.profile-hero .placeholder {
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(244,241,234,.18);
}
.profile-main-image img { min-height: 520px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-light); margin: 22px 0; }
.experience-card { padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.experience-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.visual-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.visual-grid .placeholder,
.visual-grid .image-frame { min-height: 190px; border-radius: 18px; overflow: hidden; }
.visual-grid .placeholder:first-child,
.visual-grid .image-frame:first-child { grid-row: span 2; min-height: 398px; }
.visual-grid .image-frame:first-child img { min-height: 398px; }
.info-list { display: grid; gap: 14px; }
.info-item { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.info-item strong { display: block; margin-bottom: 4px; }

.form-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 44px; align-items: start; }
.form-panel { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 8px; color: rgba(31,36,33,.72); font-size: 14px; }
.radio-row, .checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.choice input { width: auto; }
.error { display: none; margin-top: 6px; color: #9f3f2f; font-size: 13px; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #9f3f2f; }
.reminder { margin: 26px 0; padding: 20px; border-radius: 16px; background: rgba(184,154,106,.12); }
.form-error { color: #9f3f2f; background: rgba(159,63,47,.1); }
[hidden] { display: none !important; }

.success-icon { width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center; color: var(--ivory); background: var(--green); font-size: 34px; margin-bottom: 26px; }
.success-lede { color: rgba(31,36,33,.68); }
.success-detail {
  display: inline-grid;
  gap: 4px;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.success-detail:empty { display: none; }
.success-detail strong { color: var(--green); }
.success-detail span { color: var(--muted); }
.policy-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); background: #fff; }
.policy-table th, .policy-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { background: rgba(44,66,48,.08); color: var(--green); }
.policy-table tr:last-child td { border-bottom: none; }
.match-shell { display: grid; gap: 34px; }
.match-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.match-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.match-option {
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.match-option:hover,
.match-option.selected { border-color: var(--tea); box-shadow: 0 0 0 3px rgba(184,154,106,.16); }
button:disabled { cursor: not-allowed; opacity: .45; }
.metric-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric-card span { display: block; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 10px; font-family: 'Newsreader', Georgia, serif; font-size: 42px; font-weight: 400; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ops-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ops-table th,
.ops-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ops-table th { background: rgba(44,66,48,.08); color: var(--green); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ops-table tr:last-child td { border-bottom: none; }
.match-free-text textarea { margin-top: 12px; }
.ai-status { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.ai-pulse { width: 44px; height: 44px; border-radius: 999px; margin: 0 auto 18px; background: radial-gradient(circle, var(--gold-light), rgba(184,154,106,.12)); animation: aiPulse 1.3s ease-in-out infinite; }
.reason-block { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.reason-block strong { display: block; color: var(--green); margin-bottom: 4px; }
.reason-block p { margin: 0; color: var(--muted); }
.recommendation-feedback { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@keyframes aiPulse { 0%, 100% { transform: scale(.92); opacity: .65; } 50% { transform: scale(1.04); opacity: 1; } }
.context-banner { display: grid; gap: 4px; margin-bottom: 22px; padding: 18px; border: 1px solid rgba(184,154,106,.36); border-radius: 16px; background: rgba(184,154,106,.12); }
.context-banner strong { color: var(--green); }
.summary-panel .copy-box { white-space: pre-wrap; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); line-height: 1.55; }
.proposal-panel { display: grid; gap: 24px; }
.proposal-card ul { color: var(--muted); line-height: 1.7; }
.ai-input-panel textarea {
  min-height: 170px;
  font-size: 18px;
  line-height: 1.55;
  background: var(--paper);
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.prompt-chip {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.prompt-chip:hover,
.prompt-chip.selected {
  color: var(--green);
  border-color: var(--tea);
  background: rgba(184,154,106,.12);
}
.match-error { display: none; }
.chat-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.chat-transcript {
  display: grid;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
}
.chat-message {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.chat-message.user {
  grid-template-columns: minmax(0, 1fr) 54px;
}
.chat-message.user .chat-avatar { grid-column: 2; grid-row: 1; }
.chat-message.user .chat-bubble { grid-column: 1; grid-row: 1; justify-self: end; background: var(--green); color: var(--ivory); }
.chat-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  letter-spacing: .08em;
}
.chat-bubble {
  max-width: 760px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  line-height: 1.6;
}
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-reply {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.quick-reply:hover,
.quick-reply.selected {
  color: var(--green);
  border-color: var(--tea);
  background: rgba(184,154,106,.12);
}
.chat-composer textarea {
  min-height: 130px;
  background: var(--paper);
}
.footer { padding: 72px 0 34px; background: var(--green-dark); color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.footer a { color: var(--muted-light); display: block; margin: 9px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 24px; color: rgba(244,241,234,.5); font-size: 13px; }

@media (max-width: 980px) {
  .nav { padding: 18px 24px; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 24px; right: 24px; top: 72px; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(250,248,243,.98); box-shadow: var(--shadow); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .hero { min-height: auto; padding: 88px 0; }
  .hero-full { min-height: 640px; }
  .hero-grid, .profile-grid, .form-shell { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5, .filters, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
}

@media (max-width: 640px) {
  .container, .container-wide { width: min(100% - 32px, 1180px); }
  .section { padding: 72px 0; }
  .section-sm { padding: 52px 0; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .tagline { display: none; }
  .grid-2, .grid-3, .grid-4, .grid-5, .filters, .form-grid, .footer-grid, .experience-card, .visual-grid { grid-template-columns: 1fr; }
  .match-options { grid-template-columns: 1fr; }
  .chat-panel { padding: 18px; border-radius: 20px; }
  .chat-message, .chat-message.user { grid-template-columns: 1fr; }
  .chat-message.user .chat-avatar, .chat-message.user .chat-bubble { grid-column: auto; grid-row: auto; justify-self: stretch; }
  .visual-grid .placeholder:first-child,
  .visual-grid .image-frame:first-child {
    grid-row: auto;
    min-height: 220px;
  }
  .visual-grid .image-frame:first-child img { min-height: 220px; }
  .profile-main-image, .profile-main-image img, .profile-hero .placeholder { min-height: 320px; }
  .hero-art { min-height: 300px; }
  .hero-search { flex-wrap: wrap; border-radius: 22px; }
  .hero-search .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
