:root {
  --paper: #fbf7ef;
  --paper-strong: #fffdf8;
  --ink: #2d3a31;
  --muted: #6f695f;
  --line: rgba(45, 58, 49, 0.14);
  --sage: #657a5d;
  --sage-dark: #394c3f;
  --clay: #b9674e;
  --clay-dark: #8c4938;
  --wheat: #ead9c4;
  --shadow: 0 18px 48px rgba(45, 58, 49, 0.15);
  --soft-shadow: 0 12px 30px rgba(45, 58, 49, 0.10);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

#who,
#vacancies,
#process,
#quiz,
#legal {
  scroll-margin-top: 118px;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
}

.header-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(45, 58, 49, 0.14);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

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

.brand img {
  width: 230px;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(45, 58, 49, 0.78);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--sage-dark);
  background: rgba(101, 122, 93, 0.10);
  outline: 0;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.button-primary {
  color: #fffdf8;
  background: var(--clay);
  box-shadow: 0 14px 26px rgba(185, 103, 78, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--clay-dark);
  box-shadow: 0 18px 34px rgba(140, 73, 56, 0.30);
}

.button-secondary {
  color: var(--sage-dark);
  background: #fffdf8;
  border-color: rgba(57, 76, 63, 0.18);
  box-shadow: var(--soft-shadow);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(57, 76, 63, 0.32);
  box-shadow: var(--shadow);
}

.button-small {
  min-height: 46px;
  padding: 12px 18px;
  color: #fffdf8;
  background: var(--sage-dark);
  white-space: nowrap;
}

.button-small:hover,
.button-small:focus-visible {
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 138px 0 82px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  background-image: url("assets/images/hero-family-home.jpg");
  background-size: cover;
  background-position: center 44%;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04);
  transition: transform 90ms linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(35, 42, 34, 0.42) 0%, rgba(35, 42, 34, 0.18) 48%, rgba(35, 42, 34, 0.30) 100%),
    linear-gradient(0deg, rgba(35, 42, 34, 0.28), rgba(35, 42, 34, 0.08));
}

.hero-content {
  display: flex;
  justify-content: flex-start;
}

.hero-panel {
  width: min(650px, 100%);
  padding: 42px;
  color: var(--ink);
  background: rgba(251, 247, 239, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: 4.3rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(45, 58, 49, 0.84);
  font-size: 1.23rem;
}

.hero-bullets,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 28px;
}

.hero-bullets li,
.fit-item,
.consideration {
  position: relative;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(45, 58, 49, 0.12);
  border-radius: 8px;
}

.hero-bullets li::before,
.fit-item::before,
.consideration::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf8 0 22%, var(--sage) 24% 100%);
  box-shadow: 0 0 0 5px rgba(101, 122, 93, 0.12);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.microcopy,
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.microcopy {
  margin: 0;
}

.section {
  padding: 96px 0;
}

.section-heading {
  width: min(700px, 100%);
  margin-bottom: 34px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.fit-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, #f3ebdf 100%);
}

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

.fit-item {
  min-height: 134px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 26px rgba(45, 58, 49, 0.07);
}

.section-cta {
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--clay-dark);
  font-weight: 800;
  border-bottom: 2px solid rgba(185, 103, 78, 0.35);
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--sage-dark);
  border-color: rgba(101, 122, 93, 0.52);
  outline: 0;
}

.vacancies-section {
  background: var(--paper-strong);
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.vacancy-card {
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(45, 58, 49, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(45, 58, 49, 0.10);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.vacancy-card:hover {
  transform: translateY(-7px);
  border-color: rgba(185, 103, 78, 0.30);
  box-shadow: 0 24px 50px rgba(45, 58, 49, 0.17);
}

.vacancy-image {
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: var(--wheat);
}

.vacancy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.vacancy-card:hover .vacancy-image img {
  transform: scale(1.055) translateY(-2px);
}

.vacancy-body {
  padding: 22px;
}

.vacancy-body h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.vacancy-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.vacancy-body .income {
  margin-bottom: 10px;
  color: var(--sage-dark);
  font-weight: 800;
}

.note {
  margin: 26px 0 0;
}

.process-section {
  background:
    linear-gradient(135deg, rgba(101, 122, 93, 0.14), rgba(185, 103, 78, 0.09)),
    var(--paper);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.process-copy {
  position: sticky;
  top: 120px;
}

.steps-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(45, 58, 49, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(45, 58, 49, 0.08);
}

.step span {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: #fffdf8;
  background: var(--sage-dark);
  border-radius: 50%;
  font-weight: 800;
}

.step p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.considerations-section {
  background: #fffdf8;
}

.considerations-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.consideration {
  min-height: 116px;
  display: flex;
  align-items: flex-end;
  background: #fbf7ef;
}

.quiz-section {
  background:
    linear-gradient(180deg, rgba(45, 58, 49, 0.92), rgba(57, 76, 63, 0.95)),
    var(--sage-dark);
  color: #fffdf8;
}

.quiz-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px;
  background: rgba(251, 247, 239, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.20);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
}

.quiz-intro p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.76);
}

.quiz-section .eyebrow {
  color: #e7c1a8;
}

.quiz-progress {
  height: 8px;
  margin: 28px 0 34px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.18);
  border-radius: 999px;
}

