/* MLB Family — endorsed family-meal collection from My Little Boss. */

.family-hero {
  padding: 10px 0 72px;
  background: var(--mlb-rice-50);
}

.family-hero-card {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--mlb-border-soft);
  border-radius: var(--mlb-radius-xl);
  background: #eef0e7;
  box-shadow: var(--mlb-shadow-soft);
}

.family-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.family-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.96) 32%, rgba(255, 253, 248, 0.58) 55%, rgba(255, 253, 248, 0.04) 78%);
}

.family-hero-copy {
  position: relative;
  z-index: 1;
  width: min(61%, 760px);
  padding: 86px 0 76px 70px;
}

.family-eyebrow,
.family-section-kicker {
  margin-bottom: 12px;
  color: var(--mlb-red-600);
  font-family: var(--mlb-font-thai);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.family-hero h1 {
  max-width: 630px;
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-display);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.lang-th .family-hero h1 {
  font-family: var(--mlb-font-thai);
  font-size: clamp(44px, 4vw, 54px);
  letter-spacing: 0;
}

.family-title-mobile {
  display: none;
}

.family-hero-lead {
  max-width: 555px;
  margin-top: 22px;
  color: #455a52;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.7;
}

.family-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.family-primary-btn {
  background: var(--mlb-green-900);
  color: #fff;
  box-shadow: 0 14px 26px rgba(6, 61, 44, 0.22);
}

.family-text-link {
  color: var(--mlb-green-900);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(6, 61, 44, 0.25);
  text-underline-offset: 5px;
}

.family-section-head {
  max-width: 830px;
  margin-bottom: 34px;
}

.family-section-head.mlb-center {
  margin-right: auto;
  margin-left: auto;
}

.family-section-head .mlb-copy {
  max-width: 700px;
  margin-top: 14px;
}

.family-section-head.mlb-center .mlb-copy {
  margin-right: auto;
  margin-left: auto;
}

#adult-meals,
#choose-use-case,
#suitability {
  scroll-margin-top: 110px;
}

.family-product-section {
  background: #fff;
}

.family-meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.family-meal-grid figure {
  overflow: hidden;
  border: 1px solid var(--mlb-border-soft);
  border-radius: 20px;
  background: var(--mlb-rice-50);
  box-shadow: 0 10px 24px rgba(6, 61, 44, 0.07);
}

.family-meal-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.family-meal-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--mlb-green-900);
  font-size: 13px;
  font-weight: 800;
}

.family-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.family-product-facts article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 16px;
  background: var(--mlb-rice-100);
  color: var(--mlb-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.family-product-facts strong {
  color: var(--mlb-green-900);
  font-size: 15px;
}

.family-product-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.family-choice-section {
  background: var(--mlb-rice-100);
}

.family-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.family-choice-card {
  position: relative;
  padding: 38px;
  overflow: hidden;
}

.family-choice-self {
  background: linear-gradient(145deg, #fffdf8, #eef5ea);
}

.family-choice-parent {
  background: linear-gradient(145deg, #fffdf8, #fff0dc);
}

.family-choice-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--mlb-green-900);
  color: #fff;
  font-family: var(--mlb-font-display);
  font-size: 31px;
  font-weight: 700;
}

.family-choice-parent .family-choice-icon {
  background: #9a5b30;
}

.family-choice-label {
  margin-bottom: 7px;
  color: var(--mlb-red-600);
  font-size: 13px;
  font-weight: 850;
}

.family-choice-card h3 {
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-thai);
  font-size: clamp(27px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.22;
}

.family-choice-card > p:not(.family-choice-label) {
  max-width: 590px;
  margin-top: 13px;
  color: var(--mlb-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.68;
}

.family-choice-card ul,
.family-fit-card ul {
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.family-choice-card li,
.family-fit-card li {
  position: relative;
  padding-left: 26px;
  color: var(--mlb-green-900);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.family-choice-card li::before,
.family-fit-yes li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--mlb-green-700);
  font-weight: 900;
}

.family-choice-card .mlb-btn {
  min-width: 230px;
}

.family-fit-section {
  background: #fff;
}

.family-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.family-fit-card {
  padding: 32px 34px;
  border: 1px solid var(--mlb-border-soft);
  border-radius: var(--mlb-radius-lg);
}

.family-fit-yes {
  background: #eff7ed;
}

.family-fit-check {
  background: #fff4e7;
}

.family-fit-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mlb-green-900);
  font-size: 18px;
  font-weight: 850;
}

.family-fit-label > span:first-child {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mlb-green-700);
  color: #fff;
}

.family-fit-check .family-fit-label > span:first-child {
  background: #b86a31;
}

.family-fit-card ul {
  margin-bottom: 0;
}

.family-fit-check li::before {
  content: "•";
  position: absolute;
  top: -1px;
  left: 4px;
  color: #b86a31;
  font-size: 22px;
  font-weight: 900;
}

.family-medical-note {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(154, 91, 48, 0.18);
  border-radius: 16px;
  background: #fffaf3;
  color: #74523b;
  font-size: 14px;
  line-height: 1.65;
}

.family-curation-section {
  background: var(--mlb-green-900);
}

.family-curation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}

.family-curation-section .mlb-title,
.family-curation-section .mlb-copy {
  color: #fff;
}

.family-curation-section .mlb-copy {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.76);
}

.family-curation-section .family-section-kicker {
  color: var(--mlb-yellow-500);
}

.family-curation-points {
  display: grid;
  gap: 15px;
}

.family-curation-points article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.family-curation-points article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mlb-yellow-500);
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-display);
  font-weight: 850;
}

.family-curation-points h3 {
  color: #fff;
  font-family: var(--mlb-font-thai);
  font-size: 18px;
  font-weight: 800;
}

