/* Healthy Kids JA — base styles.
   Restyle: faithful to the live site's pastel palette and section bands.
   Bands: mint / cyan / cream / grey. Buttons: pastel. Accent teal #22BAA0.
   Products replicate the Lasso Cactus card look (white card, teal button). */

:root {
  --color-teal: #22BAA0;
  --color-teal-dark: #188f7b;
  --color-coral: #f08b8b;
  --color-coral-dark: #e57373;
  --color-yellow: #ffd67c;
  --color-blue: #a8c7e4;
  --color-lilac: #e4a8e0;
  --color-band-mint: #b3e7df;
  --color-band-cyan: #abebf8;
  --color-band-cream: #ffebbe;
  --color-band-grey: #dfe2e2;
  --color-ink: #222;
  --color-ink-soft: #414141;
  --color-muted: #6b6b6b;
  --color-border: #e8e2d6;
  --font-display: "Roboto", "Segoe UI", sans-serif;
  --font-body: "Roboto", "Segoe UI", sans-serif;
  --wrap-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.2;
}

a { color: var(--color-teal-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-coral); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }

/* Section bands (live-site pastel bands) */
.band-mint { background: var(--color-band-mint); }
.band-cyan { background: var(--color-band-cyan); }
.band-cream { background: var(--color-band-cream); }
.band-grey { background: var(--color-band-grey); }
.band-white { background: #fff; }

/* Header / nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-ink);
}
.site-header__logo img { border-radius: 50%; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--color-ink); }
.site-nav a:hover { color: var(--color-teal-dark); }

/* Buttons (pastel) */
.button {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: filter .15s ease, transform .1s ease;
}
.button:hover { filter: brightness(.96); }
.button--primary { background: var(--color-coral); color: #fff; }
.button--secondary { background: var(--color-blue); color: var(--color-ink); }
.button--lilac { background: var(--color-lilac); color: var(--color-ink); }

/* Hero */
.hero {
  position: relative;
  background: var(--color-band-cyan) center/cover no-repeat;
  background-image: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), url("/images/hero-live.jpg");
  text-align: right;
  padding: 4.5rem 0;
}
.hero__wordmark { max-width: 420px; width: 100%; height: auto; margin-bottom: 1.5rem; margin-left: auto; }
.hero__actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: 1.25rem;
  max-width: 60rem;
  margin: 1.5rem 0 0 auto;
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  padding: .75rem 1rem;
}

