/* Équilibre Familial - the site's only stylesheet (pages built by tools/build_pages.py).
   Mobile-first: base rules target a ~360 px phone, min-width queries add.

   Palette chosen by the owner (phase 2 feedback): cream ground, white and
   powder-pink sections, structural green, burnt-orange accent, peach now and
   then. Her orange #C65325 is used as-is for fills; small TEXT uses a darker
   shade of it, because #C65325 falls under the WCAG AA 4.5:1 ratio on cream and
   pink. Every text pair is checked by tools/check_contrast.py.

   No JavaScript anywhere: the CloudFront CSP forbids scripts, inline styles
   and third-party origins. The mobile menu is a <details> element - each link
   loads a new page, which closes it. */

:root {
  --cream:        #FCF9F5;  /* page ground                                  */
  --white:        #FFFFFF;  /* alternating sections; the logo's own ground   */
  --pink:         #F2D5D0;  /* alternating sections (powder pink)            */
  --peach:        #F9D9C4;  /* occasional: tags, icon discs, Démarche boxes  */
  --green:        #4E6041;  /* structural: headings, footer, step numbers    */
  --text:         #3E4C33;  /* body text: deep shade of the green            */
  --orange:       #C65325;  /* accent fills: buttons, rules, dots            */
  --orange-deep:  #A2441C;  /* orange for TEXT and button hover (AA)         */
  --line:         #EADCD3;  /* borders                                       */
  --on-dark:      #FFFFFF;

  --font: "Poppins", ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 6rem);
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgb(78 96 65 / 0.06), 0 10px 28px rgb(78 96 65 / 0.09);
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */

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

html {
  color-scheme: light;   /* white-ground raster logo: no dark mode */
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--green);
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

strong { font-weight: 500; color: var(--green); }

a { color: var(--orange-deep); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Keeps "puis-je" and similar hyphenated words from breaking at the hyphen. */
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--green);
  color: var(--on-dark);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--orange-deep);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;          /* 48 px tap target */
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-dark);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--on-dark); }

.button--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.button--ghost:hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }

.button--small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);   /* the logo is a white-ground raster */
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 76rem;
  margin-inline: auto;
  padding: 0.4rem var(--gutter);
}

/* The owner asked for a bigger, more prominent logo. */
.brand { display: block; width: 168px; flex: none; }
.brand img { width: 100%; }

/* 320-359 px phones: logo and menu button must share the row. */
@media (max-width: 359px) {
  .brand { width: 136px; }
  .menu .menu__toggle { padding-inline: 0.8rem; }
}

.site-nav,
.site-header__cta { display: none; }

/* Mobile menu: <details>, no JavaScript. */
.menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle .icon { width: 1.4rem; height: 1.4rem; }
.menu__icon-close,
.menu[open] .menu__icon-open { display: none; }
.menu[open] .menu__icon-close { display: block; }

.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 1rem;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgb(78 96 65 / 0.1);
  max-height: calc(100svh - 5rem);
  overflow-y: auto;
}

.menu__panel a:not(.button) {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}
.menu__panel a[aria-current="page"] { color: var(--orange-deep); }
.menu__panel .menu__sub a { padding: 0.6rem 0 0.6rem 1.25rem; font-size: 1rem; font-weight: 400; }

/* ---------- Page heads (inner pages) ---------- */

.page-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }

.page-head__title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}

.page-head__title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--orange);
  border-radius: 2px;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--pink  { background: var(--pink); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 2.75rem); }

.section__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.625rem, 5.5vw, 2.25rem);
  font-weight: 400;
}
.section__title--center { text-align: center; }

.section__intro { margin-top: 0.75rem; font-size: 1.0625rem; }

.prose { max-width: 48rem; margin-inline: auto; }

.motto {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--green);
  font-size: 1.1875rem;
  font-weight: 500;
}

/* ---------- Home hero: photo background, cream panel ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* The photo is always a background (the owner's call: on a phone her slogan,
   not the photo, must come first). It frames a translucent cream panel. */
.hero { display: grid; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}

.hero__inner { position: relative; align-self: center; padding-block: 1.25rem 2.5rem; }

.hero__panel {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(252 249 245 / 0.9);  /* --cream */
  box-shadow: var(--shadow);
}

.hero__title {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
}

.hero__tagline {
  margin-top: 1rem;
  color: var(--green);
  font-size: clamp(1.125rem, 4vw, 1.3125rem);
  font-weight: 500;
}

.hero__signature {
  margin-top: 1.5rem;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 3px solid var(--orange);
}
.hero__signature p + p { margin-top: 0.1rem; }
.hero__name { color: var(--green); font-size: 1.125rem; font-weight: 500; }

