/* ==========================================================
   Brand settings. Change these to restyle the whole page.
   ========================================================== */
:root {
  /* Colors: Cindy's "ice pink" palette */
  --color-background: #FCF7FA;   /* page background */
  --color-surface:    #F5E4EE;   /* photo placeholders, glow at the top */
  --color-text:       #3A1631;   /* main text */
  --color-muted:      #6B4F63;   /* tagline, session times, footer */
  --color-accent:     #B3246F;   /* button */
  --color-accent-deep:#911B59;   /* button on hover, initials, step numbers */
  --color-on-accent:  #FFFFFF;   /* text on the button */
  --color-line:       #EBD2E0;   /* thin outlines */

  /* Fonts (loaded from Google Fonts in index.html) */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Shape and spacing */
  --radius: 14px;
  --column-width: 560px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 600px at 50% 0%, var(--color-surface) 0%, transparent 70%),
    var(--color-background);
  background-repeat: no-repeat;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout: one centred column ---------- */
.page,
.footer {
  width: 100%;
  max-width: calc(var(--column-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page {
  flex: 1 0 auto;
  padding-top: 56px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
}

.portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-background), 0 0 0 7px var(--color-line);
  background: var(--color-surface);
  color: var(--color-accent-deep);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* The photo covers the placeholder behind it, in the circle and in the bio frame */
.portrait img,
.bio__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  color: transparent; /* if a photo fails to load, its alt text doesn't draw over the placeholder */
  font-size: 0;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.promise {
  max-width: 28em;
  margin: 20px auto 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero__cta {
  margin-top: 32px;
}

/* ---------- Sections ---------- */
.section {
  margin-top: 72px;
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.section p {
  margin: 0 0 12px;
}

/* "What we'll do during your session": numbered steps with the time as a small label */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent-deep);
  font-size: 0.875rem;
  font-weight: 500;
}

.step__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
}

.section .step__time {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.section .step__body {
  margin: 0;
}

/* Bio: photo above text on phones, beside it on wider screens */
.bio {
  display: grid;
  gap: 24px;
}

.bio__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

@media (min-width: 600px) {
  .bio {
    grid-template-columns: 180px 1fr;
    align-items: start;
    gap: 32px;
  }

  .bio__photo {
    width: 100%;
  }
}

/* ---------- Button ---------- */
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

/* The arrow sits at the right edge and slides in on hover */
.button__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translate(-4px, -50%);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button--primary {
  min-height: 60px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 1.125rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-text) 12%, transparent);
}

/* Hover: the button lifts, gains a shadow, and an arrow appears.
   These cues do not depend on color. Only on devices with a mouse,
   so a tap on a phone doesn't leave the button stuck in its hover look. */
@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--color-text) 35%, transparent);
  }

  .button:hover .button__arrow {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .button--primary:hover {
    background: var(--color-accent-deep);
  }
}

.button:focus-visible .button__arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Keyboard focus: a clear ring around the button */
.button:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

/* ---------- Text links ---------- */
.text-link {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

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

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px;
  padding-top: 24px;
  padding-bottom: 32px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.footer p {
  margin: 0 0 6px;
}

/* ---------- Larger screens: more breathing room ---------- */
@media (min-width: 768px) {
  .page {
    padding-top: 80px;
  }

  .name {
    font-size: 2.875rem;
  }

  /* The booking button doesn't need to stretch across the whole column */
  .hero__cta {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .button,
  .button__arrow {
    transition: none;
  }

  .button:hover {
    transform: none;
  }

  .button:hover .button__arrow,
  .button:focus-visible .button__arrow {
    transform: translate(0, -50%);
  }
}
