/* Becky Platt — Debrief & Reflective Practice
   Calm blue / soft sage + warm off-white palette. Plain CSS, no build step.
   Emotional weight through words and space — restraint over decoration. */

:root {
  --bg:        #f6f2ea; /* warm off-white */
  --bg-warm:   #efe8dc; /* deeper warm neutral band */
  --sage-tint: #e8ede8; /* soft sage panel */
  --surface:   #fdfbf7; /* card / raised surface */
  --ink:       #273230; /* deep calm slate-green for headings */
  --ink-body:  #34413e; /* body text */
  --ink-soft:  #566461; /* muted text */
  --sage:      #86998f; /* soft sage green */
  --sage-deep: #5d7a6f; /* sage for accents */
  --blue:      #578198; /* calm blue */
  --blue-deep: #3f6980; /* deeper blue for hover / headings accent */
  --line:      #ded6c8; /* hairline borders on warm neutral */
  --line-soft: #e7e0d3;
  --focus:     #2f5361; /* focus ring */

  --maxw: 70rem;
  --measure: 40rem; /* comfortable reading width */
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(39, 50, 48, 0.05);
  --shadow: 0 2px 6px rgba(39, 50, 48, 0.05), 0 14px 34px rgba(39, 50, 48, 0.06);
  --shadow-lift: 0 4px 10px rgba(39, 50, 48, 0.07), 0 22px 48px rgba(39, 50, 48, 0.09);

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.6rem;
}

.section { padding-block: 5.5rem; position: relative; }
.section--alt { background: var(--bg-warm); }
.section--sage { background: var(--sage-tint); }
.section--tight { padding-block: 3.5rem; }

.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.75rem); margin: 0 0 1.4rem; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0 0 1.1rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.55rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.2rem; max-width: 42rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* Lead sits clearly below the headline: larger than body, but lighter in tone
   and weight so the title stays dominant. */
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

/* Line on both sides of every label. */
.eyebrow::after {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand__mark {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--blue-deep);
  color: #f6f2ea;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 50%;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-deep);
  margin-top: 0.15rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
  align-items: center;
  gap: 0.5rem;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__list a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.97rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__list a:hover { color: var(--blue-deep); background: var(--bg-warm); }
.nav__list a[aria-current="page"] {
  color: var(--blue-deep);
  font-weight: 600;
}
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.82rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--sage);
}
.btn--ghost:hover { background: var(--sage-tint); color: var(--blue-deep); border-color: var(--sage-deep); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 6rem 5rem;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(134, 153, 143, 0.22), transparent 60%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 55%);
}
.hero::after {
  /* quiet hairline to close the hero without a hard edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__content { max-width: 34rem; }
.hero__content p { color: var(--ink-body); }
.hero__content .lead { margin-bottom: 1.3rem; }

/* ---------- Media frame (photo placeholder surround) ---------- */
.media-frame { position: relative; }
.media-frame::before {
  /* soft offset accent panel for depth — non-figurative */
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  background: var(--sage-tint);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.media-frame > * { position: relative; z-index: 1; }

/* ---------- Photo placeholders ---------- */
.photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 11px,
      rgba(134, 153, 143, 0.07) 11px,
      rgba(134, 153, 143, 0.07) 22px
    ),
    var(--surface);
  border: 1px dashed var(--sage);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  padding: 1.75rem;
  min-height: 16rem;
  box-shadow: var(--shadow);
}
.photo-ph__label {
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.photo-ph__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 22rem;
  margin: 0;
}
.photo-ph__icon {
  font-size: 1.6rem;
  color: var(--sage);
  opacity: 0.8;
}
.photo-ph--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.photo-ph--wide { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- Real photos ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Two-column band: text alongside a photo */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}
.split__media { max-width: 22rem; justify-self: center; }
.split__media--wide { max-width: 26rem; }

/* ---------- Section intro ---------- */
.section__intro { max-width: 40rem; margin-bottom: 1rem; }
.section__intro.center { margin-inline: auto; }

