/* Becky Lee Coleman — Certified Massage Therapist */

:root {
  --ink: #2b2b28;
  --ink-soft: #55554f;
  --cream: #faf8f4;
  --sage: #8a9b84;
  --sage-dark: #5f715a;
  --sage-deep: #475643;
  --sage-tint: #eef1ec;
  --clay: #a8674c;
  --clay-dark: #8c5340;
  --line: #e4e0d7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: break-word;
}

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

/* Keep sticky-header offset out of anchored targets (header is ~93px wide / ~115px stacked) */
[id] { scroll-margin-top: 6.75rem; }

:focus-visible {
  outline: 2px solid var(--clay-dark);
  outline-offset: 2px;
}

/* the clay ring disappears against the dark footer and the hero photo */
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: #f3f5f0;
}

a { color: var(--clay-dark); }
a:hover { color: var(--clay); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; /* pinned: the face now spans 300-700, so don't inherit body's 300 */
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--sage-dark);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 1.6rem;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0 0.35rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--sage);
}

/* Hero (home) */
.hero {
  position: relative;
  /* cap so the hero doesn't become a huge empty band on tall/ultrawide monitors */
  min-height: min(78vh, 720px);
  min-height: min(78svh, 720px); /* avoids mobile URL-bar jump; ignored where unsupported */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(45, 58, 40, 0.42), rgba(30, 38, 27, 0.58)),
    url("images/hero.jpg")
    center / cover no-repeat;
}

.hero-content {
  padding: 3rem 1.5rem;
  /* wide enough that "Becky Lee Coleman" and the tagline each hold one line on desktop */
  max-width: 820px;
  min-width: 0; /* let the flex item shrink instead of overflowing at large text sizes */
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .tagline {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1f4ee;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.2rem;
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--sage-deep);
  color: #fff;
}

/* Sections */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section .page-title {
  font-size: clamp(1.9rem, 1.45rem + 2.25vw, 2.6rem);
  color: var(--sage-deep);
  margin-bottom: 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

/* the first section heading sits right under the page title */
.section .page-title + h2 { margin-top: 2rem; }

.section h2 {
  font-size: clamp(1.6rem, 1.24rem + 1.79vw, 2.1rem);
  margin-bottom: 1.4rem;
  color: var(--sage-deep);
}

.section h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.4rem);
  margin: 2.2rem 0 0.7rem;
  color: var(--clay-dark);
}

.section p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.section ul { margin: 0 0 1.1rem 1.2rem; color: var(--ink-soft); }
.section li { margin-bottom: 0.5rem; }

/* trailing margin stacked on top of section padding, making the gap uneven */
.section > *:last-child { margin-bottom: 0; }

.section-break {
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

/* ---- Decorative botanical ornaments (aria-hidden, purely visual) ---- */

/* sprig centred on a fluid rule; used as a section divider */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--sage-dark);
  margin: 2.8rem 0 2.4rem;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--line);
}

.ornament svg {
  flex: none;
  width: 42px;
  height: 22px;
}

/* faint branch behind the top corner of a page */
.section { position: relative; }

.page-motif {
  position: absolute;
  top: 0.15rem;
  right: 0;
  width: clamp(68px, 13vw, 124px);
  height: auto;
  color: var(--sage);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.section > *:not(.page-motif) { position: relative; z-index: 1; }

/* on narrow screens the heading reaches the right edge, so step the motif back */
@media (max-width: 560px) {
  .page-motif { opacity: 0.1; width: 62px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-motif { transition: opacity 0.3s ease; }
}

/* Training timeline */
.timeline {
  --tl-pad: 1.6rem;
  margin: 2rem 0 0.5rem;
  border-left: 2px solid var(--sage);
  padding-left: var(--tl-pad);
}

.tl-year + .tl-year { margin-top: 1.8rem; }

.tl-year h3 {
  position: relative;
  margin: 0 0 0.6rem;
  font-family: "Rubik", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--clay-dark);
}

.tl-year h3::before {
  content: "";
  position: absolute;
  /* centre the dot on the 2px rail: -(padding-left) - half border - half dot */
  left: calc(-1 * var(--tl-pad) - 1px - 4.5px);
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--cream);
}

.tl-year ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-year li {
  margin-bottom: 0.8rem;
  color: var(--ink);
  line-height: 1.5;
}

.tl-org {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.welcome { text-align: center; }

.welcome .rule {
  width: 48px;
  height: 2px;
  background: var(--clay);
  margin: 0 auto 1.4rem;
  border: none;
}

/* Info cards (home) */
.info-strip {
  border-top: 1px solid var(--line);
  background: var(--sage-tint);
}

.info-grid {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  /* single column until all three cards fit on one row, so we never get a 2+1 orphan.
     minmax(0,…) lets the column shrink past min-content instead of overflowing. */
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  text-align: center;
}

/* 48em: the point at which all three cards hold their content side by side */
@media (min-width: 48em) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid > div { max-width: none; }
}

.info-grid > div {
  background: #fff;
  border-top: 3px solid var(--sage);
  border-radius: 3px;
  padding: 1.6rem 1.2rem;
  box-shadow: 0 1px 8px rgba(43, 43, 40, 0.05);
  max-width: 32rem;
  width: 100%;
  margin-inline: auto;
}

.info-grid h3 {
  font-size: 0.8rem;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 0.6rem;
}

.info-grid p { color: var(--ink-soft); }
.info-grid a { text-decoration: none; }
/* links are colour-only at rest; give hover/focus a non-colour cue too */
.info-grid a:hover,
.info-grid a:focus-visible { text-decoration: underline; }

/* Contact form */
.contact-form { margin-top: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* matches the site-wide small-screen breakpoint so the form and header switch together */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* vertical only: `resize: both` lets the user drag the field wider than the page */
.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus { border-color: var(--sage); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: var(--sage-deep);
  text-align: center;
  padding: 2.8rem 1.5rem 2.2rem;
  font-size: 0.88rem;
  color: #d5dcd1;
}

.site-footer .footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; /* pinned: see .brand */
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3f5f0;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #e8c9b3;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: #f3ddc9; text-decoration: underline; }

.site-footer .footer-links {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.site-footer .copyright {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #c2ccbe; /* was #a7b3a1 - 3.56:1 on the deep sage footer, below AA */
}

/* Small screens */
@media (max-width: 640px) {
  [id] { scroll-margin-top: 8rem; }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem 1rem 0.4rem;
    gap: 0.15rem;
  }

  .brand { font-size: 1.35rem; }

  .site-nav {
    justify-content: center;
    gap: 0 1.6rem;
    width: 100%;
  }

  .site-nav a { padding: 0.55rem 0.3rem 0.45rem; }

  .hero {
    min-height: 66vh;
    min-height: 66svh;
  }

  .hero-content { padding: 2.5rem 1rem; }

  .section { padding: 3rem 1.2rem; }

  .info-grid { padding: 2.2rem 1.2rem; gap: 1.1rem; }

  .site-footer { padding: 2.2rem 1.2rem 1.8rem; }

  .btn {
    display: block;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    text-align: center;
  }
}
