/* ==========================================================================
   Beale Horton — design tokens (from brand guide "Beale horton 3.pdf")
   Royal blue on warm cream. Navy anchors all type; blue carries every action.
   ========================================================================== */
@import url("fonts.css");

:root {
  --blue: #2F5FE3;
  --blue-hover: #244BC0;
  --navy: #1C2957;
  --deep-navy: #0A1A3F;
  /* Page surface shifted from the brand's warm cream to a cool blue-gray per
     CEO feedback (cream read too close to Claude/Troveo); navy + blue unchanged. */
  --cream: #F3F5FA;
  --white: #FFFFFF;
  --slate: #4A5578;
  --whisper: #EEF3FD;
  --soft-blue: #D9E4FA;
  --line: #E0E4EE;
  --peach: #F9E9DD;
  --peach-text: #8A4A2B;
  --periwinkle: #AABBE8;

  --font-display: "Red Hat Display", sans-serif;
  --font-text: "Red Hat Text", sans-serif;
  --radius-card: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hidden { display: none !important; }

/* ---------------- header / footer (navy per brand) ---------------- */

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--navy);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img { height: 30px; width: auto; display: block; }

.site-footer {
  background: var(--navy);
  margin-top: 96px;
  padding: 40px 8px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-note { color: var(--periwinkle); font-size: 0.85rem; }

/* ---------------- buttons ---------------- */

.btn {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:disabled {
  background: var(--soft-blue);
  color: var(--navy);
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-secondary:hover { background: var(--whisper); }

.btn:focus-visible,
.option-card:focus-visible,
.chip:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------------- hero ---------------- */

.hero { padding: 120px 0 40px; min-height: 45vh; }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 300; }

.hero-lead { margin-top: 20px; max-width: 640px; font-size: 1.05rem; }

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust { font-size: 0.9rem; color: var(--slate); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.hero-benefits { margin-top: 56px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 18px;
}

.benefit-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.benefit-list li { display: flex; gap: 12px; }

.benefit-list strong { color: var(--navy); font-weight: 500; display: block; }

.benefit-list p { font-size: 0.92rem; }

.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- progress ---------------- */

.assessment { padding: 56px 0 0; min-height: 70vh; }

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.progress-track {
  height: 3px;
  background: var(--soft-blue);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 48px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.3s ease;
}

/* ---------------- question layout ---------------- */

.question-head { display: flex; gap: 16px; margin-bottom: 32px; }

.back-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.back-btn:hover { background: var(--whisper); }

.question-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 300; }

.question-sub { margin-top: 10px; font-size: 0.98rem; }

/* option cards (single + multi) */

.option-list { display: flex; flex-direction: column; gap: 14px; }

.option-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover { background: var(--whisper); }
.option-card.selected {
  border-color: var(--blue);
  background: var(--whisper);
}

.option-card .radio,
.option-card .checkbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--soft-blue);
  background: var(--white);
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card .radio { border-radius: 50%; }
.option-card .checkbox { border-radius: 6px; }

.option-card.selected .radio { border-color: var(--blue); }
.option-card.selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.option-card.selected .checkbox {
  border-color: var(--blue);
  background: var(--blue);
}
.option-card.selected .checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-card .option-title { color: var(--navy); font-weight: 500; display: block; }
.option-card .option-desc { font-size: 0.92rem; color: var(--slate); margin-top: 2px; }

/* continue row */

.continue-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 36px;
}

.continue-note { font-size: 0.9rem; color: var(--slate); }

/* ---------------- chips ---------------- */

.chip-group-title { color: var(--navy); font-weight: 500; margin-bottom: 4px; }
.chip-group-sub { font-size: 0.9rem; margin-bottom: 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  font-family: var(--font-text);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--whisper); }
.chip.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.system-block { margin-bottom: 28px; }
.system-block:last-child { margin-bottom: 0; }
.system-block h3 { font-size: 1.15rem; margin-bottom: 4px; }
.system-note { font-size: 0.9rem; margin-bottom: 16px; }

