/* I Am River / Je suis fleuve
   Colours and fonts carried over from the original Wix site. */

:root {
  --navy: #272944;
  --river: #007da4;
  --river-deep: #00607f;
  --cream: #f1efe7;
  --paper: #faf9f5;
  --sage: #4c7d71;
  --gold: #edd18c;
  --sky: #95c5ef;
  --mist: #dcebf5;
  --muted: #5a5b6d;
  --rule: rgba(39, 41, 68, 0.28);
  --font-display: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: min(1100px, 92vw);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(39, 41, 68, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 76px;
  padding: 0.55rem 1.6rem 0.55rem 0.8rem;
  background: var(--navy);
  text-decoration: none;
}
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.brand-en { color: var(--gold); }
.brand-fr { color: var(--sky); }

.lang-switch {
  justify-self: start;
  display: inline-flex;
  margin-left: clamp(1rem, 5vw, 4.5rem);
  border: 1px solid #bfbebe;
  background: var(--paper);
}
.lang-switch a {
  padding: 0.4rem 0.8rem;
  color: var(--navy);
  font-size: 0.85rem;
  text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--cream); }

.nav { display: flex; align-items: center; gap: 1.7rem; padding: 0 1.6rem; }
.nav a { color: var(--navy); font-size: 0.95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--river); }
.nav .nav-contact {
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--river);
  border-radius: 999px;
  color: var(--river);
  font-weight: 700;
}
.nav .nav-contact:hover, .nav .nav-contact[aria-current="page"] { background: var(--river); color: #fff; }

.menu-toggle {
  display: none;
  justify-self: end;
  margin-right: 1rem;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  content: "";
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand { min-height: 64px; padding-right: 1rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-text { font-size: 1.15rem; }
  .lang-switch { margin-left: 0.8rem; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 1rem;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 1.4rem; font-size: 1.05rem; }
  .nav .nav-contact { margin: 0.5rem 1.4rem 0; text-align: center; }
}

/* ---------- Shared building blocks ---------- */

.banner {
  padding: 1.1rem 1rem 1.25rem;
  background: var(--river);
  color: var(--cream);
  text-align: center;
}
.banner h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  text-transform: uppercase;
}
.banner p { margin: 0.35rem 0 0; color: var(--gold); font-size: 0.95rem; font-weight: 600; }
.banner--sage { background: var(--sage); }
.banner--sage p { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.6rem;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.btn--arrow::after { content: "›"; font-size: 1.25em; line-height: 0; }
.btn--pill { min-width: 200px; border-radius: 999px; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--river { background: var(--river); color: #fff; }
.btn--sage { background: var(--sage); color: #fff; }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--box { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }

.rule { width: var(--wrap); height: 1px; margin: 0 auto; border: 0; background: var(--rule); }

em.title { font-style: italic; }

/* ---------- Home ---------- */

.hero {
  position: relative;
  width: var(--wrap);
  min-height: clamp(300px, 55vw, 700px);
  margin: 3rem auto 2.4rem;
  overflow: hidden;
  background: #3b5a8c;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}
/* Wix's "Reveal" scroll effect: the picture stays still while the page scrolls past, as if the hero
   were a window onto it. Like on Wix, the picture is as wide as the hero and as tall as the screen.
   clip-path (unlike overflow) also clips the fixed picture to the hero's box. */
@media (prefers-reduced-motion: no-preference) {
  .hero { clip-path: inset(0); }
  .hero-bg {
    position: fixed;
    inset: 0 auto auto 50%;
    width: var(--wrap);
    height: 100vh;
    height: 100lvh;
    transform: translateX(-50%);
  }
}
.hero-content { position: relative; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3.5vw, 2.6rem); }
.hero h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 8px 22px rgba(0, 0, 0, 0.22);
}
.hero p { margin: 0.35rem 0 0; color: var(--gold); font-size: clamp(1rem, 1.9vw, 1.3rem); font-weight: 700; }

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  width: var(--wrap);
  margin: 0 auto 3.5rem;
}
.card-intro, .card-art {
  position: relative;
  min-height: 380px;
  background-position: center;
  background-size: cover;
}
.card-intro { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.6rem, 4vw, 3rem); color: #fff; }
.card-intro .tag {
  align-self: flex-start;
  margin: 0 0 0.6rem;
  padding: 0.05rem 0.45rem;
  background: rgba(190, 219, 245, 0.92);
  color: var(--navy);
  font-size: 1.7rem;
}
.card-intro p { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.55; text-shadow: 0 1px 2px rgba(0, 40, 70, 0.25); }
.card-art .btn { position: absolute; right: 1.8rem; bottom: 3.2rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }

@media (max-width: 760px) {
  .home-cards { grid-template-columns: 1fr; gap: 1.4rem; }
  .card-art { min-height: 300px; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
}
.about-grid > * { border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.about-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.about-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.4rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}
.about-text h2 { margin: 0 0 0.6rem; font-size: 2.2rem; }
.about-text p { margin: 0; font-size: 0.95rem; line-height: 1.85; }
.about-text .btn { margin-top: 1.8rem; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-media { order: 0; }
  .about-row-flip .about-media { order: -1; }
}

/* ---------- Books ---------- */

.books-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1000px, 92vw);
  margin: 0 auto 3rem;
}
.books-copy { display: flex; flex-direction: column; }
.books-block { padding: 2rem 2.4rem 2.4rem 1rem; }
.books-block + .books-block { border-top: 1px solid var(--muted); }
.lead { margin: 0 0 1.4rem; font-size: 1.4rem; line-height: 1.4; }
.lead--river { color: var(--river); }
.books-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .books-layout { grid-template-columns: 1fr; }
  .books-photo { order: -1; }
  .books-block { padding: 1.8rem 0.4rem; }
}

/* ---------- Workshops ---------- */

.ws-hero { padding-top: clamp(3rem, 8vw, 5.5rem); background-position: center; background-size: cover; }
.ws-hero-card {
  width: min(930px, 92vw);
  margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 2rem;
  background: var(--cream);
  text-align: center;
}
.ws-hero-card h1 { margin: 0 0 0.6rem; color: var(--river); font-size: clamp(2.4rem, 5vw, 3.2rem); text-transform: uppercase; }
.ws-hero-card h2 { margin: 1.6rem 0 0.4rem; font-size: 2.1rem; }
.ws-hero-card p { margin: 0; font-size: 0.95rem; line-height: 1.8; }

.theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.4rem;
  width: min(930px, 92vw);
  margin: 0 auto;
  padding: 2.6rem clamp(0.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--muted);
}
.theme h2 { margin: 0 0 0.7rem; font-size: 1.9rem; }
.theme p { margin: 0 0 0.35rem; font-size: 0.95rem; line-height: 1.75; }
.theme .key { font-weight: 700; }
.theme .teaser { margin-top: 1.4rem; color: var(--river); font-weight: 700; }
.theme .main-idea { color: var(--river); font-style: italic; font-weight: 700; }
.theme-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.theme-media img + img { margin-top: 0.5rem; }
.theme-media.stack img { aspect-ratio: 16 / 7.5; }
.theme--flip .theme-media { order: 2; }
.ws-cta { padding: 2rem 0 3rem; }

