/* Rebecca Healthy Coach — one-page site */

:root {
  --cream: #faf8f1;
  --forest: #155334;
  --forest-dark: #0e3a24;
  --ink: #344f43;
  --ink-soft: #4a6a5a;
  --gold: #d7c8a5;
  --gold-text: #123d2b;
  --card: #f4f1e8;
  --white: #ffffff;
  --line: rgba(21, 83, 52, 0.12);
  --shadow: 0 10px 30px rgba(21, 83, 52, 0.07);
  --shadow-hover: 0 14px 36px rgba(21, 83, 52, 0.12);
  --header-h: 4.5rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --measure: 72rem;
  --space: 1.25rem;
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--forest);
  --focus-on-green: 0 0 0 3px var(--forest), 0 0 0 5px var(--gold);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.85rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1, h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

h3 {
  line-height: 1.45;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--forest);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 1.05rem;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  box-shadow: var(--focus-on-green);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(21, 83, 52, 0.06);
}

.header-inner {
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--forest-dark);
}

.wordmark:focus-visible {
  box-shadow: var(--focus);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  margin: 5px auto;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--forest);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="true"] {
  border-bottom-color: var(--forest);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  min-width: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem 0.4rem;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--forest);
  white-space: nowrap;
}

.lang-switch-nav {
  display: none;
}

.lang-btn {
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  color: var(--forest);
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 0;
}

.lang-btn:hover {
  border-bottom-color: var(--gold);
}

.lang-btn[aria-pressed="true"] {
  font-weight: 700;
  border-bottom-color: var(--forest);
}

.lang-btn:focus-visible {
  box-shadow: var(--focus);
}

.lang-switch-sep {
  color: var(--ink-soft);
  user-select: none;
}

/* Hero */
.hero {
  padding: 3.25rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.05rem, 1.25rem + 2.8vw, 3.15rem);
  line-height: 1.38;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin: 0 0 1.35rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.meta-rule {
  width: 1px;
  height: 0.95em;
  background: var(--gold);
}

