/* =====================================================================
   Colfeo Care - shared stylesheet
   Palette: "Meadow" (sage green / cream / peach), kid-friendly & warm.
   One stylesheet shared by the FR / NL / EN pages.
   ===================================================================== */

:root {
  /* Brand palette */
  --cream: #fbf6ec;
  --cream-2: #f4eedf;
  --sage: #6f9e7f;
  --sage-dark: #4e7b5e;
  --peach: #ee9f73;
  --peach-dark: #dd8553;
  --ink: #36443c;
  --muted: #6e7c73;
  --white: #ffffff;
  --soft-green: #eaf3ea;
  --soft-peach: #fbeadd;
  --soft-blue: #e7eef3;

  /* UI tokens */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 14px 40px -18px rgba(54, 68, 60, 0.35);
  --shadow-soft: 0 8px 24px -16px rgba(54, 68, 60, 0.4);
  --maxw: 1140px;
  --header-h: 76px;

  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--peach-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--sage-dark);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--peach-dark);
  background: var(--soft-peach);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section-pad { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(221, 133, 83, 0.9);
}
.btn-primary:hover { background: var(--peach-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { color: var(--sage-dark); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 124, 115, 0.12);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--sage-dark);
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.97rem;
  padding-block: 0.4rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--peach);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-soft);
}
.lang-switch a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  line-height: 1;
}
.lang-switch a[aria-current="true"] {
  background: var(--sage);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--sage-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
/* layered meadow hills at the bottom of the hero */
.hero-hills {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(120px, 18vh, 180px);
  z-index: 0;
  display: block;
}
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
}
.hero h1 { color: var(--sage-dark); }
.hero h1 .accent { color: var(--peach-dark); }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-photo {
  position: relative;
  justify-self: center;
  width: min(330px, 100%);
  aspect-ratio: 1;
}
.hero-photo .photo-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--soft-blue), var(--cream-2));
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.hero-photo .photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { padding: 1.5rem; font-family: var(--font-head); }
.photo-placeholder svg { width: 64px; height: 64px; opacity: 0.5; margin-bottom: 0.5rem; }

/* decorative critters / foliage (Meadow look).
   Anchored to the centered content with calc() so they flank the text
   at any screen width instead of drifting to the far edges. */
.deco { position: absolute; z-index: 1; pointer-events: none; user-select: none; display: block; }
/* tall growing plant anchored in the far-left gutter; the calc() keeps its
   right edge just left of the centered content, so it slides off-screen
   gracefully on narrower viewports instead of overlapping the text. */
.deco-plant { width: auto; height: clamp(280px, 48vh, 440px); left: calc(50% - 740px); bottom: -2px; z-index: 1; opacity: 0.96; }
.deco-fox { width: clamp(125px, 15vw, 180px); bottom: 0px; left: calc(50% - 95px); }
.deco-rabbit { width: clamp(118px, 14vw, 178px); bottom: 8px; right: max(16px, calc(50% - 500px)); }

/* small flower clusters */
.deco-flowers svg { width: 100%; height: auto; display: block; }
.deco-flowers-fox { width: clamp(60px, 7vw, 95px); bottom: 0; left: calc(50% - 50px); z-index: 1; }
.deco-flowers-rabbit { width: clamp(54px, 6vw, 84px); bottom: 22px; right: max(150px, calc(50% - 360px)); z-index: 1; }

.deco-cloud { color: #dcecd6; }
.deco-cloud svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 12px rgba(79,123,94,0.08)); }
.deco-cloud-1 { width: clamp(110px, 13vw, 175px); top: 13%; left: calc(50% - 55px); }
.deco-cloud-2 { width: clamp(112px, 12.5vw, 165px); top: 42%; right: max(4px, calc(50% - 652px)); }

/* ----------------------------- Cards ------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: -0.25rem;
  position: relative;
  z-index: 2;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 0.7rem;
}
.card .icon svg { width: 28px; height: 28px; }
.icon-sage { color: var(--sage-dark); }
.icon-peach { color: var(--peach-dark); }
.icon-blue { color: #5b7f96; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* --------------------------- About / Bio --------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--soft-green), var(--cream-2));
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
/* intro tagline of the bio: clearly distinct brand colour so it reads as a
   deliberate lead-in rather than looking like a font mismatch */
.about-grid .lead { color: var(--peach-dark); font-weight: 600; }