.hero__services { margin-top: 1rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__actions .button { flex: 1 1 15rem; }

/* ---------- Service cards (home) ---------- */

.service-cards { display: grid; gap: 1.25rem; margin-top: 0.5rem; }

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.service-cards li:nth-child(2) .service-card { border-top-color: var(--orange); }
.service-cards li:nth-child(3) .service-card { border-top-color: var(--pink); }

.service-card:hover { box-shadow: var(--shadow); color: var(--text); }

.service-card__tag {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--peach);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
}

.service-card__title { margin-bottom: 0.6rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--orange-deep);
  font-weight: 500;
}

/* ---------- At home or online (home) ---------- */

.adapt {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--pink);
}

.adapt__icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
}

.adapt__title { font-size: clamp(1.375rem, 4.5vw, 1.75rem); font-weight: 400; }
.adapt__subtitle { margin-top: 0.5rem; color: var(--green); font-weight: 500; font-size: 1.125rem; }
.adapt__area { margin-top: 0; margin-bottom: 1rem; font-size: 0.9375rem; }
.adapt p + p.adapt__area { margin-top: 0; }

.adapt__list { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.adapt__list li { position: relative; padding-left: 1.5rem; }
.adapt__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Services page ---------- */

.service { scroll-margin-top: 6rem; }

.service__inner { display: grid; gap: 2rem; align-items: start; }

.service__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.service__body { max-width: 44rem; }

.service__tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--peach);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
}
.section--pink .service__tag { background: var(--white); }

.service__lede { color: var(--green); font-size: 1.125rem; font-weight: 500; }

.service__closing {
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--green);
  font-style: italic;
}

.fine-print { margin-top: 1.5rem; font-size: 0.8125rem; }

.challenges__list {
  display: grid;
  gap: 0.2rem 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.challenges__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-bottom: 1px solid var(--cream);
  color: var(--green);
}

/* Green dots, all the same colour (owner's request, 23 Sept 2026) - decorative. */
.challenges__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--green);
}

/* Rates (Tarifs) */
.rates { display: grid; gap: 1.25rem; }

.rate {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.rate__title { margin-bottom: 0.6rem; color: var(--green); font-size: 1.1875rem; font-weight: 500; }
.rate p + p { margin-top: 0.75rem; }

.rate__price { margin-top: 1rem; color: var(--green); }
.rate__price strong { font-size: clamp(1.0625rem, 4.5vw, 1.25rem); font-weight: 500; white-space: nowrap; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.cta-row .button { flex: 1 1 18rem; }

/* ---------- Process (Démarche) ---------- */

.process__head { margin-bottom: 2.5rem; }
.process__cta { margin-top: 1.75rem; }

.steps { counter-reset: step; position: relative; }

.steps::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--pink);
}

.step {
  position: relative;
  counter-increment: step;
  padding-left: 4.5rem;
  padding-bottom: 2.25rem;
}
.step:last-child { padding-bottom: 0; }

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.25rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--green);
  color: var(--on-dark);
  font-size: 1.25rem;
  font-weight: 500;
}
.step:nth-child(even)::before { background: var(--orange-deep); }

.step__title { margin-bottom: 0.4rem; font-size: 1.1875rem; font-weight: 500; }

.verbs { display: grid; gap: 0.35rem; margin-top: 0.75rem; }

.verbs li {
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--peach);
  color: var(--green);
  font-size: 0.9375rem;
}

/* ---------- About (À propos) ---------- */

.about { display: grid; gap: 2.5rem; justify-items: center; }

/* House-shaped frame: a nod to the logo. */
.about__portrait {
  position: relative;
  width: min(100%, 280px);
  margin: 0;
}

.about__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(0.9rem, 0.9rem);
  background: var(--pink);
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}

.about__portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}

.about__body { max-width: 42rem; }
.about__body .page-head__title { margin-bottom: 1.5rem; }
.about__hello { color: var(--green); font-size: 1.25rem; font-weight: 500; }

.credentials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }

.credentials li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
}

.trainings {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.trainings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  color: var(--green);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.trainings summary::-webkit-details-marker { display: none; }
.trainings__chevron { transition: transform 0.2s; }
.trainings[open] .trainings__chevron { transform: rotate(180deg); }

.trainings__list { padding: 0 1.25rem 1.25rem; }

.trainings__list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.trainings__name { display: block; color: var(--green); }
.trainings__org { display: block; margin-top: 0.15rem; font-size: 0.8125rem; }

.about__cta { margin-top: 2rem; }

/* ---------- Contact ---------- */

.contact-list { display: grid; gap: 0.75rem; }

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover { border-color: var(--orange); box-shadow: var(--shadow); color: var(--green); }

.contact-item__icon {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--green);
}

.contact-item__label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text); }

.contact-item__value {
  color: var(--orange-deep);
  font-weight: 500;
  overflow-wrap: anywhere;   /* the email address at 320 px */
}

/* Phone and text share one card: the card itself is not a link, its two
   actions are (a link cannot contain other links). */
.contact-item--split:hover { border-color: var(--line); box-shadow: none; }

