/* Thymebridge site styles — shared by every page */

:root {
  --bg: #0B2E21;
  --bg-deep: #082318;
  --panel: rgba(8, 35, 24, 0.86);
  --line: rgba(243, 246, 241, 0.16);
  --text: #F3F6F1;
  --muted: #C9D8CF;
  --quiet: #A9C2B4;
  --accent: #B8F25C;
  --accent-ink: #0B2E21;
  --error: #FFB4A8;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #D4F99A; }

img, svg { max-width: 100%; }

/* Background illustration sits behind everything and never scrolls */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;           /* real visible height on phones */
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.nav a.call {
  margin-left: 4px;
  padding: 0 14px;
  border: 1.5px solid rgba(184, 242, 92, 0.6);
  color: var(--text);
}

/* ---------- Quiz layout ---------- */

.quiz-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 520px;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(243, 246, 241, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.progress {
  margin-bottom: 18px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--quiet);
}

.back {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.back[hidden] { display: inline-block; visibility: hidden; }

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 246, 241, 0.14);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.card h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(25px, 6.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card h1:focus { outline: none; }

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(243, 246, 241, 0.22);
  background: rgba(243, 246, 241, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.option::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--quiet);
  border-right: 2px solid var(--quiet);
  transform: rotate(45deg);
}
.option:hover,
.option:focus-visible {
  border-color: var(--accent);
  background: rgba(184, 242, 92, 0.10);
  outline: none;
}
.option.selected { border-color: var(--accent); }

.hint {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--quiet);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.field .optional { font-weight: 400; color: var(--quiet); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: #FFFFFF;
  color: #10231A;
  font: inherit;
  font-size: 17px;            /* 16px+ stops iPhones zooming in */
  font-weight: 500;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 242, 92, 0.35);
}
.field input.upper { text-transform: uppercase; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.error {
  margin: 0;
  min-height: 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}
.error:empty { display: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #C9F77F; color: var(--accent-ink); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(243, 246, 241, 0.5);
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
}
.btn-outline:hover { background: rgba(243, 246, 241, 0.08); color: var(--text); }

.small {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--quiet);
}

.tick {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin: 0;
  padding: 0 16px 6px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.trust li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ---------- Content pages (About, Contact) ---------- */

.content-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.content-main h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.content-main h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
}

.section { margin-top: 36px; }

.panel {
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(243, 246, 241, 0.06);
  border: 1px solid rgba(243, 246, 241, 0.12);
}
.panel p { margin: 0; color: var(--muted); }
.panel h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

a.service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}
a.service:hover { border-color: var(--accent); color: var(--text); }
a.service .go { margin-top: 6px; color: var(--accent); font-weight: 700; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-list a { font-weight: 700; word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--quiet);
}
.site-footer a { color: var(--muted); }

/* ---------- Phone tweaks ---------- */

@media (max-width: 520px) {
  .logo { font-size: 17px; gap: 6px; }
  .logo svg { width: 20px; height: 20px; }
  .nav a { padding: 0 7px; font-size: 14px; }
  .nav a.call { width: 44px; padding: 0; }
  .nav a.call .label { display: none; }
  .card { padding: 20px 16px; border-radius: 18px; }
  .option { font-size: 16px; min-height: 52px; padding: 10px 16px; }
}

@media (max-width: 360px) {
  .nav a.hide-xs { display: none; }
}

/* Short phones: tighten vertical spacing so a question fits on one screen */
@media (max-height: 700px) and (max-width: 520px) {
  .site-header { padding-top: 6px; padding-bottom: 6px; }
  .progress { margin-bottom: 12px; }
  .options { gap: 8px; margin-top: 14px; }
  .option { min-height: 48px; }
  .trust { display: none; }
  .card { padding: 16px 16px; }
  .card h1 { font-size: 24px; }
  .fields { gap: 8px; margin-top: 12px; }
  .field input { min-height: 46px; padding: 8px 14px; }
  .btn { min-height: 52px; margin-top: 10px; }
  .small { margin-top: 8px; font-size: 12px; }
  .site-footer { padding-bottom: 10px; }
}

/* ---------- Desktop: quiz on the left, illustration shows on the right ---------- */

@media (min-width: 960px) {
  .quiz-main { justify-content: flex-start; }
  .card { padding: 32px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { transition: none; }
}
