/* =========================================================
   My Little Boss Homepage
   Uses mlb-design-system.css
   ========================================================= */

.home-hero {
  padding: 0 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 24px;
  min-height: 765px;
}

.trust-pill {
  margin-bottom: 26px;
}

.hero-title {
  max-width: 610px;
  font-family: var(--mlb-font-thai);
  font-size: 64px;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--mlb-green-900);
  font-weight: 800;
}

.hero-title .red {
  color: var(--mlb-red-600);
  position: relative;
  display: inline-block;
}

.hero-title .red::after,
.section-spark::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 34px;
  background:
    linear-gradient(var(--mlb-red-500), var(--mlb-red-500)) 9px 3px / 7px 18px no-repeat,
    linear-gradient(var(--mlb-red-500), var(--mlb-red-500)) 24px 9px / 7px 19px no-repeat;
  border-radius: 12px;
  transform: rotate(25deg);
}

.hero-title .red::after {
  right: -42px;
  bottom: 9px;
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--mlb-green-900);
  font-family: var(--mlb-font-thai);
  font-size: 21px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  color: var(--mlb-green-900);
  font-size: 14px;
  font-weight: 700;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-visual {
  position: relative;
  min-height: 760px;
  margin-right: 0;
}

.hero-visual img {
  width: 100%;
  height: 760px;
  object-fit: cover;
  object-position: right center;
  border-radius: 38px 0 0 38px;
  box-shadow: var(--mlb-shadow-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-spark {
  position: relative;
  display: inline-block;
}

.section-spark::after {
  right: -39px;
  top: 4px;
  width: 28px;
  height: 24px;
}

.relief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.relief-card {
  overflow: hidden;
  padding: 28px 28px 0;
  min-height: 270px;
  text-align: center;
}

.relief-card h3 {
  font-family: var(--mlb-font-thai);
  font-size: 24px;
  line-height: 1.25;
  color: var(--mlb-green-900);
  font-weight: 800;
}

.relief-card p {
  margin-top: 8px;
  color: var(--mlb-green-900);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.relief-card img {
  width: calc(100% + 56px);
  height: 126px;
  margin: 18px -28px 0;
  object-fit: cover;
  border-top: 1px solid rgba(6, 61, 44, 0.08);
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  text-align: center;
}

.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 36px;
  right: -26px;
  color: var(--mlb-green-900);
  font-size: 30px;
  font-weight: 800;
}

.step-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mlb-yellow-500);
  color: var(--mlb-green-900);
  box-shadow: inset 0 -10px 0 rgba(6, 61, 44, 0.08);
}

.step-card:first-child .step-icon {
  background: var(--mlb-line);
  color: #fff;
}

.step-card:last-child .step-icon {
  background: var(--mlb-blue-300);
}

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

.step-card p {
  margin-top: 6px;
  color: var(--mlb-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.meal-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--mlb-border-soft);
  box-shadow: 0 10px 22px rgba(6, 61, 44, 0.08);
}

.meal-photo {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: var(--mlb-rice-200);
}

.meal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: var(--mlb-radius-pill);
  background: var(--mlb-yellow-500);
  color: var(--mlb-green-900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.meal-badge.green {
  background: #25a658;
  color: #fff;
}

.meal-badge.red {
  background: var(--mlb-red-500);
  color: #fff;
}

.meal-body {
  padding: 14px 14px 16px;
}

.meal-name {
  min-height: 52px;
  color: var(--mlb-green-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.meal-tags {
  display: flex;
  gap: 8px;
  min-height: 26px;
  margin: 10px 0 8px;
  font-size: 18px;
}

.meal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mlb-green-900);
  font-size: 17px;
  font-weight: 800;
}

.cart-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mlb-border);
  border-radius: 50%;
  color: var(--mlb-green-900);
  background: #fffef9;
}

.philosophy-card {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 42px;
  align-items: center;
  overflow: hidden;
  padding: 28px;
}

.philosophy-card > img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.philosophy-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.point {
  text-align: center;
  color: var(--mlb-green-900);
}

