/* Fonts are hosted with the site: no requests to Google. */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/lora.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/open-sans.woff2") format("woff2");
}

/* Michaela Neylan Psychotherapy — Coastal + Gentle reading */
:root {
  --bg: #f2f7fa;
  --bg-2: #dfeaf1;
  --surface: #ffffff;
  --ink: #163040;
  --muted: #456070;
  --accent: #3d7a8c;
  --accent-deep: #1f5160;
  --mist: #c5dce6;
  --glow: #7eb8c9;
  --glow-soft: #d9eef4;
  --pop: #d4785a;
  --pop-soft: #f3ddd4;
  --pop-deep: #ad5538;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --display: "Open Sans", system-ui, sans-serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --radius-pill: 999px;
  --radius-soft: 16px;
  --shadow: 0 24px 48px color-mix(in srgb, var(--accent-deep) 12%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 65ch;
  --gap-air: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(70% 45% at 100% 0%, var(--glow-soft) 0%, transparent 55%),
    linear-gradient(180deg, #e8f4f8 0%, var(--bg) 28%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--glow-soft);
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

.nav-links .nav-cta:hover,
.btn-primary:hover {
  color: #eef7fa;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(720px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.brand span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent-deep);
  color: #eef7fa !important;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.nav-links .nav-cta:hover {
  background: var(--ink);
}

.nav.is-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.35rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-deep);
  color: #eef7fa;
}

.btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-on-deep {
  background: #eef7fa;
  color: var(--accent-deep);
}

.btn-on-deep:hover {
  background: #fff;
  color: var(--ink);
}

/* Beat .band-deep a { color: #fff } so the label stays readable on the pale button */
.band-deep a.btn-on-deep {
  color: var(--accent-deep);
}

.band-deep a.btn-on-deep:hover {
  color: var(--ink);
}

.scope-note {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  color: color-mix(in srgb, #eef7fa 82%, transparent);
  font-size: 1.02rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42% 55% at 78% 30%, color-mix(in srgb, var(--pop) 30%, transparent) 0%, transparent 70%),
    radial-gradient(60% 70% at 92% 8%, color-mix(in srgb, #ffd9a8 55%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #e4f1f7 0%, #f2f7fa 70%, var(--bg) 100%);
  color: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--glow-soft) 70%, transparent));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(3.5rem, 9vh, 5.5rem);
}

@media (min-width: 820px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    min-height: min(78vh, 720px);
  }
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.85s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 1rem;
  color: var(--accent-deep);
  max-width: 10ch;
  text-wrap: balance;
}

.hero-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.9rem;
  color: var(--ink);
  max-width: 22ch;
}

.hero .lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
}

.hero-portrait {
  position: relative;
  margin: 0 auto;
  width: min(100%, 24rem);
  animation: rise 1.05s var(--ease) 0.12s both;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -6% -14% -4% -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pop) 45%, #ffd9a8) 0%, color-mix(in srgb, #ffd9a8 40%, transparent) 55%, transparent 100%);
  filter: blur(24px);
  opacity: 0.8;
  z-index: -1;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px 28px 28px 64px;
  box-shadow: 0 30px 60px color-mix(in srgb, var(--accent-deep) 22%, transparent);
}

@media (max-width: 819px) {
  .hero-portrait { width: min(78%, 20rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-portrait { animation: none; }
}

/* —— Sections —— */
.band {
  padding: var(--gap-air) 0;
}

.band + .band {
  border-top: 1px solid transparent;
}

.band-soft {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--glow-soft) 55%, transparent), transparent 40%),
    var(--bg-2);
}

.band-deep {
  background: linear-gradient(145deg, var(--accent-deep), var(--accent));
  color: #eef7fa;
}

.band-deep a { color: #fff; }
.band-deep .muted { color: color-mix(in srgb, #eef7fa 78%, transparent); }

.kicker-free h2,
.band h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.band .sub,
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: var(--measure);
}

.band .sub:last-child,
.prose p:last-child { margin-bottom: 0; }

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.prose li { margin-bottom: 0.45rem; }

.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.page-intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
  max-width: 14ch;
}

.page-intro .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42ch;
}