.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #e7c1a8, #fff0d8);
  border-radius: inherit;
  transition: width 260ms ease;
}

.quiz-step {
  animation: quizEnter 260ms ease both;
}

.quiz-step h3 {
  margin-bottom: 18px;
  color: #fffdf8;
  font-size: 1.45rem;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-option {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px;
  color: #fffdf8;
  text-align: left;
  background: rgba(255, 253, 248, 0.10);
  border: 1px solid rgba(255, 253, 248, 0.20);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 253, 248, 0.16);
  border-color: rgba(255, 253, 248, 0.42);
  outline: 0;
}

.answer-option.is-selected {
  color: var(--ink);
  background: #fff0d8;
  border-color: #fff0d8;
  transform: translateX(8px);
}

.quiz-back {
  margin-top: 18px;
  padding: 0;
  color: rgba(255, 253, 248, 0.76);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.38);
  cursor: pointer;
  font-weight: 700;
}

.quiz-back:hover,
.quiz-back:focus-visible {
  color: #fffdf8;
  outline: 0;
}

.quiz-summary {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
}

.summary-row {
  padding: 14px 16px;
  color: rgba(255, 253, 248, 0.88);
  background: rgba(255, 253, 248, 0.10);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
}

.summary-row strong {
  display: block;
  color: #fffdf8;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: rgba(255, 253, 248, 0.82);
  font-weight: 700;
}

.form-grid input {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
}

.form-grid input:focus {
  border-color: #e7c1a8;
  outline: 3px solid rgba(231, 193, 168, 0.22);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legal-section {
  background: #f3ebdf;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.legal-copy p,
.legal-details p {
  color: var(--muted);
}

.legal-details {
  padding: 26px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(45, 58, 49, 0.12);
  border-radius: 8px;
}

.legal-details p {
  margin-bottom: 8px;
}

.legal-details p:first-child {
  color: var(--ink);
}

.site-footer {
  padding: 46px 0;
  color: rgba(255, 253, 248, 0.78);
  background: #26352c;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.site-footer img {
  width: 250px;
  margin-bottom: 18px;
  filter: brightness(1.18);
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: #f3cfb5;
  font-weight: 800;
  border-bottom: 1px solid rgba(243, 207, 181, 0.52);
}

.simple-page {
  background: var(--paper);
}

.simple-main {
  padding: 138px 0 70px;
}

.simple-hero {
  padding: 78px 0;
  background:
    linear-gradient(135deg, rgba(101, 122, 93, 0.16), rgba(185, 103, 78, 0.10)),
    var(--paper);
}

.simple-panel {
  width: min(860px, 100%);
}

.simple-panel h1 {
  max-width: 14ch;
}

.content-section {
  padding: 62px 0 90px;
  background: #fffdf8;
}

.content-body {
  width: min(860px, 100%);
  color: var(--muted);
}

.content-body h2,
.content-body h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.content-body h2 {
  margin-top: 36px;
  font-size: 2rem;
}

.content-body h3 {
  margin-top: 28px;
}

.content-body ul {
  padding-left: 22px;
}

.content-body li {
  margin-bottom: 8px;
}

.thanks-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes quizEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .hero::before {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .fit-grid,
  .considerations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vacancy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .header-shell {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding: 2px 0;
  }

  .split-layout,
  .legal-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .header-shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    top: 10px;
  }

  #who,
  #vacancies,
  #process,
  #quiz,
  #legal {
    scroll-margin-top: 166px;
  }

  .header-shell {
    min-height: 66px;
    padding: 9px 10px 10px;
  }

  .brand img {
    width: 178px;
  }

  .button-small {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.9rem;
  }

  .main-nav {
    gap: 2px;
    font-size: 0.88rem;
  }

  .main-nav a {
    padding: 8px 10px;
  }

  .hero {
    min-height: 92vh;
    padding: 146px 0 52px;
    align-items: flex-end;
  }

  .hero-panel,
  .quiz-shell {
    padding: 26px;
  }

  h1 {
    max-width: 13ch;
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-bullets,
  .fit-grid,
  .considerations-grid,
  .vacancy-grid {
    grid-template-columns: 1fr;
  }

  .fit-item,
  .consideration {
    min-height: 88px;
  }

  .section {
    padding: 70px 0;
  }

  .step {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .step span {
    width: 48px;
    height: 48px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .simple-main {
    padding-top: 130px;
  }

  .simple-hero {
    padding: 54px 0;
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 164px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    padding-top: 184px;
  }

  .hero-panel,
  .quiz-shell {
    padding: 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .vacancy-body {
    padding: 18px;
  }
}
