:root {
  --navy: #0e2336;
  --navy-soft: #1b3650;
  --burgundy: #511722;
  --burgundy-soft: #6b2230;
  --copper: #ba946c;
  --cream: #f4e0ce;
  --bg: #faf6ef;
  --surface: #ffffff;
  --line: #e4d9c8;
  --text: #1b2530;
  --text-muted: #5b6672;

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  height: 100px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 64px;
  width: auto;
}

.site-header__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header__phone i { font-size: 17px; color: var(--copper); }

.site-header__phone:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

.site-header__phone:active { transform: scale(0.97); }

@media (max-width: 640px) {
  .site-header__phone span { display: none; }
  .site-header__phone { padding: 12px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 35, 54, 0.92) 0%, rgba(14, 35, 54, 0.55) 38%, rgba(14, 35, 54, 0.15) 62%, rgba(14, 35, 54, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(56px, 8vw, 96px);
  color: #fff;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 760px;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  padding-bottom: 0.06em;
  display: inline-block;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}

.hero__utp {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
}

.hero__utp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(14, 35, 54, 0.3);
}

.hero__utp i { font-size: 15px; color: var(--copper); }

.hero__hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--burgundy);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn--primary:hover { background: var(--burgundy-soft); }
.btn--primary:active { transform: scale(0.98); }

.btn--block { width: 100%; padding: 16px 24px; }

/* ---------- Quiz section ---------- */

.quiz-section {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 56px) clamp(72px, 10vw, 120px);
  background: var(--bg);
}

.quiz-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin: 0 0 12px;
}

.quiz-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 12px;
}

.quiz-intro__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.quiz-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 60px -30px rgba(14, 35, 54, 0.25);
}

/* focused programmatically only, to anchor scroll position between steps */
.quiz-card:focus { outline: none; }

/* progress */

.quiz-progress { margin-bottom: 28px; }

.quiz-progress__track {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--burgundy);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}

.quiz-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* step */

.quiz-step h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.3;
}

.quiz-step__hint {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

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

.option {
  font-family: var(--font-sans);
  text-align: left;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.option:hover {
  border-color: var(--copper);
  background: #fff;
}

.option:active { transform: scale(0.99); }

.option.is-selected {
  border-color: var(--burgundy);
  background: rgba(81, 23, 34, 0.05);
  color: var(--burgundy);
  font-weight: 600;
}

/* contact method */

.contact-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.method:hover { border-color: var(--copper); }

.method.is-selected {
  border-color: var(--burgundy);
  background: rgba(81, 23, 34, 0.05);
  color: var(--burgundy);
}

/* form */

#lead-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field input {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder { color: #9aa3ab; }

.field input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(81, 23, 34, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--burgundy);
  flex-shrink: 0;
}

.form-error {
  color: var(--burgundy);
  font-size: 13px;
  margin: -4px 0 0;
}

/* done */

.quiz-step--done .done {
  text-align: center;
  padding: 12px 0 4px;
}

.done i {
  font-size: 44px;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.done h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 10px;
}

.done p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* nav */

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.btn-back:hover { color: var(--navy); }

.quiz-nav__hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-left: auto;
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 36px 20px 40px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.site-footer p { margin: 0; }

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__mark {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.footer__legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  max-width: 960px;
  width: 100%;
}

.footer__legal-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.footer__legal-col strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .footer__legal { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .hero__content { padding-bottom: 40px; }
  .hero__title { max-width: none; }
  .quiz-card { padding: 22px 18px; }
  .contact-method { grid-template-columns: 1fr; }
  .quiz-nav { flex-wrap: wrap; gap: 12px; }
}