/* ------------------------- Pediatrics (SEO) ------------------------ */
.section-soft { background: var(--soft-green); }
.section-soft::before, .section-soft::after { content: ""; display: block; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.feature .icon { width: 48px; height: 48px; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ----------------------------- Timeline ---------------------------- */
/* Horizontal CV-style timeframe: a connecting bar with milestone dots, and
   each step's period + title + detail sitting underneath its own dot. */
.timeline {
  --tl-gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  gap: var(--tl-gap);
}
.timeline li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 2.4rem;
}
/* milestone dot, sitting on the bar */
.timeline li::before {
  content: "";
  position: absolute;
  top: 1px; left: 0;
  width: 18px; height: 18px;
  background: var(--peach);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(238, 159, 115, 0.25);
  z-index: 1;
}
/* connecting bar reaching the next milestone */
.timeline li::after {
  content: "";
  position: absolute;
  top: 8px; left: 9px;
  width: calc(100% + var(--tl-gap));
  height: 3px;
  background: var(--sage);
  opacity: 0.35;
  border-radius: 3px;
}
/* three small fading dots after the last milestone: the future yet to come */
.timeline li:last-child::after {
  display: block;
  background: none;
  top: 7px;
  left: 26px;
  width: 44px;
  height: 8px;
  background-image: radial-gradient(circle, var(--peach) 2.6px, transparent 3px);
  background-size: 15px 8px;
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.45;
  border-radius: 0;
}
.timeline .when {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--peach-dark);
  font-size: 0.88rem;
  background: var(--soft-peach);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.timeline h3 { margin: 0.1rem 0 0.2rem; font-size: 1.06rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* stack vertically on narrow screens */
@media (max-width: 760px) {
  .timeline { flex-direction: column; gap: 1.5rem; }
  .timeline li { padding: 0 0 0 2.2rem; }
  .timeline li::before { top: 3px; left: 0; width: 16px; height: 16px; }
  .timeline li::after,
  .timeline li:last-child::after { display: none; }
}

/* --------------------------- Hours / Places ------------------------ */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.place {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
}
.place h3 { display: flex; align-items: center; gap: 0.5rem; }
.place .addr { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--cream-2); }
.hours th { font-weight: 700; color: var(--ink); }
.hours .day-note { font-weight: 600; color: var(--muted); font-size: 0.82rem; }
.hours td { color: var(--muted); text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ----------------------------- Contact ----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
}
.contact-list .ic {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--soft-green);
  color: var(--sage-dark);
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list strong { display: block; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.95rem; }
.contact-list a:hover { color: var(--peach-dark); }

.emergency {
  background: var(--soft-peach);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.emergency h3 { color: var(--peach-dark); }
.emergency .emergency-sub { margin: 1.1rem 0 0.4rem; font-weight: 800; color: var(--ink); }
.emergency ul { margin: 0; padding-left: 1.1rem; color: var(--ink); }
.emergency li { margin-bottom: 0.35rem; }
.emergency .num { font-weight: 800; color: var(--peach-dark); }

/* ------------------------------ Footer ----------------------------- */
.site-footer {
  background: var(--sage-dark);
  color: #e7f0ea;
  padding-block: 2.6rem 1.6rem;
  margin-top: 2rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { font-family: var(--font-head); font-weight: 500; margin: 0 0 0.6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: #c8dccf;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ---------------------------- Responsive --------------------------- */
@media (max-width: 880px) {
  .hero { padding: 1.5rem 0 4rem; display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-photo { order: -1; width: min(300px, 78%); }
  .deco-cloud-2, .deco-plant, .deco-flowers-rabbit { display: none; }
  .deco-fox { width: 104px; bottom: 6px; left: -6px; }
  .deco-rabbit { width: 92px; bottom: 8px; right: -6px; }
  .deco-flowers-fox { width: 64px; bottom: 2px; left: 96px; }
  .deco-cloud-1 { width: 84px; top: 5%; left: auto; right: 10px; }
  .hero-hills { height: 180px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; margin-top: 1.5rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: var(--cream);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    border-bottom: 1px solid rgba(110, 124, 115, 0.15);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { width: 100%; font-size: 1.05rem; padding-block: 0.6rem; }
  .nav-links .btn { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* --------------------- Booking choice modal ------------------------ */
body.rdv-lock { overflow: hidden; }
.rdv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.rdv-modal[hidden] { display: none; }
.rdv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 68, 60, 0.55);
  backdrop-filter: blur(2px);
}
.rdv-dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.rdv-close {
  position: absolute;
  top: 0.6rem; right: 0.9rem;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
}
.rdv-close:hover { color: var(--ink); background: var(--cream-2); }
.rdv-title { margin: 0 0 0.3rem; }
.rdv-sub { color: var(--muted); margin: 0 0 1.5rem; }
.rdv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rdv-option {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--sage-dark);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.rdv-option:hover { transform: translateY(-3px); color: var(--sage-dark); box-shadow: var(--shadow); }
.rdv-option-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.rdv-option-place { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 480px) { .rdv-options { grid-template-columns: 1fr; } }

/* ----------------------- Utilities & helpers ----------------------- */
.mt-0 { margin-top: 0; }
.cta-spaced { margin-bottom: 1.6rem; }
.footer-tag { max-width: 32ch; margin-top: 0.8rem; color: #cfe0d5; }

/* Simple centered notice (404 / redirect pages) */
.notice { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notice-inner { max-width: 540px; }
.notice-inner img { width: 92px; height: 92px; margin: 0 auto 1.2rem; }
.notice-inner h1 { font-size: clamp(2rem, 5vw, 3rem); }
