body { font-family: "Inter", system-ui, sans-serif; }

:root {
  --white: #fff; 
  --cream: #fff3cd;
  /* --cream: #f7f1e6; */
  --grey: #eeeeee;
  --teal: #0f4c4c; 
  --teal-mid: #2f7f7f;
  --ink: #1f2a2a;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: var(--ink); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 75ch; }
.center { text-align: center; }
.block { padding: 4rem 0; }

.theme-white    { background: var(--white); }
.theme-cream    { background: var(--cream); }
.theme-grey     { background: var(--grey); }
.theme-teal     { background: var(--teal);     color: #fff; }
.theme-teal-mid { background: var(--teal-mid); color: #fff; }
.theme-teal a, .theme-teal-mid a { color: inherit; }

h1, h2, h3 {
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

.btn, button { display: inline-block; padding: .7em 1.4em;  border: 0; border-radius: 4px;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; font: inherit; }
.theme-teal .btn, .theme-teal-mid .btn, .theme-teal button, .theme-teal-mid button
  { background: #fff; color: var(--teal); }


.intro-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .intro-grid { grid-template-columns: 1fr 1fr; } }


:root {
  --gold: #ffca00;
  --gold-hover: #d1a500;
  --footer-bg: #083344;
}

/* Anchor styling */

/* 1. Global reset: anchors inherit color from their context */
a,
a:hover {
  color: inherit;
}

/* 2. Theme tokens (one per section background) */
:root {
  --link-on-light: #785e00;   /* light sections (white, #f3f4f6, #fff8e7) */
  --link-on-dark:  #ffca00;   /* dark sections (#003446, #1a4e62) */
}

/* 3. Link color per section theme */
.theme-light a { color: var(--link-on-light); }
.theme-dark  a { color: var(--link-on-dark); }

/* 4. Rich-text / body-copy links: underlined, underline removed on hover */
.rich-text a {
  text-decoration: underline;
}

.rich-text a:hover {
  text-decoration: none;
}

/* Header */
.site-header {
  position: relative;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,.2), 0 0 1px rgba(0,0,0,.2);
  z-index: 100;
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand,
.site-footer .brand {
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}
.site-header .brand:hover,
.site-footer .brand:hover { opacity: .7; }

.nav-toggle {
  display: inline-flex;
  padding: .25rem;
  background: transparent;
  color: inherit;
  border-radius: 0;
}

/* Mobile: dropdown panel */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 9px 18px rgba(0,0,0,.28);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}
.site-nav.is-open { display: block; }
.nav-links {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { opacity: .7; }
.nav-links .nav-social { display: flex; }

.btn-cta {
  background: var(--gold);
  color: #000;
  border-radius: 0;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.29);
  white-space: nowrap;
}
.nav-links .btn-cta:hover { background: var(--gold-hover); opacity: 1; }

/* Desktop: inline nav */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #fbfbfe;
  padding: 3rem 0 2rem;
  text-align: left;
}
.site-footer-inner {
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 2rem;
}
.footer-social { color: #fff; display: flex; justify-content: flex-end; }
.footer-social:hover { opacity: .7; }
.site-footer .copyright { grid-column: 1 / -1; margin: 0; font-size: .9rem; line-height: 1.5; }

/* Quote Banner block */

.quote-banner {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.quote-banner h2 {
  margin-top:0rem;
  margin-bottom:0rem;
  font-weight:300px;
  font-size:2.5rem;
}

/* Services block — match original */
.services .container-wide { max-width: 1400px; padding: 0 2rem; }

.services h2 {
  text-align: center;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  /* font-weight: 400; */
  margin: 0 0 3rem;
}

.services-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;          /* safe fallback; Wagtail already cropped to the focal area */
  border: 4px solid #f4c63d;  /* yellow frame */
  margin-bottom: 1.5rem;
}

.service h3 {
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 1.65rem;
  /* font-weight: 500; */
  line-height: 1.25;
  margin: 0 0 .75rem;
}

.service .richtext { font-size: 1.05rem; line-height: 1.5; }
.service .richtext p { margin: 0; }
.service .richtext p + p { margin-top: 1rem; }

.image-banner {
  padding: 0;          /* override .block's 4rem top/bottom padding */
  line-height: 0;      /* removes any inline baseline gap under the image */
  overflow: hidden;
}

.image-banner img {
  display: block;
  width: 100%;
  height: min(var(--banner-h), 60vh);
  object-fit: cover;
  object-position: center;   /* adjust to taste, e.g. "center 40%" */
}

form label { display: block; margin-bottom: 1rem; }
form input, form textarea { width: 100%; padding: .6rem; font: inherit; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .75rem 1rem; border-radius: 4px; }
.notice.success { background: #d9f2e3; color: #0b4a25; }
.notice.error   { background: #fbdcdc; color: #6b1010; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* Intro Image Formatting, and ... */
/* Article Image Formatting */
.intro-image,
.article-image {
  display: flex;
  justify-content: center;
  max-width: 26rem;
}

.article-image {
  margin-inline: auto;   /* centers the box itself */
}

.intro-image img,
.article-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}
.article-image {
  margin-bottom: 2rem;
}
.article-image img {
  max-width: 26rem;
  margin-inline: auto;   /* centers the image even if flex gets overridden */
}

.intro-image img {
  width: 30rem;
}

/* Coaching Blog Formatting */
.lead { font-size: 1.15rem; max-width: 60ch; }
.post-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 2rem; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: .75rem; }
.post-card h2 { font-size: 1.25rem; margin: .25rem 0 .5rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-meta { font-size: .85rem; opacity: .7; margin: 0; }
.post-header { margin: 1.5rem 0; }
.blog-body > * + * { margin-top: 1rem; }
.blog-figure { margin: 2rem 0; }
.blog-figure figcaption { font-size: .85rem; opacity: .7; margin-top: .4rem; }
.pagination { display: flex; gap: 1.5rem; justify-content: center; margin-top: 3rem; }

/* FAQ Block */
.faq-item { 
  --faq-duration: 450ms; /* Expand-Collapse duration length. */
  --faq-slide-distance: 1rem;   /* how far the answer slides; try 2rem for a more pronounced effect */
  border-bottom: 1px solid rgba(255,255,255,.3); 
  padding: .75rem 0; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;              /* removes the default arrow (Firefox/modern) */
}
.faq-item summary::-webkit-details-marker { display: none; }  /* Safari/older Chrome */

.faq-chevron {
  flex-shrink: 0;
  transform: rotate(0deg);     /* collapsed: points down */
  transition: transform var(--faq-duration) ease-in-out;
}
/* expanded: points down. :not(.is-closing) makes the chevron flip
   immediately on collapse instead of waiting for the animation to end */
.faq-item[open]:not(.is-closing) .faq-chevron { transform: rotate(180deg); }

.faq-answer { overflow: hidden; }
.faq-answer-inner { padding-top: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .faq-item { --faq-duration: 0ms; }
}