.volume-group { margin-top: 20px; }

/* intro callout on the volumes screen */

.callout { margin-bottom: 28px; }
.callout .eyebrow { margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.callout h3 { font-size: 1.15rem; margin-bottom: 10px; }
.callout p { font-size: 0.95rem; }

/* ---------------- language dropdowns ---------------- */

.lang-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dropdown { position: relative; }

.dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--slate);
  cursor: pointer;
}
.dropdown-toggle.has-value { color: var(--navy); font-weight: 500; }
.dropdown-toggle .caret {
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(45deg);
  margin-top: -4px;
}
.dropdown-toggle .optional { color: var(--slate); font-weight: 400; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(10, 26, 63, 0.12);
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--soft-blue);
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.dropdown-search:focus { outline: 2px solid var(--blue); outline-offset: -1px; }

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--whisper); }
.dropdown-empty { padding: 12px 14px; font-size: 0.9rem; color: var(--slate); }

/* ---------------- contact / thank-you ---------------- */

.finale { max-width: 560px; margin: 0 auto; text-align: center; }

.finale-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--whisper);
  border: 2px solid var(--blue);
  position: relative;
}
.finale-icon::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 22px;
  width: 18px;
  height: 34px;
  border: solid var(--blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.finale h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.finale .finale-sub { margin-top: 14px; }

.contact-form { margin-top: 36px; text-align: left; display: flex; flex-direction: column; gap: 20px; }

.field label {
  display: block;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.field label .optional { color: var(--slate); font-weight: 400; font-size: 0.85rem; }
.field .field-hint { font-size: 0.85rem; margin-top: -4px; margin-bottom: 8px; }

.field input {
  width: 100%;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--navy);
}
.field input::placeholder { color: #9aa3bd; }
.field input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.field input.invalid { border-color: var(--peach-text); }
.field-error { color: var(--peach-text); font-size: 0.85rem; margin-top: 6px; }

.form-error {
  background: var(--peach);
  color: var(--peach-text);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.92rem;
}

.finale-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.finale-actions .btn { width: 100%; }

.link-back {
  background: none;
  border: none;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
}
.link-back:hover { text-decoration: underline; }

.fine-print { margin-top: 24px; font-size: 0.85rem; color: var(--slate); }

/* ---------------- responsive ---------------- */

@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .benefit-list { grid-template-columns: 1fr; }
  .lang-row { grid-template-columns: 1fr; }
  .continue-row { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .continue-row .btn { width: 100%; }
  .question-head { flex-direction: column; gap: 12px; }
}

/* ---- hero + footer aligned to the Business Data page ---- */
.site-header{background:#050E24;border-bottom:0}
.hero{position:relative;overflow:hidden;background:#050E24;color:#fff;text-align:center;padding:110px 0 120px;min-height:0}
.hero:before{content:"";position:absolute;inset:0 0 0 44%;background:url(../assets/texture-ribbon-warm-web.jpg) center/cover no-repeat;opacity:.9}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#050E24 0%,rgba(5,14,36,.86) 32%,rgba(5,14,36,0) 76%)}
.hero .container{position:relative;z-index:2}
.hero h1{color:#fff;max-width:900px;margin:0 auto}
.hero-lead{color:rgba(255,255,255,.76);margin:20px auto 0;max-width:620px;font-weight:300}
.hero-cta{display:flex;justify-content:center;margin-top:34px}
.hero .btn-primary{background:#2557F6;color:#fff;border-radius:11px;padding:15px 28px;font-family:var(--font-display);font-weight:400}
.hero .btn-primary:hover{background:#1742CE}
.site-footer{background:linear-gradient(90deg,#050E24 0%,rgba(5,14,36,.86) 32%,rgba(37,87,246,.45) 76%,rgba(127,165,255,.35) 100%)}
.site-footer .footer-note{color:rgba(255,255,255,.68)}