/* Areas — labelled flats, not cards */
.areas {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .areas {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.area {
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}

.area h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.area p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* About layout */
.about-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-split {
    grid-template-columns: minmax(220px, 0.85fr) 1.4fr;
    gap: 3rem;
  }
}

.photo-slot {
  position: relative;
  border-radius: 24px 24px 24px 48px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--mist);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-slot figcaption {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.photo-frame {
  margin: 0;
}

.cred {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--glow-soft);
  border-radius: var(--radius-soft);
}

.cred strong {
  font-family: var(--display);
  display: block;
  margin-bottom: 0.55rem;
}

.cred ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.cred li { margin-bottom: 0.35rem; }

/* Practical list */
.facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.fact {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.fact:last-child { border-bottom: 1px solid var(--line); }

.fact strong {
  font-family: var(--display);
  display: block;
  margin-bottom: 0.3rem;
}

.fact p {
  margin: 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* Form */
.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field .hint {
  font-weight: 400;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  caret-color: var(--accent);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 45%, transparent);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36ch;
}

.form-privacy {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.form-error {
  display: none;
  margin-top: 0.85rem;
  color: #7a2e2e;
  font-size: 0.95rem;
}

.form-error.show { display: block; }

.success {
  display: none;
  padding: 1.5rem;
  background: var(--glow-soft);
  border-radius: var(--radius-soft);
}

.success.show { display: block; }

.success h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer strong {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
}

.site-footer p { margin: 0.25rem 0 0; max-width: 36ch; }

.site-footer a {
  color: var(--accent-deep);
}

.trust-marks {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.trust-marks img {
  display: block;
  height: 40px;
  width: auto;
}

.trust-marks .pride {
  height: 34px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}

.contact-direct {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.contact-direct + form {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-direct p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.contact-direct a {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.contact-direct a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.draft-banner {
  background: var(--accent-deep);
  color: #eef7fa;
  text-align: center;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
}

/* Homepage energy: warm coral pop against coastal blues */
body.home {
  background:
    radial-gradient(55% 40% at 0% 18%, color-mix(in srgb, var(--pop-soft) 70%, transparent) 0%, transparent 55%),
    radial-gradient(70% 45% at 100% 0%, var(--glow-soft) 0%, transparent 55%),
    linear-gradient(180deg, #e8f4f8 0%, var(--bg) 28%, var(--bg) 100%);
}

body.home .nav-cta,
body.home .hero .btn-primary,
body.home .band:not(.band-deep) .btn-primary {
  background: var(--pop-deep);
  color: #fffaf7;
}

body.home .nav-cta:hover,
body.home .hero .btn-primary:hover,
body.home .band:not(.band-deep) .btn-primary:hover {
  background: color-mix(in srgb, var(--pop-deep) 80%, #163040);
  color: #fff;
}

body.home .hero .btn-primary {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pop) 28%, transparent);
}

body.home .band-deep {
  background: linear-gradient(145deg, var(--accent-deep), color-mix(in srgb, var(--accent) 70%, var(--pop)));
}

body.home .areas .area h3 {
  color: color-mix(in srgb, var(--accent-deep) 78%, var(--pop));
}

/* —— Added with the editor —— */
.after-areas { margin-top: 1.5rem; }
.form-grid.tight { margin-top: 1rem; }
.btn-row.spaced { margin-top: 2rem; }

.wide-photo {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.availability {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.55rem 1rem;
  background: var(--pop-soft);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero .availability { margin-top: 1.25rem; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a03a2a;
}

.status {
  margin: 1rem 0 0;
  color: #8a2b1e;
  font-weight: 600;
  min-height: 0;
}

.status:empty { display: none; }

.sent {
  padding: 1.5rem;
  background: var(--glow-soft);
  border-radius: var(--radius-soft);
}

.sent:focus { outline: none; }

.sent h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.4rem;
}

.sent p { margin: 0; color: var(--muted); }

.emergency {
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

.success .emergency { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.privacy-link { margin-top: 0.75rem; }

.prose h2:first-child { margin-top: 0; }

.success h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.success p { margin: 0; color: var(--muted); }

.prose .updated { margin-top: 2rem; font-size: 0.92rem; }
