:root {
  --cream: #fbf1e6;
  --ink: #1f1a17;
  --white: #ffffff;
  --coral: #f4a28c;
  --coral-deep: #d9634a;
  --rust: #b84a33;
  --amber: #f6ae3a;
  --peach: #ffe1d3;
  --butter: #fff0cf;
  --teal-soft: #dcefea;
  --stone: #9c8f84;
  --line: #ead6c2;

  --font-display: "Fredoka", sans-serif;
  --font-hand: "Gochi Hand", cursive;
  --font-body: "Poppins", sans-serif;

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--ink);
}
a:hover {
  color: var(--rust);
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--white {
  background: var(--white);
}

.section--coral {
  background: var(--coral);
}

.stack {
  display: flex;
  flex-direction: column;
}

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

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--rust);
}
.section--coral .section-title {
  color: var(--ink);
}

.lead {
  font-size: 1.2rem;
}

.small {
  font-size: 0.9rem;
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1;
}

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

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: #f08f75;
  color: var(--ink);
}
.btn--sm {
  padding: 12px 22px;
  font-size: 1.25rem;
}
.btn--lg {
  padding: 16px 32px;
  font-size: 1.6rem;
}

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

.site-header {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--rust);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-weight: 600;
  margin-left: auto;
}

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

.hero {
  padding-top: 48px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hero__copy {
  flex: 999 1 520px;
  min-width: 0;
  gap: 20px;
}

.pill-dark {
  align-self: flex-start;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1;
  color: var(--coral-deep);
}

.hero__lead {
  max-width: 580px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero__cta span {
  font-size: 0.95rem;
}

.hero__art {
  flex: 1 1 300px;
  min-width: 0;
  height: 340px;
}

/* ---------- Cards ---------- */

.card {
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--cream {
  background: var(--cream);
  border-radius: 22px;
  padding: 26px;
  gap: 8px;
}
.card--peach {
  background: var(--peach);
}
.card--butter {
  background: var(--butter);
}
.card--white {
  background: var(--white);
}
.card--teal {
  background: var(--teal-soft);
}
.card--dashed {
  border: 2px dashed var(--ink);
  gap: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}
.card__title--lg {
  font-size: 1.9rem;
  line-height: 1.05;
}

.card h4 {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.card ol {
  padding-left: 1.3em;
}

/* ---------- Approach ---------- */

.approach {
  gap: 36px;
}
.approach__intro {
  gap: 14px;
  max-width: 760px;
}

/* ---------- Programmes ---------- */

.programmes {
  gap: 32px;
}

/* ---------- Journey ---------- */

.journey {
  gap: 28px;
}
.journey__intro {
  gap: 12px;
  max-width: 720px;
}

.feeling {
  background: var(--cream);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feeling strong {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rust);
}

/* ---------- Facilitators ---------- */

.facilitators {
  padding-top: 72px;
  padding-bottom: 24px;
  gap: 28px;
}

.card--person {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.avatar {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__body {
  flex: 1 1 220px;
  min-width: 0;
  gap: 8px;
}

/* ---------- Where ---------- */

.where {
  padding-top: 72px;
  padding-bottom: 72px;
  gap: 20px;
}
.where p {
  max-width: 640px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips li {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 600;
}
.chips li.chip--dashed {
  border-style: dashed;
}

/* ---------- Register form ---------- */

.register {
  max-width: 760px;
  gap: 22px;
}

.form {
  background: var(--cream);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label,
.form legend {
  font-weight: 600;
}

.input {
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--stone);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
.input:focus {
  outline: 3px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--ink);
}

.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.form legend {
  margin-bottom: 6px;
  padding: 0;
}

.legend-hint {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
}

/* Programme picker: one coloured tile per programme */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.choice {
  --tile: var(--white);
  --tile-on: var(--white);
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--tile);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.choice--peach {
  --tile: var(--peach);
  --tile-on: #ffc6ae;
}
.choice--butter {
  --tile: var(--butter);
  --tile-on: #ffdf94;
}
.choice--teal {
  --tile: var(--teal-soft);
  --tile-on: #b6e0d6;
}

.choice:hover {
  border-color: var(--stone);
}
.choice:has(input:checked) {
  background: var(--tile-on);
  border-color: var(--ink);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
.choice:active {
  transform: scale(0.98);
}

/* Custom tick box */
.choice input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white) center / 16px no-repeat;
  cursor: pointer;
}
.choice input:focus {
  outline: none;
}
.choice input:checked {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FBF1E6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}

.choice__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.choice__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.choice__meta {
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .choice {
    transition: none;
  }
  .choice:active {
    transform: none;
  }
}

.form .btn {
  align-self: flex-start;
}

.form__thanks {
  font-weight: 600;
}

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

.site-footer {
  border-top: 2px solid var(--line);
}
.site-footer .container {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.9rem;
}
.site-footer .logo {
  font-size: inherit;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  /* Header: logo + CTA on one row, section links in a swipeable row below */
  .site-header {
    padding-top: 14px;
    padding-bottom: 6px;
    gap: 8px 12px;
  }
  .header-cta {
    order: 2;
    margin-left: auto;
  }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 0 8px;
    font-size: 0.95rem;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.3rem;
  }
  .header-cta {
    padding: 10px 18px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
  }
  .hide-sm {
    display: none;
  }
  .section {
    padding: 56px 0;
  }
  .hero {
    padding-top: 24px;
    padding-bottom: 40px;
    gap: 16px;
  }
  .hero__lead {
    font-size: 1.1rem;
  }
  .hero__art {
    height: 170px;
  }
  .facilitators,
  .where {
    padding-top: 56px;
  }
  .where {
    padding-bottom: 56px;
  }
  .form {
    padding: 22px;
  }
  .card {
    padding: 24px;
  }
  .avatar {
    width: 88px;
    height: 88px;
  }
  .form .btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Very narrow phones (e.g. iPhone SE at 320px) */
@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .header-cta {
    padding: 10px 14px;
  }
  .pill-dark {
    font-size: 1.05rem;
  }
}