.point-icon {
  height: 58px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.point h3 {
  font-family: var(--mlb-font-thai);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.point p {
  margin-top: 6px;
  color: var(--mlb-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.reviews-band {
  border-radius: 26px;
  padding: 34px 36px 42px;
  background: linear-gradient(180deg, #fffdf8, #fff7e8);
  border: 1px solid var(--mlb-border-soft);
  box-shadow: 0 10px 28px rgba(6, 61, 44, 0.08);
}

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

.review-card {
  position: relative;
  min-height: 166px;
  padding: 24px 24px 22px;
  border: 1px solid var(--mlb-border);
  border-radius: 20px;
  background: #fff;
  color: var(--mlb-green-900);
}

.stars {
  color: var(--mlb-yellow-500);
  font-size: 19px;
  line-height: 1;
  margin-bottom: 11px;
}

.review-card blockquote {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 800;
}

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

.reels-section {
  background: #fff;
}

.reels-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.reels-head p {
  max-width: 630px;
  margin: 14px auto 0;
  color: var(--mlb-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.reel-card {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--mlb-border-soft);
  border-radius: 22px;
  background: var(--mlb-rice-100);
  box-shadow: 0 12px 28px rgba(6, 61, 44, 0.08);
}

.reel-card .instagram-media,
.reel-card iframe.instagram-media {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr 0.8fr;
  align-items: center;
  gap: 34px;
}

.delivery-title {
  font-family: var(--mlb-font-thai);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--mlb-green-900);
}

.delivery-title .red {
  color: var(--mlb-red-600);
}

.delivery-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--mlb-border);
  border-radius: 16px;
  background: #fff;
  color: var(--mlb-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.map-card {
  display: grid;
  place-items: center;
}

.map-card img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

.delivery-cta {
  text-align: center;
}

.truck-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  color: var(--mlb-green-900);
  border: 1px solid var(--mlb-border);
}

.closing-wave {
  position: relative;
  padding: 0;
  background: var(--mlb-green-900);
  color: #fff;
}

.closing-wave::before {
  content: "";
  position: absolute;
  top: -23px;
  right: 0;
  left: 0;
  height: 34px;
  background:
    radial-gradient(28px 24px at 28px 24px, var(--mlb-green-900) 98%, transparent 100%) 0 0 / 56px 34px repeat-x;
}

.closing-inner {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 36px;
  align-items: center;
  min-height: 170px;
  padding: 28px 0 30px;
}

.closing-logo {
  width: 130px;
}

.closing-title {
  color: #fff;
  font-family: var(--mlb-font-thai);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
}

.closing-title .spoon {
  color: var(--mlb-yellow-500);
}

.closing-mini {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.mlb-footer {
  padding: 28px 0 30px;
  background: #fff;
}

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

.footer-grid img {
  width: 92px;
}

.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;
}

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

.social-row span {
  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: 1100px) {
  .hero-grid,
  .philosophy-card,
  .delivery-grid,
  .closing-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-bottom: 34px;
  }

  .hero-visual img {
    border-radius: 28px;
  }

  .hero-visual {
    min-height: 520px;
    margin-right: 0;
  }

  .hero-visual img {
    width: 100%;
    height: 520px;
  }

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

  .closing-inner {
    text-align: center;
  }

  .closing-logo {
    margin: 0 auto;
  }

  .closing-mini {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .hero-title {
    font-size: 45px;
  }

  .hero-title .red::after {
    display: none;
  }

  .relief-grid,
  .steps-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .reels-grid {
    display: flex;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 0 0 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .reels-grid::after {
    content: "";
    flex: 0 0 2px;
  }

  .reel-card {
    flex: 0 0 min(100%, 392px);
    scroll-snap-align: center;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .menu-head {
    display: block;
  }

  .menu-head .mlb-btn {
    margin-top: 18px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-points {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .home-hero {
    padding: 12px 0 34px;
  }

  .hero-grid {
    gap: 22px;
    padding-bottom: 18px;
    min-width: 0;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .trust-pill {
    margin: 0 auto 20px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-title {
    max-width: 360px;
    margin: 0 auto;
    font-size: 37px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    max-width: 330px;
    margin: 16px auto 0;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    max-width: min(360px, 100%);
    margin: 22px auto 0;
  }

  .hero-actions .mlb-btn {
    width: 100%;
    min-height: 60px;
    border-radius: 16px;
  }

  .proof-row {
    display: grid;
    width: 100%;
    max-width: min(360px, 100%);
    margin: 18px auto 0;
    padding: 14px;
    gap: 8px;
    border: 1px solid var(--mlb-border-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 22px rgba(6, 61, 44, 0.06);
    text-align: left;
  }

  .proof-row > span {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    line-height: 1.35;
  }

  .proof-row .mlb-icon-box {
    width: 34px;
    height: 34px;
  }

  .hero-visual {
    min-height: auto;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-visual img {
    height: clamp(292px, 76vw, 390px);
    border-radius: 24px;
    object-position: center;
    box-shadow: 0 14px 30px rgba(6, 61, 44, 0.1);
  }
}

@media (max-width: 560px) {
  .home-hero {
    padding-top: 10px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: clamp(286px, 78vw, 340px);
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .meal-photo {
    height: 200px;
  }

  .reels-head {
    margin-bottom: 24px;
  }

  .reels-head p {
    font-size: 15px;
  }

  .reel-card {
    padding: 12px;
  }

  .philosophy-points,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .closing-title {
    font-size: 31px;
  }
}
