/* Visual language taken from quest-africa.com: white pages, navy text, Cormorant Garamond for
   headings, Lato for body, Montserrat for the big hero line, rust and sage buttons. */
:root {
  --navy: #1d2a3a;
  --text: #2f3a47;
  --muted: #6a7480;
  --line: #e4e2dc;
  --tint: #f6f5f1;
  --rust: #b9532b;
  --rust-dark: #9c4321;
  --sage: #7c8a6e;
  --sage-dark: #67755b;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: Montserrat, var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
h1, h2, h3 { color: var(--navy); margin: 0 0 12px; line-height: 1.15; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
p { margin: 0 0 16px; }
a { color: var(--rust); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.testbar { background: var(--navy); color: #e8e4da; font-size: 13px; padding: 8px 16px; text-align: center; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-sep { width: 1px; height: 36px; background: var(--line); }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--navy); }
@media (max-width: 520px) { .brand-logo { height: 42px; } .brand-sub { font-size: 20px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #555f6b; text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.nav a:hover { color: var(--navy); }

.btn { appearance: none; border: 0; border-radius: var(--radius); padding: 13px 24px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; cursor: pointer; transition: background 150ms ease; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-rust { background: var(--rust); }
.btn-rust:hover { background: var(--rust-dark); }
.btn-sage { background: var(--sage); }
.btn-sage:hover { background: var(--sage-dark); }

.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding-top: 64px; padding-bottom: 120px; }
.hero h1 { color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6.4vw, 72px); max-width: 18ch; }
.hero-script { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.hero-copy { font-size: 18px; margin-bottom: 28px; }

.block { padding: 88px 0; }
.tinted { background: var(--tint); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--text); }

.facts-row { margin-top: 48px; border: 1px solid #cfd3d8; border-radius: 10px; padding: 24px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.fact { display: flex; flex-direction: column; }
.fact-num { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); }
.fact-label { color: var(--text); }

.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.card { appearance: none; font: inherit; color: inherit; text-align: left; background: #fff; border: 1px solid #cfd3d8; border-radius: 8px; padding: 24px; cursor: pointer; display: flex; flex-direction: column; transition: border-color 150ms ease; }
.card:hover { border-color: var(--navy); }
.card p { font-size: 16px; flex: 1; }
.card-link { color: var(--rust); font-weight: 700; font-size: 15px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.quote { margin: 0; padding: 32px; border-left: 3px solid var(--rust); background: var(--tint); }
.quote p { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--navy); }
.quote footer { color: var(--muted); font-size: 15px; }

.site-footer { background: var(--navy); color: #c9cdd3; font-size: 14px; padding: 28px 0 88px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* chat */
.chat-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 10; border: 0; background: var(--rust); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.chat-launcher:hover { background: var(--rust-dark); }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #cfd3d8; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 15px; }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 8px 8px 0 0; }
.chat-head strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.chat-sub { display: block; font-size: 12px; color: #c9cdd3; }
.chat-head-actions { display: flex; gap: 4px; }
.chat-head .icon-btn { color: #c9cdd3; }
.chat-head .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 6px; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.icon-btn:hover { background: var(--tint); color: var(--navy); }
.icon-btn svg { width: 20px; height: 20px; }
.mic.recording { color: #fff; background: var(--rust); }
.chat-log { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 8px; overflow-wrap: anywhere; line-height: 1.55; }
.msg p:last-child, .msg ul:last-child { margin-bottom: 0; }
.msg p { margin-bottom: 10px; }
.msg ul { margin: 0 0 10px; padding-left: 20px; }
.msg-user { align-self: flex-end; background: var(--navy); color: #fff; white-space: pre-wrap; }
.msg-bot { align-self: flex-start; background: var(--tint); border: 1px solid var(--line); color: var(--text); }
.msg-error { align-self: center; color: var(--rust-dark); font-size: 14px; }
.typing { color: var(--muted); font-size: 14px; align-self: flex-start; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid #cfd3d8; border-radius: var(--radius); padding: 8px 10px; font: inherit; max-height: 120px; }
.chat-form textarea:focus { outline: 2px solid #e6c2ae; border-color: var(--rust); }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav a { display: none; }
}
@media (max-width: 520px) {
  .cards, .facts-row { grid-template-columns: 1fr; }
  .block { padding: 56px 0; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .chat-head { border-radius: 0; }
}

/* sign-in page */
.login { max-width: 420px; margin: 96px auto; padding: 0 16px; text-align: center; }
.login img { margin-bottom: 16px; }
.login p { color: var(--text); }
.login-error { color: var(--rust-dark); }
