/* ActionCOACH West Dorset job page
   Colours, button shape and header/footer layout taken from the live
   microsite at https://business.actioncoach.co.uk/coaches/west-dorset
   Font: Poppins, as used for Simon's ActionCOACH microsite work. */

:root {
  --navy: #001c43;
  --navy-mid: #00548f;
  --yellow: #ffeb00;
  --text: #202020;
  --text-soft: #3a3a3a;
  --black: #1e1e1e;
  --footer: #202020;
  --white: #ffffff;
  --grey: #f5f5f5;
  --line: #d8d8d8;
  --max: 1334px;
  --content: 720px;
  --shadow: 5px 10px 20px #00000040;
  --font: "Poppins", Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding: 0 0 0 1.2rem; }
li { margin: 0 0 0.45rem; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--white); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--yellow);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 4px;
}
.skip:focus { top: 1rem; }

/* Header: white bar, logo 62px, as on the microsite */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eff0f0;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo img { height: 62px; width: auto; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-phone {
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--navy-mid); }

/* Buttons: microsite .c-button.theme-red (yellow) and .theme-blue (near-black) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  border-radius: 30px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  padding: 10px 22px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  width: fit-content;
}
.btn:hover { transform: translateY(5px); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn--yellow {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.btn--yellow:hover { color: #000; background: var(--yellow); }
.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--dark:hover { color: var(--white); }
.btn--on-dark { border-color: var(--white); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(6px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.75rem; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  min-height: 28rem;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(0, 28, 67, 0.78), rgba(0, 28, 67, 0.86)), url("../img/hero-colonnade.jpg");
  background-size: cover;
  background-position: center;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 2rem;
  width: 100%;
}
.kicker {
  color: var(--yellow);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--white);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: var(--white);
}
.hero-meta li { margin: 0; }
.hero-meta strong { font-weight: 600; }
.must {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
}

/* Page sections */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 4rem 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.prose { max-width: var(--content); }
.prose-wide { max-width: 980px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--yellow);
}
.card h2 { margin-bottom: 1rem; }
.card ul { margin-bottom: 0; }

.invest {
  border-left: 4px solid var(--yellow);
  background: var(--grey);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 2rem 0 0;
  max-width: 720px;
}
.invest p:last-child { margin-bottom: 0; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  margin: 0;
  padding: 1.25rem 1rem 1.25rem 0;
  border-top: 4px solid var(--yellow);
  counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

/* Form */
.form-panel {
  background: var(--white);
  padding: 2rem;
  max-width: 720px;
  box-shadow: 0 8px 30px #00000014;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.field { margin: 0 0 1.15rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}
.req { color: #b30400; }
.hint { display: block; font-size: 0.85rem; color: var(--text-soft); font-weight: 400; margin-top: 0.25rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
input[type="file"] {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
}
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--navy); }
.check label { font-weight: 500; color: var(--navy); }
.form-note { font-size: 0.9rem; color: var(--text-soft); margin: 1rem 0 0; }
.form-note a { color: var(--navy); }
.mailto-fallback { margin-top: 1.5rem; }

/* Footer: #202020, as on the microsite */
.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.site-footer__left { max-width: 28rem; }
.site-footer .logo { display: inline-block; margin-bottom: 1rem; }
.site-footer .logo img { height: 52px; }
.footer-line { margin: 0 0 0.65rem; color: var(--white); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}
.footer-legal span { opacity: 0.7; }
.socials { display: flex; gap: 0.75rem; align-items: center; }
.socials a {
  display: inline-flex;
  color: var(--white);
}
.socials a:hover { color: var(--yellow); }
.socials svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 900px) {
  .grid-3, .process { grid-template-columns: 1fr; }
  .process li { padding-right: 0; }
}
@media (max-width: 800px) {
  .hero {
    background-image: linear-gradient(rgba(0, 28, 67, 0.78), rgba(0, 28, 67, 0.86)), url("../img/hero-colonnade-1400.jpg");
  }
}
@media (max-width: 767px) {
  .site-header__inner {
    padding: 1rem 1.25rem;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }
  .logo img { height: 44px; }
  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
  }
  .header-phone { font-size: 0.85rem; }
  .header-actions .btn--dark { display: none; }
  .hero__inner, .wrap, .site-footer__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero__inner { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .section { padding: 3rem 0; }
  .form-panel { padding: 1.25rem; }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn { width: 100%; justify-content: center; }
  .header-actions .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 22px;
    box-shadow: 2px 4px 10px #00000030;
  }
}