@media (max-width: 760px) {
  .theme { grid-template-columns: 1fr; gap: 1.4rem; }
  .theme--flip .theme-media { order: 0; }
}

/* ---------- Simple content pages (resources, forms, checkout) ---------- */

.page { width: min(760px, 92vw); margin: 2.6rem auto 3.5rem; }
.page--wide { width: min(980px, 92vw); }
.page-intro { margin-bottom: 2rem; }
.page-intro p { margin: 0 0 0.9rem; }
.page-intro .price-list { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--river); background: var(--paper); }
.page-intro .price-list p { margin: 0.15rem 0; }
.page-empty { min-height: 38vh; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.contact-card { padding: 1.6rem; background: var(--river); color: #fff; }
.contact-card h2 { margin: 0 0 0.6rem; color: var(--gold); font-size: 1.9rem; }
.contact-card a { color: #fff; font-weight: 700; }
.contact-card p { margin: 0.3rem 0; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */

.form-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--rule); background: var(--paper); }
.field { margin: 0 0 1.2rem; border: 0; padding: 0; }
.field > label, .field > legend { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.field .hint { display: block; margin: -0.15rem 0 0.45rem; color: var(--muted); font-size: 0.88rem; }
.field .req { color: var(--river); }
.fr-line { display: block; color: var(--muted); font-weight: 600; }

input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid rgba(39, 41, 68, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--river); outline: 3px solid rgba(0, 125, 164, 0.25); outline-offset: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  min-width: 3rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid rgba(39, 41, 68, 0.35);
  border-radius: 999px;
  background: #fff;
  text-align: center;
}
.choice input:checked + span { border-color: var(--river); background: var(--river); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(0, 125, 164, 0.35); }

.hp { position: absolute; left: -9999px; }

.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 6px; }
.form-status--success { background: #e2f0eb; color: #1f4a40; }
.form-status--error { background: #fbe8e5; color: #7a2418; }
.form-success-panel { padding: 1.4rem 1.2rem; border-left: 4px solid var(--sage); background: #e2f0eb; }
.form-success-panel h2 { margin: 0 0 0.4rem; font-size: 1.8rem; }

/* ---------- Order / checkout ---------- */

.order-panel { display: grid; gap: 0; margin-bottom: 1.8rem; }
.qty-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.qty-row label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; }
.stepper button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
}
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper input {
  width: 2.6rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.summary { margin: 1.2rem 0 0; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.summary-row--total { margin-top: 0.4rem; padding-top: 0.7rem; border-top: 2px solid var(--navy); font-size: 1.15rem; font-weight: 800; }
.order-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.order-limit { margin: 1rem 0 0; padding: 0.9rem 1.1rem; border-radius: 6px; background: #fff3d6; color: #5c4200; }
.order-actions { margin-top: 1.4rem; }

/* ---------- Newsletter ---------- */

.newsletter { position: relative; margin-top: 3rem; background: var(--mist); }
.newsletter-wave { position: absolute; left: 0; right: 0; top: -38px; width: 100%; height: 40px; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2rem;
  width: min(1000px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 2.8rem;
}
.newsletter h2 { margin: 0 0 0.4rem; font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.newsletter p { margin: 0; }
.newsletter-form .inline { display: flex; gap: 0.6rem; }
.newsletter-form label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.newsletter-form .btn { flex-shrink: 0; border-radius: 6px; }
.newsletter-form .fine { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .newsletter-form .inline { flex-direction: column; }
}

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

.site-footer { background: var(--river); color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  width: min(1000px, 92vw);
  margin: 0 auto;
}
.footer-logo img { width: 200px; height: 100%; object-fit: cover; }
.footer-text { padding: 1rem 0 1.4rem; }
.footer-text h2 { margin: 0 0 0.2rem; color: var(--gold); font-size: 1.9rem; }
.footer-text h3 { margin: 1.1rem 0 0.1rem; color: var(--navy); font-size: 1.4rem; }
.footer-text p { margin: 0; font-size: 0.86rem; line-height: 1.5; }
.footer-text a { color: #fff; }
.footer-text h3 a { color: inherit; text-decoration: none; }
.footer-text h3 a:hover { text-decoration: underline; }
.footer-bar { background: var(--sage); }
.footer-bar p { width: min(1000px, 92vw); margin: 0 auto; padding: 0.35rem 0; color: #1e2d2a; font-size: 0.8rem; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo img { width: 160px; height: auto; margin-top: 1.4rem; }
}

/* ---------- Translation review mode (add ?review to any URL) ---------- */

html.review [data-todo] { outline: 2px dashed #d99a00; outline-offset: 3px; }
html.review [data-todo]:not(.btn) { background: rgba(255, 214, 102, 0.25); }
html.review .choices[data-todo]::before { align-self: center; }
html.review [data-todo]::before {
  content: "FR needed";
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 3px;
  background: #d99a00;
  color: #fff;
  font: 700 0.7rem/1.5 var(--font-body);
  vertical-align: middle;
}

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