.hero-intro {
  margin: 0 0 1.15rem;
  max-width: 36em;
  font-size: 1.5rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cta-line {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.85rem;
}

.hero-portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  aspect-ratio: 3 / 4;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

/* Prevent long CJK min-content widths from expanding the page
   (Safari/iOS: word-break: keep-all + min-width: auto). */
.hero-grid,
.hero-copy,
.hero h1,
.hero-intro,
.hero-actions,
.hero-meta,
.eyebrow,
.cta-line,
.about-grid,
.team-grid,
.about-lead,
.about-copy,
.team-lead,
.prose,
.section-heading,
.service-grid,
.service-grid > li,
.service-card,
.activity-grid,
.activity-card,
.activity-body,
.assessment-inner,
.assessment-intro,
.assessment-card,
.assessment-callout,
.contact-inner,
.contact-intro,
.inquiry,
.footer-inner {
  min-width: 0;
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.3;
  min-height: 3.05rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover {
  background: #11452b;
  color: var(--white);
}

.btn-primary:focus-visible {
  color: var(--white);
  box-shadow: var(--focus);
}

.btn-whatsapp {
  background: var(--gold);
  color: var(--gold-text);
}

.btn-whatsapp:hover {
  background: #e2d5b6;
  color: var(--gold-text);
}

.btn-whatsapp:focus-visible {
  color: var(--gold-text);
  box-shadow: var(--focus-on-green);
}

.whatsapp-icon {
  flex-shrink: 0;
}

.btn-whatsapp-lg {
  font-size: 1.3rem;
  min-height: 3.45rem;
  padding: 1rem 2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-whatsapp-lg:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.btn-signup {
  font-size: 1.1rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
}

/* Sections */
.section {
  padding: 4.75rem 0;
}

.section-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.9rem, 1.35rem + 1.5vw, 2.5rem);
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.85rem auto 0;
  background: var(--gold);
}

/* About & Team */
.about {
  background: var(--white);
}

.about-grid,
.team-grid {
  display: grid;
  gap: 2.25rem 4rem;
  align-items: start;
}

.about-lead h2,
.team-lead h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.42;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.15em;
  font-size: 1.5rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

/* Before/after photo between About and the gallery */
.about:has(+ .transformation) {
  padding-bottom: 2.25rem;
}

.transformation {
  background: var(--white);
  padding-top: 0;
  padding-bottom: 2.25rem;
}

.transformation-photo {
  margin: 0 auto;
  max-width: min(100%, 46rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

.transformation-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.transformation-photos-stacked {
  display: none;
}

/* Photo gallery between About and Services */

.moments {
  background: var(--white);
  padding-top: 0;
}

.moments-mosaic {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "workshop speaking"
    "highfive lake";
}

.moments-workshop { grid-area: workshop; }
.moments-highfive { grid-area: highfive; }
.moments-lake { grid-area: lake; }
.moments-speaking { grid-area: speaking; }

.moments-mosaic li,
.moments-mosaic figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.moments-mosaic figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

.moments-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moments-workshop img,
.moments-speaking img {
  aspect-ratio: 4 / 5;
}

.moments-highfive img,
.moments-lake img {
  aspect-ratio: 4 / 3;
}

.moments-workshop img {
  object-position: 58% 28%;
}

.moments-highfive img {
  object-position: 54% 38%;
}

.moments-lake img {
  object-position: 50% 68%;
}

.moments-speaking img {
  object-position: 40% 18%;
}

/* Services */
.services {
  background: var(--cream);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-grid > li {
  display: flex;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.6rem 1.85rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

a.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

a.service-card:focus-visible {
  box-shadow: var(--focus);
}

.service-index {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9a8858;
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.service-card p:not(.service-index):not(.service-cue) {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.service-cue {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

a.service-card:hover .service-cue,
a.service-card:focus-visible .service-cue {
  color: var(--forest);
}

/* Services assessment callout */
.assessment-callout {
  margin-top: 2rem;
  padding: 1.85rem 1.6rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
}

.assessment-callout h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.assessment-callout p {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Assessment form section */
.assessment {
  background: var(--white);
}

.assessment-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.assessment-intro {
  margin: -0.5rem 0 2rem;
  max-width: 40rem;
  font-size: 1.5rem;
  line-height: 1.8;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.assessment-card {
  width: 100%;
  max-width: 34rem;
  padding: 2.25rem 1.6rem 2.35rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.input-with-unit input[type="text"] {
  flex: 1;
  min-width: 0;
}

.input-unit {
  flex-shrink: 0;
  color: var(--cream);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Activities */
.features {
  background: var(--white);
}

.activity-grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.activity-card figure {
  margin: 0;
}

.activity-card img,
.activity-card video {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.activity-card video {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #123d2b;
}

.activity-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.35rem;
  gap: 0.7rem;
}

.activity-card h3 {
  margin: 0;
  padding: 0;
  font-size: 1.28rem;
  font-weight: 600;
  word-break: keep-all;
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.activity-quota {
  color: var(--forest);
}

.activity-body .btn-signup {
  margin-top: auto;
  align-self: stretch;
}

/* Team */
.team {
  background: var(--cream);
}

/* Contact */
.contact {
  background: var(--forest);
  color: var(--white);
  padding: 4.75rem 0;
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: clamp(1.9rem, 1.35rem + 1.5vw, 2.5rem);
}

.contact h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.85rem auto 0;
  background: var(--gold);
}

.contact-intro {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: #eef4ef;
  font-size: 1.5rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.contact-cta {
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.inquiry {
  width: 100%;
  max-width: 34rem;
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(215, 200, 165, 0.35);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}

.form-lead {
  margin: 0 0 0.25rem;
  color: #eef4ef;
  font-size: 1.25rem;
  line-height: 1.7;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field label,
.form-options legend {
  color: var(--cream);
  font-size: 1.125rem;
  font-weight: 500;
}

.form-options legend {
  padding: 0;
  margin-bottom: 0.45rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(215, 200, 165, 0.5);
  border-radius: 0.6rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
}

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

.form-field textarea.form-textarea-large {
  min-height: 12rem;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="tel"]::placeholder,
.form-field input[type="number"]::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.85;
}

.form-field input[type="text"]:focus-visible,
.form-field input[type="tel"]:focus-visible,
.form-field input[type="number"]:focus-visible,
.form-field textarea:focus-visible {
  box-shadow: var(--focus-on-green);
  border-color: var(--gold);
  outline: none;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid,
.form-options.is-invalid {
  box-shadow: 0 0 0 2px #f3d9a4;
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-options > label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(215, 200, 165, 0.28);
  border-radius: 0.6rem;
  background: rgba(250, 248, 241, 0.08);
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
}

.form-options > label:hover {
  border-color: rgba(215, 200, 165, 0.55);
  background: rgba(250, 248, 241, 0.12);
}

.form-options > label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(215, 200, 165, 0.2);
}

.form-options input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.form-options-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.form-options-inline legend,
.form-options-inline .field-error {
  grid-column: 1 / -1;
}

.form-options-inline > label {
  justify-content: flex-start;
}

.field-error {
  margin: 0;
  color: #f3d9a4;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.inquiry-form .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.inquiry-thanks {
  text-align: center;
}

.inquiry-thanks p {
  margin: 0 0 1.15rem;
  color: #eef4ef;
  font-size: 1.35rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.inquiry-thanks[hidden],
.inquiry-form[hidden] {
  display: none;
}


/* Social links */
.social-links {
  margin: 0;
}

.social-links ul {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 4.25rem;
  min-height: 3rem;
  padding: 0.4rem 0.45rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 0.55rem;
}

.social-links svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.social-facebook svg {
  color: #1877F2;
}

.social-youtube svg {
  color: #FF0000;
}

.social-xiaohongshu svg {
  color: #FF2442;
}

.hero-actions .social-links {
  flex: 1 0 100%;
  width: 100%;
}

.hero-actions .social-links ul {
  justify-content: flex-start;
}

.hero-actions .social-links a:hover,
.hero-actions .social-links a:focus-visible {
  background: rgba(21, 83, 52, 0.08);
}

.hero-actions .social-links a:focus-visible {
  box-shadow: var(--focus);
}

.contact .social-links {
  margin-top: 1.75rem;
  color: var(--cream);
}

.contact .social-links a:hover,
.contact .social-links a:focus-visible,
.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.contact .social-links a:focus-visible,
.site-footer .social-links a:focus-visible {
  box-shadow: var(--focus-on-green);
}

.site-footer .social-links {
  color: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: #d5e4db;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--cream);
  font-size: 1.1rem;
}

.footer-copy {
  margin: 0;
  font-size: 1.125rem;
  color: #c5d6cb;
}

/* Mobile navigation */
@media (max-width: 1040px) {
  .header-inner {
    width: min(100% - 1.5rem, var(--measure));
    gap: 0.75rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .header-end {
    gap: 0.15rem;
  }

  .lang-switch-header {
    font-size: 0.9375rem;
  }

  .lang-switch-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 0.75rem 1.5rem 2rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 28rem;
    margin: 0 auto;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 1rem 0.35rem;
    font-size: 1.25rem;
    border-bottom: 0;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="true"] {
    border-bottom: 0;
  }

  .site-nav li:last-child a {
    margin-top: 0.65rem;
    padding: 0.85rem 1rem;
    text-align: center;
    background: var(--forest);
    color: var(--white);
    border-radius: 999px;
  }

  .site-nav li:last-child a:hover {
    background: #11452b;
    color: var(--white);
  }

  .site-nav li:last-child a:focus-visible {
    color: var(--white);
    box-shadow: var(--focus);
  }
}

/* Layout breakpoints */
@media (min-width: 720px) {
  .hero {
    padding: 4rem 0 5.5rem;
  }

  .section,
  .contact {
    padding: 5.5rem 0;
  }

  .about:has(+ .transformation) {
    padding-bottom: 2.5rem;
  }

  .transformation {
    padding-top: 0;
    padding-bottom: 2.5rem;
  }

  .moments {
    padding-top: 0;
  }
}

@media (min-width: 880px) {
  .about-grid,
  .team-grid {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.15fr);
    gap: 3rem 4.5rem;
  }

  .about-lead,
  .team-lead {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .about:has(+ .transformation) {
    padding-bottom: 2.5rem;
  }

  .moments-mosaic {
    grid-template-columns: 1fr 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "workshop highfive speaking"
      "workshop lake     speaking";
    gap: 1.15rem;
    aspect-ratio: 2 / 1;
    max-height: 40rem;
  }

  .moments-mosaic img {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(22rem, 1.05fr) minmax(18rem, 0.9fr);
    gap: 4rem;
    align-items: center;
  }

  .hero-copy {
    padding-right: 0.5rem;
  }

  .hero-portrait {
    max-height: 38rem;
    justify-self: end;
    width: 100%;
  }
}

@media (max-width: 879px) {
  .about-lead .btn,
  .team-lead .btn {
    margin-bottom: 0.25rem;
  }

  .about-lead h2,
  .team-lead h2 {
    margin-bottom: 1.25rem;
  }
}

/* Stacked before/after on small screens; desktop keeps the composite */
@media (max-width: 719px) {
  .transformation-photo-composite {
    display: none;
  }

  .transformation-photos-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: min(100%, 46rem);
    margin: 0 auto;
  }

  .transformation-photos-stacked .transformation-photo {
    max-width: 100%;
  }

  /* Let CJK wrap mid-phrase on phones. keep-all + text-wrap: balance
     makes Safari overflow a long first line instead of wrapping. */
  h1, h2,
  .hero h1,
  .hero-intro,
  .prose p,
  .service-card p:not(.service-index):not(.service-cue),
  .service-card h3,
  .assessment-callout p,
  .assessment-callout h3,
  .assessment-intro,
  .activity-card h3,
  .contact-intro,
  .contact h2,
  .section-heading,
  .about-lead h2,
  .team-lead h2,
  .form-lead,
  .inquiry-thanks p,
  .cta-line {
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .hero h1 .nowrap {
    white-space: normal;
  }

  /* Full-width stacked CTAs; social icons stay on their own wrap row. */
  .hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .hero-actions > .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .hero-actions .social-links {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-actions .social-links ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Tighten the header further on small phones. */
@media (max-width: 430px) {
  .header-inner {
    width: min(100% - 1.25rem, var(--measure));
    gap: 0.5rem;
  }

  .wordmark {
    font-size: 1rem;
  }

  .lang-switch-header {
    font-size: 0.875rem;
    gap: 0.1rem 0.25rem;
  }

  .lang-switch-header .lang-btn {
    padding-inline: 0.1rem;
  }
}

/* Below ~375px the header language switch no longer fits with the
   full wordmark and hamburger, so it lives in the mobile menu. */
@media (max-width: 370px) {
  .lang-switch-header {
    display: none;
  }
}

/* Narrow phones */
@media (max-width: 420px) {
  .container {
    width: min(100% - 2rem, var(--measure));
  }

  .hero-meta .meta-rule {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .hero-portrait {
    aspect-ratio: 3 / 4;
    max-height: 28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  a.service-card:hover,
  .activity-card:hover {
    transform: none;
  }
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: #d7c8a5;
  color: #123d2b;
}