.contact-item__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.contact-item__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.contact-item__action:hover { background: var(--green); color: var(--on-dark); }

.contact-layout { display: grid; gap: 3rem; align-items: start; }

.form-card__title { margin-bottom: 1.25rem; font-size: 1.375rem; font-weight: 500; }

.notice {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--peach);
  color: var(--text);
}
.notice strong { display: block; margin-bottom: 0.25rem; }

.form__fields { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 1.25rem; }

.field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; }

.field label,
.choices legend { color: var(--green); font-weight: 500; font-size: 0.9375rem; }
.choices legend { padding: 0; margin-bottom: 0.4rem; }

.field__req { color: var(--text); font-weight: 400; font-size: 0.8125rem; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #B9AEA6;
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--text);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 1px; }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choices legend { width: 100%; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 400;
}
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--green); }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__privacy { font-size: 0.8125rem; }

.form__submit { justify-self: start; }

/* No contact preference ticked yet: the button stays inactive. A soft guard
   only (the keyboard's implicit submit still works); the backend enforces it. */
.form:not(:has(input[name="preference"]:checked)) .form__submit {
  opacity: 0.55;
  pointer-events: none;
}

/* Display-only until the backend exists: visibly inactive. */
.form__fields:disabled { opacity: 0.6; }
.form__fields:disabled .form__submit { cursor: not-allowed; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding-block: 3rem 2rem;
  background: var(--green);
  color: var(--on-dark);
  font-size: 0.9375rem;
}

/* A gentle wave instead of a straight edge, like the owner's poster. It sits
   over the bottom padding of the last section, whose colour shows through
   above the curve. A data: image, which the CSP allows (img-src data:). The
   fill is --green (#4E6041); keep them in step. */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(1.5rem, 4vw, 3.25rem);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%234E6041' d='M0 46C180 20 360 14 560 30s380 44 560 36 240-40 320-48V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.site-footer__inner { display: grid; gap: 1.75rem; }

.site-footer__brand p + p { margin-top: 0.35rem; }
.site-footer__name { font-size: 1.25rem; font-weight: 500; }

.site-footer__links { display: grid; gap: 0.35rem; }

.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--on-dark); }

.site-footer__legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-size: 0.8125rem;
}

/* ---------- Larger phones / small tablets ---------- */

@media (min-width: 600px) {
  .brand { width: 200px; }

  .challenges__list { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .verbs { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }

  .adapt { grid-template-columns: auto 1fr; align-items: start; gap: 1.75rem; }

  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* ---------- Tablet landscape and desktop ---------- */

@media (min-width: 900px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }


  .service__inner { grid-template-columns: 420px 1fr; gap: 3.5rem; }
  .service__inner--reverse { grid-template-columns: 1fr 420px; }
  .service__inner--reverse .service__img { order: 2; }
  .rates { grid-template-columns: repeat(3, 1fr); }

  .about { grid-template-columns: 360px 1fr; align-items: start; gap: 4rem; justify-items: stretch; }
  .about__portrait { width: 100%; position: sticky; top: 9rem; }

  .process { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .process__head { position: sticky; top: 9rem; margin-bottom: 0; }

  .contact-layout { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .contact-side .contact-list { grid-template-columns: 1fr; }

  /* Hero: taller, panel on the left over the photo's calm side. */
  .hero { min-height: min(46rem, calc(100svh - 7rem)); }
  .hero__bg { object-position: 70% 55%; }
  .hero__inner { padding-block: 3.5rem; }
  .hero__panel { max-width: 36rem; padding: 2.5rem 2.75rem; background: rgb(252 249 245 / 0.93); }
  .hero__actions .button { flex: 0 1 auto; }
}

@media (min-width: 1024px) {
  html { scroll-padding-top: 8rem; }

  .brand { width: 240px; }
  .menu { display: none; }
  .site-nav, .site-header__cta { display: block; }
  .site-header__cta { display: inline-flex; }

  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; }
  .site-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--green);
    font-weight: 500;
    text-decoration: none;
  }
  .site-nav a:hover { color: var(--orange-deep); }
  .site-nav a[aria-current="page"] { background: var(--pink); }

  /* Services sub-menu: opens on hover and when a link inside has keyboard focus. */
  .site-nav__has-sub { position: relative; }
  .site-nav .site-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 12rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--white);
    box-shadow: 0 16px 24px rgb(78 96 65 / 0.12);
  }
  .site-nav__has-sub:hover > .site-nav__sub,
  .site-nav__has-sub:focus-within > .site-nav__sub { display: flex; }
  .site-nav__sub a { border-radius: 0.5rem; white-space: nowrap; }
  .site-nav__sub a:hover { background: var(--cream); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__panel { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

  .service-card:hover { transform: translateY(-3px); }

  @supports (animation-timeline: view()) {
    .service-card, .step, .contact-item, .rate, .adapt {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

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