/* Team */
.testimonials__grid, .products-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.team__member,
.team__stack {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  flex: 1 1 260px;
  max-width: 360px;
}
.team__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
}
.team__stack .team__member {
  flex: none;
  max-width: none;
  width: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.team__member img, .testimonial img { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; margin-bottom: 1rem; }
.team__avatar { border-radius: 50%; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; background: var(--color-coral); color: #fff; font-size: 2rem; font-weight: 700; }
.team__title { color: var(--color-muted); font-weight: 600; margin-top: -.5rem; }
.team__link { font-weight: 700; }

/* Bio pages */
.bio-page {
  position: relative;
}
.bio-page__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/images/hero-live.jpg");
  background-size: cover;
  background-position: right center;
}
.bio-page__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fff 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 72%, #fff 100%);
}
.bio {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 1.5rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.bio__head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.bio__head img { border-radius: 50%; width: 128px; height: 128px; object-fit: cover; flex-shrink: 0; }
.bio__head h1 { margin: 0; }
.bio__head-main { flex: 1; min-width: 0; }
.bio__head-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bio__book { flex-shrink: 0; font-size: .95rem; }
.bio__title { color: var(--color-muted); font-weight: 600; margin: .25rem 0 0; }
.bio__para { margin-bottom: 1rem; }
.bio-page__nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 720px;
}
.bio-page__nav-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: .5rem .75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.bio-page__nav-link--next { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.bio-page__nav-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.bio-page__nav-text { display: flex; flex-direction: column; gap: .1rem; }
.bio-page__nav-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.bio-page__nav-name { font-weight: 700; color: var(--color-ink); line-height: 1.2; }
.bio-page__nav-link:hover { border-color: var(--color-teal-dark); }

/* Testimonials */
.testimonial { margin: 0; }
.testimonial__rating { color: var(--color-teal-dark); font-size: 1.1rem; letter-spacing: .1em; }
.testimonial__quote { font-style: italic; }

/* Services — grouped by category (Variant A), compact, cards always contrast band */
.services { padding: 2.25rem 0; }
.services h2 { margin: 0 0 1.4rem; }
.services__group { margin-bottom: 1.4rem; }
.services__group:last-child { margin-bottom: 0; }
.services__group-title {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.services__group-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 4px;
  background: var(--color-teal);
  flex-shrink: 0;
}
.services__group-dot--new   { background: #4fc3ef; }
.services__group-dot--brn   { background: #b39ddb; }
.services__group-dot--sck   { background: #f08b8b; }
.services__group-dot--ext   { background: #ffd54f; }
.services__group-dot--surg  { background: var(--color-blue); }
.services__group-dot--well  { background: var(--color-teal); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: .55rem .6rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  outline: none;
}
.service-card--well:hover,
.service-card--well:focus-visible { border-color: var(--color-teal); }
.service-card--new:hover,
.service-card--new:focus-visible { border-color: #4fc3ef; }
.service-card--brn:hover,
.service-card--brn:focus-visible { border-color: #b39ddb; }
.service-card--sck:hover,
.service-card--sck:focus-visible { border-color: #f08b8b; }
.service-card--ext:hover,
.service-card--ext:focus-visible { border-color: #ffd54f; }
.service-card--surg:hover,
.service-card--surg:focus-visible { border-color: var(--color-blue); }
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-band-mint);
  color: var(--color-teal-dark);
  margin-bottom: .3rem;
}
.service-card__icon--new   { background: var(--color-band-cyan); color: var(--color-teal-dark); }
.service-card__icon--brn   { background: #e4dcf7; color: var(--color-teal-dark); }
.service-card__icon--sck   { background: #fbe4e4; color: var(--color-teal-dark); }
.service-card__icon--ext   { background: #fdf0c9; color: var(--color-teal-dark); }
.service-card__icon--surg  { background: #e6eef7; color: var(--color-teal-dark); }
.service-card__icon--well  { background: var(--color-band-mint); color: var(--color-teal-dark); }
.service-card__svg { width: 17px; height: 17px; }
.service-card__name { font-weight: 700; display: block; font-size: .82rem; }

/* Service-card-as-button reset (modal triggers) */
button.service-card {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-ink);
  width: 100%;
}
button.service-card:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Delivery option at the bottom of services */
.services__delivery { margin-top: 1.6rem; }
.delivery-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  position: relative;
  background: var(--color-coral);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-family: inherit;
  font-size: inherit;
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.delivery-card:hover,
.delivery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  background: var(--color-coral-dark);
  outline: none;
}
.delivery-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.22);
  color: #fff;
  flex-shrink: 0;
}
.delivery-card__svg { width: 22px; height: 22px; }
.delivery-card__txt { flex: 0 1 auto; display: flex; flex-direction: column; }
.delivery-card__title { font-weight: 700; font-size: .95rem; }
.delivery-card__subtitle { color: rgba(255,255,255,.85); font-size: .82rem; }
.delivery-card__arrow {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* Consult-call modal */
.modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal::backdrop { background: rgba(0,0,0,.4); }
.modal__inner {
  position: relative;
  padding: 2rem 2rem 2.25rem;
  background: #fff;
  border-radius: 16px;
  border-top: 6px solid var(--color-blue);
  text-align: center;
}
.modal__close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: .25rem .5rem;
}
.modal__close:hover,
.modal__close:focus-visible {
  color: var(--color-ink);
  outline: none;
}
.modal__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.modal__body { margin: 0 0 1.25rem; color: var(--color-muted); }
.modal__call { color: var(--color-ink); }


/* Contact */
.contact { padding: 2.25rem 0; }
.contact__inner { text-align: center; }
.contact__actions { display: flex; gap: .75rem; justify-content: center; margin: 1.25rem 0; flex-wrap: wrap; }
.contact__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.contact__details h3 { margin-bottom: .25rem; font-size: 1rem; }
.contact__details p { margin: .15rem 0; }
.contact__map { width: 100%; height: 320px; border: 0; border-radius: 12px; margin-top: 1.25rem; }

/* Blog index */
.blog-index { position: relative; }
.blog-index__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/images/hero-live.jpg");
  background-size: cover;
  background-position: right center;
}
.blog-index__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fff 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 72%, #fff 100%);
}
.blog-index__content {
  position: relative;
  z-index: 1;
}
.blog-index__list { list-style: none; padding: 0; margin-top: 1.5rem; }
.post__meta { color: var(--color-muted); font-size: .9rem; }

.blog-index__list li { border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.blog-index__list a { display: flex; gap: 1.25rem; align-items: center; text-decoration: none; color: inherit; }
.blog-index__list img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.blog-index__pager { display: flex; justify-content: space-between; margin-top: 2rem; font-weight: 700; }

/* Post page */
.post { max-width: 760px; padding-top: 3rem; padding-bottom: 3rem; }
.post__hero img { width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.post__body :is(h2, h3) { margin-top: 2rem; }

/* Office photos */
.office-photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.office-photos__grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }

/* Products page — Lasso Cactus card look */
.products-page { position: relative; }
.products-page__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/images/hero-live.jpg");
  background-size: cover;
  background-position: right center;
}
.products-page__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fff 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 72%, #fff 100%);
}
.products-page__content { position: relative; z-index: 1; }
.products-page h2 { margin-top: 2.5rem; }
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  border: 1px solid var(--color-border);
}
.product-card img { border-radius: 8px; width: 100%; height: 180px; object-fit: cover; margin-bottom: .9rem; }
.product-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.product-card__blurb { font-size: .92rem; color: var(--color-muted); min-height: 2.6em; }
.product-card__buy {
  display: inline-block;
  margin-top: .9rem;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--color-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.product-card__buy:hover { background: var(--color-teal-dark); color: #fff; }
.product-card__disclosure { font-size: .8rem; color: var(--color-muted); margin-top: .7rem; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--color-teal-dark); color: #eaf3f2; padding: 2.5rem 0; margin-top: 2rem; }
.site-footer__inner { text-align: center; }
.site-footer__nav { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0; }
.site-footer__nav a { color: #eaf3f2; text-decoration: none; font-weight: 600; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__rights { font-size: .85rem; opacity: .8; }

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