/* bexedwardscoaching.com — the whole site's styles.
   Replaces 26 Elementor/WordPress stylesheets (bex-006, 2026-07-30).
   Colours and type are taken from the Elementor kit that was in use, so the
   rebuild matches what the site looked like rather than reinterpreting it. */

/* ---------- fonts ---------- */
/* Self-hosted so the site has no external dependencies at all. Latin subset
   only, three weights — the old site pulled every Roboto weight and italic
   from Google for four pages of text. */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/roboto-300.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/roboto-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/roboto-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The nav/display face. Carried over from the original site, where it was
   loaded the same way. */
@font-face {
  font-family: 'Avant Garde BQ';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url(/assets/fonts/avantgarde-extralight.otf) format('opentype');
}

/* ---------- tokens ---------- */
:root {
  --blush:  #E8DEDB;   /* header, footer, page bands */
  --rose:   #B59083;   /* accent, popup panel */
  --slate:  #54595F;   /* buttons, nav text */
  --ink:    #111F2A;   /* popup heading */
  --stone:  #C2C2C2;   /* About band */
  --text:   #000;
  --measure: 1140px;   /* Elementor's content width */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom of the viewport on short pages rather than
     leaving it stranded halfway down. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Visible only to screen readers — used for the skip link and form labels. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; clip-path: none;
  background: #fff; color: var(--text); padding: 10px 16px;
}

/* ---------- header ---------- */
.site-header { background: var(--blush); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 95px;
}
.logo img { width: 263px; max-width: 60vw; }

.nav ul { display: flex; align-items: center; gap: 6px; }
/* Scoped to the list rather than `.nav button`, which would also match the
   hamburger and beat `.nav-toggle { display: none }` on specificity. */
.nav ul a, .nav ul button {
  font-family: 'Avant Garde BQ', 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 20px;
  color: var(--slate);
  text-decoration: none;
  padding: 10px 13px;
  display: block;
  background: none; border: 0; cursor: pointer;
  line-height: inherit;
}
.nav ul a:hover, .nav ul button:hover,
.nav ul a:focus-visible, .nav ul button:focus-visible { color: var(--rose); }

/* Hamburger, mobile only. */
.nav-toggle {
  display: none;
  font-family: 'Avant Garde BQ', 'Roboto', sans-serif;
  font-size: 20px; color: var(--slate);
  background: none; border: 0; cursor: pointer; padding: 10px 13px;
}

/* ---------- sections ---------- */
/* The hero is a 1280px-wide photo with its wording baked in. The original sat
   at natural size, centred, with the rose section colour showing either side on
   wider screens; matched here rather than stretched, so the baked-in text never
   scales up and softens. */
.hero { background: var(--rose); }
.hero img { width: 1280px; max-width: 100%; margin-inline: auto; }

.band { padding: 60px 0; }
.band--blush { background: var(--blush); }
.band--stone { background: var(--stone); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards img { width: 100%; }

.centre { text-align: center; }
.band > .wrap > .centre + .centre { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--slate);
  border: 0; border-radius: 25px;
  padding: 15px 30px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--ink); }
.btn--sm { padding: 10px 20px; }

/* ---------- About band ---------- */
.split {
  display: grid;
  grid-template-columns: 530px 1fr;
  gap: 40px;
  align-items: center;
}
.split h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
}
.split p + p { margin-top: 1em; }
.split .btn { margin-top: 24px; }

/* About page: portrait left, prose right, framed like the original. */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.profile img { border: 8px solid #000; }
.profile p + p { margin-top: 1em; }

/* ---------- prose (privacy policy) ---------- */
.prose { padding: 60px 0; }
.prose h1 { font-size: 30px; font-weight: 400; margin-bottom: 24px; }
.prose h2 { font-size: 22px; font-weight: 400; margin: 32px 0 12px; }
.prose p { margin-bottom: 1em; }
/* :not(.btn) matters — `.prose a` outranks `.btn` on specificity, and without
   it the Return to Homepage button renders slate text on a slate background,
   i.e. an empty pill. */
.prose a:not(.btn) { color: var(--slate); }

/* ---------- booking ---------- */
.booking { padding: 40px 0; }
.booking iframe { width: 100%; min-height: 800px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--blush); padding: 28px 0; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.badges { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.badges img { height: 42px; width: auto; }
.social img { width: 42px; height: 42px; }
.colophon { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.colophon a { color: var(--slate); }

/* ---------- contact popup ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(232, 222, 219, 0.49);   /* #E8DEDB7D */
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  width: min(660px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--blush);
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
  padding: 3%;
}
.modal__inner { background: var(--rose); padding: 1.5rem; }
.modal__close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--slate);
  padding: 4px 8px;
}
.modal h2 {
  font-size: 30px; font-weight: 500; color: var(--ink);
  text-align: center; margin-bottom: 1rem;
}
.modal h3 { font-size: 1.5rem; font-weight: 400; margin: 1rem 0 0.75rem; }

/* Flex rather than an inline checkbox, so a label that wraps onto a second line
   stays aligned with the first rather than sliding under the box. */
.check { display: flex; gap: 8px; margin-bottom: 8px; font-size: 1rem; line-height: 1.9; }
.check input { margin: 0; flex: none; align-self: flex-start; margin-top: 0.55em; }

.field { margin-bottom: 15px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.9;
  padding: 6px 12px;
  background: #fff;
  border: 0;
  border-radius: 3px;
  color: var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
/* Honeypot: hidden from people, filled by bots. Not display:none — some bots
   skip those. */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.modal .btn { width: 100%; border-radius: 0; padding: 12px 20px; }

.msg { margin-top: 12px; padding: 10px 14px; font-size: 15px; }
.msg--ok   { background: #d4edda; color: #155724; }
.msg--fail { background: #f8d7da; color: #721c24; }
.msg[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute; left: 0; right: 0;
    background: var(--blush);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .nav.is-open ul { display: flex; }
  .site-header .wrap { position: relative; flex-wrap: wrap; min-height: 80px; }
  .site-footer .wrap { justify-content: center; text-align: center; }
  .modal__inner { padding: 1rem; }
  .field input, .field textarea { font-size: 16px; }  /* stops iOS zooming on focus */
  .modal h2 { font-size: 24px; }
  .modal h3 { font-size: 1.15rem; }
  .check { font-size: 0.9rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
