:root {
  --color-blue1: #2a343e;
  --color-blue2: #d6e0ed;
  --color-blue3: #0047b3;
  --color-blue4: #23353d;
  --color-blue5: #05002f;
  --color-blue6: #017DCB;
  --color-grey1: #3e3e3e;
  --color-grey2: #ededed;
  --color-grey3: #efefef;
  --color-grey4: #D2D2D2;
  --color-grey5: #fafafa;
  --color-yellow1: #e6e86f;
  --color-yellow2: #e0ef4e;
  --color-yellow3: #faffc7;
  --color-yellow4: #FFF47E;
  /* button colours */
  --color-amber: #D99A26;
  --color-amber-deep: #B87E17;
  --color-amber-wash: #fbf6ec;
  --color-amber-line: #ece0c9;
  --color-ink: #15202b;
  /* warm pink-grey for the contact/footer band */
  --color-footer: #D9D3D3;
  /* typefaces */
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  font-size: 16px;
  margin: 0;
  font-family: var(--font-body);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
a {
  text-decoration: none;
}
.highlight {
  background: linear-gradient(transparent 62%, var(--color-yellow4) 62%);
  padding: 0 0.1em;
}
:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}
header {
  /* To change the header background, edit the url() line below.
     The file must sit in public_html/images/ */
  background: var(--color-blue4);
  background-image: url(/images/mountains.webp);
  background-size: cover;
  background-position: 80% center;
}
header section {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
  text-align: center;
}
@media only screen and (max-width: 767px), print {
  header section {
    min-height: 300px;
  }
}
@media only screen and (min-width: 768px) {
  header section {
    min-height: 440px;
  }
}
header .logo {
  margin: 0 auto;
}
header .logo img {
  width: auto;
  height: auto;
}
@media only screen and (max-width: 767px), print {
  header .logo img {
    max-height: 180px;
    max-width: 85vw;
  }
}
@media only screen and (min-width: 768px) {
  header .logo img {
    max-height: 280px;
    max-width: 100%;
  }
}
header nav {
  display: flex;
  align-items: center;
}
header nav ul {
  display: flex;
  gap: 2rem;
  padding-left: 0;
  margin: 0;
  list-style-type: none;
}
header nav ul a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition-duration: 0.15s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
@media only screen and (max-width: 767px), print {
  header nav ul {
    gap: 1.25rem;
  }
  header nav ul a {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  header nav ul a {
    font-size: 1.15rem;
  }
}
header nav ul a:hover {
  border-bottom-color: var(--color-amber);
}
.page {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}
.page section {
  margin: 0 auto;
}
.page section.section-intro {
  display: flex;
  max-width: 1400px;
}
.page section.section-intro.narrow {
  flex-direction: column;
}
@media only screen and (min-width: 1200px) {
  .page section.section-intro.narrow {
    display: none;
  }
}
.page section.section-intro.narrow .row {
  display: flex;
  padding: 0 1rem;
  gap: 1rem;
}
.page section.section-intro.narrow .row.row1 p {
  text-align: right;
}
.page section.section-intro.narrow .row.row1 .copy {
  flex: 3;
}
.page section.section-intro.narrow .row.row1 .person {
  flex: 2;
}
.page section.section-intro.narrow .row.row2 {
  background-color: var(--color-grey5);
}
.page section.section-intro.narrow .row.row2 .copy {
  flex: 3;
}
.page section.section-intro.narrow .row.row2 .person {
  flex: 2;
}
.page section.section-intro.wide {
  gap: 2rem;
  align-items: center;
}
@media only screen and (max-width: 1199px) {
  .page section.section-intro.wide {
    display: none;
  }
}
.page section.section-intro.wide .copy {
  flex: 4;
}
.page section.section-intro.wide .copy p {
  text-align: center;
}
.page section.section-intro.wide .person {
  flex: 3;
}
.page section.section-intro .copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page section.section-intro .copy p {
  font-weight: 700;
}
@media only screen and (max-width: 767px), print {
  .page section.section-intro .copy p {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-intro .copy p {
    font-size: 1.7rem;
  }
}
.page section.section-intro .person {
  max-width: 560px;
}
.page section.section-intro .person img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

/* =========================================================
   Mobile layout for the intro rows
   Below 768px the side-by-side split leaves each column too
   narrow, so the rows stack: text first at full width, then
   the photo as a cropped band beneath it.
   ========================================================= */
@media only screen and (max-width: 767px) {
  .page {
    padding: 1.25rem 0;
  }
  .page section.section-intro.narrow .row {
    flex-direction: column;
    gap: 1.1rem;
    padding: 0 1.25rem;
  }
  .page section.section-intro.narrow .row.row1 {
    padding-bottom: 1.5rem;
  }
  .page section.section-intro.narrow .row.row1 .copy {
    order: 1;
  }
  .page section.section-intro.narrow .row.row1 .person {
    order: 2;
  }
  .page section.section-intro.narrow .row.row1 p {
    text-align: left;
  }
  .page section.section-intro.narrow .row.row2 {
    padding: 1.4rem 1.25rem 1.6rem;
  }
  .page section.section-intro .copy p {
    font-size: 1.22rem;
    line-height: 1.4;
    margin: 0;
  }
  .page section.section-intro .person {
    max-width: 100%;
    width: 100%;
  }
  .page section.section-intro .person img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
  }
}

/* =========================================================
   Benefit list
   Plain text, no links. The emphasis comes from a soft tinted
   panel, hairline separators and a small amber check mark.
   ========================================================= */
.benefit-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.5rem 1.4rem;
  background: var(--color-amber-wash);
  border-radius: 10px;
  box-shadow: inset 3px 0 0 0 var(--color-amber);
}
.benefit-list li {
  position: relative;
  padding: 0.6em 0 0.6em 1.85em;
  line-height: 1.35;
  border-top: 1px solid var(--color-amber-line);
}
.benefit-list li:first-child {
  border-top: 0;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.1 12.4 2.1 8.4l1.5-1.5 2.5 2.6 6.3-6.4 1.5 1.5z' fill='%23D99A26'/%3E%3C/svg%3E") center / contain no-repeat;
}
.benefit-list li.no-bullet {
  color: var(--color-grey1);
}
.benefit-list li.no-bullet::before {
  content: none;
}
/* list text is a step smaller than the lead paragraph so the panel stays calm */
@media only screen and (max-width: 767px), print {
  .page section.section-intro .copy .benefit-list li {
    font-size: 0.95rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-intro .copy .benefit-list li {
    font-size: 1.35rem;
  }
}
.page section.section-enroll {
  background-color: var(--color-blue6);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.page section.section-enroll p {
  max-width: 500px;
  margin: 1rem auto;
  line-height: 1.5;
  color: white;
}
@media only screen and (max-width: 767px), print {
  .page section.section-enroll p {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-enroll p {
    font-size: 1.5rem;
  }
}
.page section.section-enroll .btn a {
  display: inline-block;
  background-color: var(--color-amber);
  border: solid 2px var(--color-amber);
  color: var(--color-ink);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition-duration: 0.15s;
  font-weight: 700;
}
@media only screen and (max-width: 767px), print {
  .page section.section-enroll .btn a {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-enroll .btn a {
    font-size: 1.2rem;
  }
}
.page section.section-enroll .btn a:hover {
  background-color: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  color: white;
}
.page section.section-about {
  max-width: 700px;
  padding: 1rem;
}
.page section.section-about h2 {
  text-align: center;
  margin-bottom: 0;
}
@media only screen and (max-width: 767px), print {
  .page section.section-about h2 {
    font-size: 1.6rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-about h2 {
    font-size: 2.1rem;
  }
}
.page section.section-about p {
  line-height: 1.7;
}
@media only screen and (max-width: 767px), print {
  .page section.section-about p {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  .page section.section-about p {
    font-size: 1.1rem;
  }
}
footer {
  background: var(--color-footer);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
footer section {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
footer section.section-contact {
  padding: 1rem;
}
footer section.section-contact h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
@media only screen and (max-width: 767px), print {
  footer section.section-contact h2 {
    font-size: 1.6rem;
  }
}
@media only screen and (min-width: 768px) {
  footer section.section-contact h2 {
    font-size: 2.1rem;
  }
}
.contact-intro {
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.6;
  color: #55606a;
  font-size: 1.02rem;
}
footer section.section-copyright {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
}

/* =========================================================
   Contact form
   Cognito wraps every field in its own bordered container,
   which produced a box inside a box. The reset below strips
   that chrome, then the border is put back on the real
   inputs only.
   ========================================================= */
.form-card {
  background: white;
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(21, 32, 43, 0.08);
}
.form-card div,
.form-card fieldset,
.form-card section,
.form-card span,
.form-card label,
.form-card ul,
.form-card li,
.form-card [class^="cog-"],
.form-card [class*=" cog-"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.form-card fieldset {
  margin: 0 !important;
  padding: 0 !important;
}
.form-card .cog-cognito,
.form-card .cog-form {
  font-family: var(--font-body) !important;
}
.form-card .cog-label,
.form-card .cog-label__text {
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--color-ink) !important;
  letter-spacing: 0 !important;
}
/* Element selectors ONLY. Cognito's .cog-input is a wrapper div,
   not the field itself, so styling it draws a second box. */
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.form-card textarea,
.form-card select {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--color-ink) !important;
  background: white !important;
  border: 1px solid #b9c0c6 !important;
  border-radius: 6px !important;
  padding: 0.7rem 0.85rem !important;
  box-shadow: none !important;
  transition-duration: 0.15s !important;
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--color-blue6) !important;
  box-shadow: 0 0 0 3px rgba(1, 125, 203, 0.18) !important;
  outline: none !important;
}
.form-card .cog-button,
.form-card button[type="submit"] {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--color-amber) !important;
  color: var(--color-ink) !important;
  border: solid 2px var(--color-amber) !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.8rem !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition-duration: 0.15s !important;
}
.form-card .cog-button:hover,
.form-card button[type="submit"]:hover {
  background: var(--color-amber-deep) !important;
  border-color: var(--color-amber-deep) !important;
  color: white !important;
}
.form-card .cog-heading,
.form-card .cog-title {
  font-family: var(--font-display) !important;
  color: var(--color-ink) !important;
}
/* keep validation visible after the chrome reset above */
.form-card input[aria-invalid="true"],
.form-card textarea[aria-invalid="true"],
.form-card select[aria-invalid="true"] {
  border-color: #c0392b !important;
}
.form-card .cog-error-message,
.form-card .cog-error-summary {
  font-family: var(--font-body) !important;
  color: #c0392b !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* ---- Contact form (replaces the Cognito embed) ---- */
.contact-form { display: flex; flex-direction: column; gap: 22px; text-align: left; }
.contact-form .cf-field { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0;
    font-weight: 600; font-size: 1.05rem; color: #1f2933; }
.contact-form legend { padding: 0; margin-bottom: 10px; }
.contact-form .cf-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400;
    padding: 14px 16px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; color: #1f2933; }
.contact-form input::placeholder { color: #b5b5b5; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #d19c3f; outline-offset: 1px; border-color: #d19c3f; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 12px; padding: 16px 40px; border: 0; border-radius: 8px;
    background: #d19c3f; color: #1f2933; font: inherit; font-weight: 700; font-size: 1.1rem; letter-spacing: .03em;
    text-transform: uppercase; cursor: pointer; }
.contact-form button:hover { background: #c08b2f; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.contact-form .cf-status { margin: 0; min-height: 1.2em; font-weight: 500; }
.contact-form .cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact-form .cf-name-row { grid-template-columns: 1fr; gap: 12px; } }