.family-curation-points p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.58;
}

.family-how-section {
  background: var(--mlb-rice-100);
}

.family-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.family-how-card {
  min-height: 245px;
  padding: 30px 28px;
  background: #fff;
}

.family-how-card > span {
  color: var(--mlb-red-600);
  font-family: var(--mlb-font-display);
  font-size: 16px;
  font-weight: 850;
}

.family-how-card h3 {
  margin-top: 28px;
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-thai);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.28;
}

.family-how-card p {
  margin-top: 10px;
  color: var(--mlb-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.62;
}

.family-proof-section {
  background: #fff;
}

.family-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.family-proof-grid article {
  padding: 26px 24px;
  border: 1px solid var(--mlb-border-soft);
  border-radius: 20px;
  background: var(--mlb-rice-50);
}

.family-proof-grid article > span {
  display: block;
  margin-bottom: 18px;
  font-size: 33px;
}

.family-proof-grid h3 {
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-thai);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.family-proof-grid p {
  margin-top: 8px;
  color: var(--mlb-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.58;
}

.family-faq-section {
  background: var(--mlb-rice-100);
}

.family-faq-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.family-faq-grid details {
  border: 1px solid var(--mlb-border-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(6, 61, 44, 0.05);
}

.family-faq-grid summary {
  padding: 20px 54px 20px 22px;
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-thai);
  font-size: 17px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.family-faq-grid summary::-webkit-details-marker {
  display: none;
}

.family-faq-grid details {
  position: relative;
}

.family-faq-grid details::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 22px;
  color: var(--mlb-green-700);
  font-family: var(--mlb-font-display);
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
}

.family-faq-grid details[open]::after {
  content: "−";
}

.family-faq-grid details p {
  max-width: 790px;
  padding: 0 54px 22px 22px;
  color: var(--mlb-muted);
  font-size: 14px;
  line-height: 1.68;
}

.family-closing {
  padding: 70px 0;
  background: #173f32;
  color: #fff;
}

.family-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: center;
}

.family-closing .family-section-kicker {
  color: var(--mlb-yellow-500);
}

.family-closing h2 {
  max-width: 760px;
  font-family: var(--mlb-font-thai);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.16;
}

.family-closing p:last-child {
  max-width: 690px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
}

.family-closing-actions {
  min-width: 255px;
  display: grid;
  gap: 12px;
}

.family-outline-btn {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mlb-footer {
  padding: 34px 0 36px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.footer-col h3 {
  margin-bottom: 9px;
  color: var(--mlb-green-900);
  font-size: 13px;
  font-weight: 800;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-top: 5px;
  color: var(--mlb-muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-meta p {
  max-width: 190px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-row a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mlb-green-100);
  color: var(--mlb-green-900);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .family-hero-card {
    min-height: 590px;
  }

  .family-hero-copy {
    width: 61%;
    padding: 68px 0 64px 48px;
  }

  .family-curation-grid {
    gap: 40px;
  }

  .family-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .family-hero {
    padding-top: 6px;
    padding-bottom: 50px;
  }

  .family-hero-card {
    display: grid;
    min-height: auto;
  }

  .family-hero-image {
    position: relative;
    order: 2;
    height: clamp(310px, 64vw, 480px);
    object-position: 64% center;
  }

  .family-hero-shade {
    display: none;
  }

  .family-hero-copy {
    order: 1;
    width: 100%;
    padding: 44px 34px 36px;
    background: linear-gradient(145deg, #fffdf8, #f1f3e8);
  }

  .family-choice-grid,
  .family-meal-grid,
  .family-product-facts,
  .family-fit-grid,
  .family-curation-grid,
  .family-closing-inner {
    grid-template-columns: 1fr;
  }

  .family-curation-grid {
    gap: 34px;
  }

  .family-how-grid {
    grid-template-columns: 1fr;
  }

  .family-how-card {
    min-height: auto;
  }

  .family-closing-inner {
    gap: 30px;
  }

  .family-closing-actions {
    width: min(100%, 420px);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .family-title-desktop {
    display: none;
  }

  .family-title-mobile {
    display: inline;
  }

  .family-hero-card {
    border-radius: 24px;
  }

  .family-hero-copy {
    padding: 32px 22px 28px;
  }

  body.lang-th .family-hero h1,
  .family-hero h1 {
    font-size: 32px;
    line-height: 1.13;
  }

  .family-hero-lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .family-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    margin-top: 24px;
  }

  .family-hero-actions .mlb-btn {
    width: 100%;
  }

  .family-text-link {
    text-align: center;
  }

  .family-choice-card,
  .family-fit-card {
    padding: 26px 22px;
  }

  .family-product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .family-product-actions .mlb-btn {
    width: 100%;
  }

  .family-choice-card .mlb-btn {
    width: 100%;
    min-width: 0;
  }

  .family-curation-points article {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }

  .family-curation-points article > span {
    width: 34px;
    height: 34px;
  }

  .family-proof-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .family-proof-grid article {
    padding: 22px;
  }

  .family-faq-grid summary {
    padding: 18px 46px 18px 18px;
    font-size: 16px;
  }

  .family-faq-grid details p {
    padding: 0 18px 20px;
  }

  .family-faq-grid details::after {
    right: 17px;
  }

  .family-closing {
    padding: 52px 0;
  }

  .family-closing h2 {
    font-size: 32px;
  }

  .family-closing-actions,
  .family-closing-actions .mlb-btn {
    width: 100%;
  }

  .footer-grid {
    gap: 22px;
    text-align: center;
  }

  .social-row {
    justify-content: center;
  }

  .footer-meta p {
    max-width: none;
  }
}