/* ---------- Cards / service overview ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-top-color: var(--sage-deep); }
.card__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--sage);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.card h3 { color: var(--blue-deep); }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Services detail blocks ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 44rem);
  gap: 2.75rem;
  padding-block: 3.25rem;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: none; padding-top: 1.5rem; }
.service__body { min-width: 0; }
.service h2 { color: var(--blue-deep); margin-top: 0; }
.service__tag {
  align-self: start;
  justify-self: start;
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 700;
  background: var(--sage-tint);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.service ul, .content ul {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}
.service li, .content li { margin-bottom: 0.6rem; color: var(--ink-body); }
.suitable {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
  max-width: 42rem;
}
.enquire {
  display: inline-block;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
}

.divider-photo { margin: 2.5rem 0; }

/* ---------- Prose / about ---------- */
.content p, .content li { color: var(--ink-body); }
.content .lead { color: var(--ink); }

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.about__media { display: grid; gap: 1.75rem; align-content: start; }
.about-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* Bio: heading in a side column, text filling the space beside it (kept to a
   comfortable reading width so lines don't get too long). */
.about-intro {
  display: grid;
  grid-template-columns: 16rem minmax(0, 46rem);
  gap: 3.5rem;
  align-items: start;
}
.about-intro__head { position: sticky; top: 6.5rem; }
.about-intro__head h1 { margin-bottom: 0; }
.about-intro__body > div:first-child > p:first-child { margin-top: 0; }
.about-row .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}
/* The moved-down photo stack is desktop-hidden; it only appears on mobile. */
.about-more { display: none; }
.about__lead { font-family: var(--font-head); }

/* ---------- Statement band (calm pull-quote pacing) ---------- */
.statement {
  padding-block: 4.5rem;
}
.statement p {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 46rem;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Testimonials (empty state) ---------- */
/* Testimonials — quotes on one side, photo filling the space on the other. */
.testi-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.testi-media {
  order: -1;                /* photo sits on the left of the quotes */
  position: sticky;
  top: 6.5rem;
  max-width: 22rem;
}
.testi-list {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
/* Inline photo only appears in the mobile stack (see media query below). */
.testi-photo-inline { display: none; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.9rem 2rem;
}
.testi-card blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}
.testi-card cite { font-style: normal; font-size: 0.92rem; color: var(--sage-deep); }

/* ---------- Contact form ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}
.form-note {
  background: #fbf3dd;
  border: 1px solid #e6d6a4;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: #6b5a2b;
  margin-bottom: 1.75rem;
}
.form-note code {
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
form .field { margin-bottom: 1.3rem; }
form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
form label .optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
form input,
form select,
form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-body);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 113, 129, 0.18);
}
form textarea { resize: vertical; min-height: 8rem; }

.contact-aside {
  background: var(--sage-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-aside h3 { color: var(--blue-deep); margin-top: 0; }
.contact-aside p { color: var(--ink-body); }
/* Push the response-time line to the bottom of the panel so it fills the height calmly. */
.contact-aside__note { margin-top: auto; padding-top: 0.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.contact-aside a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: #d6e3e6;
  padding-block: 3rem;
  margin-top: 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.site-footer a { color: #cfe0e4; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  font-size: 0.86rem;
  color: #9db8bf;
  max-width: 36rem;
  margin: 0;
  flex-basis: 100%;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav { position: relative; }
  .nav__list {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-top: none;
    box-shadow: var(--shadow);
    padding: 0.5rem 1.6rem 1rem;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 0.75rem 0.5rem; }
  .nav__list a[aria-current="page"]::after { display: none; }

  .hero__grid,
  .about__grid,
  .contact__grid,
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__media { order: -1; }
  .service { grid-template-columns: 1fr; gap: 0.9rem; padding-block: 2.5rem; }
  .service__tag { margin-top: 0; }
  /* Mobile: top row shows the headshot only; the other two move below the bio. */
  .about-row { grid-template-columns: 1fr; gap: 1.25rem; max-width: 22rem; margin-inline: auto; }
  .about-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-intro__head { position: static; }
  .about-row .is-secondary { display: none; }
  .about-more { display: block; }
  .about-more__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 22rem;
    margin-inline: auto;
  }
  .hero__content { max-width: none; }
  .about__media { position: static; grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .testi-layout { grid-template-columns: 1fr; gap: 2rem; }
  .testi-media { display: none; }          /* side photo hidden on mobile */
  .testi-photo-inline {                     /* shown between the quotes instead */
    display: block;
    max-width: 22rem;
    margin: 0.5rem auto;
  }
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 3.5rem; }
  .statement { padding-block: 3rem; }
  .media-frame { max-width: 24rem; }
}

@media (max-width: 520px) {
  .contact-form, .contact-aside { padding: 1.4rem; }
  .site-footer nav { gap: 1rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
