/*
  MyMom's Food - Trang chủ (custom design)
  Chỉ được enqueue trên template "template-trangchu.php".
  Phần header/footer dùng chung xem css/site.css
*/
body.mmf-home{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Be Vietnam Pro', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.mmf-home *{box-sizing:border-box;}
.mmf-home img{max-width:100%;display:block;}
.mmf-home a{color:inherit;text-decoration:none;}
.mmf-home h1,.mmf-home h2,.mmf-home h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  line-height:1.12;
  margin:0;
  letter-spacing:-0.01em;
}
.mmf-home .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'Fraunces', serif;
  font-style:italic;
  font-weight:500;
  font-size:15px;
  color:var(--amber-deep);
  letter-spacing:.02em;
}
.mmf-home .eyebrow::before{
  content:"";
  width:26px;height:2px;background:var(--amber-deep);display:inline-block;border-radius:2px;
}

/* Kéo thêm khoảng cách trước footer dùng chung, giữ đúng nhịp thiết kế gốc của trang chủ */
.mmf-home footer.mmf-footer{margin-top:110px;}

/* ---------- Hero ---------- */
.mmf-home .hero{position:relative;overflow:hidden;padding:64px 0 90px;}
.mmf-home .hero-blob{
  position:absolute;border-radius:50%;
  background:radial-gradient(circle at 30% 30%, var(--amber-soft), transparent 70%);
  filter:blur(4px);
  z-index:0;
}
.mmf-home .hero-blob.b1{width:520px;height:520px;top:-160px;right:-140px;}
.mmf-home .hero-blob.b2{width:340px;height:340px;bottom:-120px;left:-100px;background:radial-gradient(circle at 30% 30%, var(--leaf-soft), transparent 70%);}
.mmf-home .hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;
}
.mmf-home .hero h1{font-size:clamp(34px,4.6vw,58px);}
.mmf-home .hero h1 em{font-style:italic;color:var(--amber-deep);}
.mmf-home .hero p.lead{margin:22px 0 34px;font-size:18px;color:var(--ink-soft);max-width:46ch;}
.mmf-home .hero-cta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:40px;}
.mmf-home .trust-row{display:flex;gap:28px;flex-wrap:wrap;}
.mmf-home .trust-item{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ink-soft);}
.mmf-home .trust-item svg{width:20px;height:20px;color:var(--amber-deep);flex:none;}

.mmf-home .hero-visual{position:relative;}
.mmf-home .tray{background:var(--amber);border-radius:var(--radius-lg);padding:8px;box-shadow:var(--shadow);position:relative;}
.mmf-home .tray::before{
  content:"";position:absolute;top:18px;left:18px;width:12px;height:12px;border-radius:50%;
  background:var(--paper);box-shadow:0 0 0 3px var(--amber-deep) inset;
}
.mmf-home .tray-inner{background:var(--paper);border-radius:calc(var(--radius-lg) - 8px);overflow:hidden;}
.mmf-home .tray-inner img{width:100%;height:100%;object-fit:cover;}
.mmf-home .hero-visual .tray{max-width:480px;margin-left:auto;}
.mmf-home .hero-visual .tray-inner{aspect-ratio:4/5;}
.mmf-home .floating-badge{
  position:absolute;left:-30px;bottom:36px;background:var(--paper);
  border-radius:20px;padding:16px 20px;box-shadow:var(--shadow);
  display:flex;align-items:center;gap:12px;max-width:240px;
  font-size:13.5px;font-weight:600;color:var(--ink-soft);
}
.mmf-home .floating-badge .num{font-family:'Fraunces',serif;font-size:26px;font-weight:700;color:var(--ink);line-height:1;}

/* ---------- Stats / tray-strip ---------- */
.mmf-home .stats-strip{
  display:grid;grid-template-columns:repeat(4,1fr);
  background:var(--amber);border-radius:26px;padding:6px;
  box-shadow:var(--shadow);
  margin-top:-46px;position:relative;z-index:3;
}
.mmf-home .stat-cell{
  background:var(--paper);
  padding:26px 20px;
  text-align:center;
  position:relative;
}
.mmf-home .stat-cell:first-child{border-radius:20px 0 0 20px;}
.mmf-home .stat-cell:last-child{border-radius:0 20px 20px 0;}
.mmf-home .stat-cell:not(:last-child)::after{
  content:"";position:absolute;right:0;top:14%;bottom:14%;width:2px;background:var(--amber-soft);
}
.mmf-home .stat-cell .n{display:block;font-family:'Fraunces',serif;font-weight:700;font-size:30px;color:var(--ink);}
.mmf-home .stat-cell .l{display:block;margin-top:4px;font-size:12.5px;font-weight:600;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em;}

/* ---------- Sections ---------- */
.mmf-home section.block{padding:120px 0 40px;}
.mmf-home .section-head{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end;margin-bottom:56px;}
.mmf-home .section-head h2{font-size:clamp(28px,3.4vw,42px);margin-top:14px;}
.mmf-home .section-head p{color:var(--ink-soft);font-size:16px;margin-top:0;}
.mmf-home .reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease, transform .7s ease;}
.mmf-home .reveal.in-view{opacity:1;transform:translateY(0);}

/* Gallery 1 - bento compartment grid */
.mmf-home .bento4{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;grid-template-rows:1fr 1fr;
  gap:6px;background:var(--amber);padding:6px;border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.mmf-home .bento4 .cell{border-radius:20px;overflow:hidden;background:var(--paper);}
.mmf-home .bento4 .cell.a{grid-row:1/3;}
.mmf-home .bento4 .cell img{width:100%;height:100%;object-fit:cover;display:block;}
.mmf-home .bento4 .cell.a img{aspect-ratio:3/4.6;}
.mmf-home .bento4 .cell:not(.a) img{aspect-ratio:4/3.4;}

/* Gallery mở rộng - dùng khi có nhiều hơn 4 ảnh (gallery1) hoặc hơn 3 ảnh (gallery3) */
.mmf-home .gallery-extra-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px;}
.mmf-home .gallery-extra-grid .cell{border-radius:16px;overflow:hidden;background:var(--paper);box-shadow:var(--shadow);}
.mmf-home .gallery-extra-grid .cell img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;}

/* Gallery 2 - ingredient compartments with captions */
.mmf-home .ing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.mmf-home .ing-card .tray{padding:6px;}
.mmf-home .ing-card .tray-inner{aspect-ratio:1/1;}
.mmf-home .ing-card figcaption{margin-top:14px;text-align:center;}
.mmf-home .ing-card figcaption .t{font-family:'Fraunces',serif;font-weight:600;font-size:16px;}
.mmf-home .ing-card figcaption .s{display:block;font-size:12.5px;color:var(--ink-soft);margin-top:2px;}
.mmf-home .ing-card{margin:0;}

/* Gallery 3 - community masonry */
.mmf-home .comm-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;}
.mmf-home .comm-grid .left .tray-inner{aspect-ratio:16/12;}
.mmf-home .comm-grid .right{display:grid;grid-template-rows:1fr 1fr;gap:16px;}
.mmf-home .comm-grid .right .tray-inner{aspect-ratio:16/11.5;}

.mmf-home .split{display:grid;grid-template-columns:0.85fr 1.15fr;gap:64px;align-items:center;}
.mmf-home .split.reverse{grid-template-columns:1.15fr 0.85fr;}
.mmf-home .split .copy p{color:var(--ink-soft);margin:16px 0;}
.mmf-home .pill-label{
  display:inline-block;background:var(--leaf-soft);color:var(--leaf);
  font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  padding:7px 14px;border-radius:999px;margin-bottom:16px;
}

/* ---------- Contact ---------- */
.mmf-home .contact-wrap{
  background:var(--ink);color:var(--cream);border-radius:36px;
  padding:64px;display:grid;grid-template-columns:0.9fr 1.1fr;gap:56px;
  position:relative;overflow:hidden;
}
.mmf-home .contact-wrap::before{
  content:"";position:absolute;width:360px;height:360px;border-radius:50%;
  background:radial-gradient(circle, rgba(253,167,2,.25), transparent 70%);
  top:-140px;right:-100px;
}
.mmf-home .contact-info h2{color:var(--paper);font-size:clamp(26px,3vw,36px);}
.mmf-home .contact-info p{color:#D8CCB8;margin:18px 0 28px;max-width:38ch;}
.mmf-home .info-row{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px;}
.mmf-home .info-row svg{width:20px;height:20px;color:var(--amber);flex:none;margin-top:2px;}
.mmf-home .info-row .t{font-weight:700;font-size:14.5px;color:var(--paper);}
.mmf-home .info-row .s{font-size:13.5px;color:#C9BCA6;}

.mmf-home form{
  background:var(--paper);border-radius:24px;padding:32px;position:relative;z-index:1;
}
.mmf-home .form-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:20px 18px;
}
.mmf-home .field{
  position:relative;
}
.mmf-home .field.full{grid-column:1/3;}
.mmf-home .field label{
  display:flex;align-items:center;gap:4px;
  font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  color:var(--ink-soft);margin-bottom:9px;
}
.mmf-home .field label .req{color:var(--amber-deep);font-size:13px;}
.mmf-home .field input,
.mmf-home .field select,
.mmf-home .field textarea{
  width:100% !important;
  height:auto !important;
  border:1.5px solid var(--line) !important;
  background-color:var(--cream) !important;
  border-radius:12px !important;
  box-shadow:none !important;
  font-family:'Be Vietnam Pro',sans-serif !important;
  font-size:15px !important;
  color:var(--ink) !important;
  padding:13px 16px !important;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mmf-home .field textarea{resize:vertical;min-height:50px;}
.mmf-home .field input::placeholder,
.mmf-home .field textarea::placeholder{color:#B3A184;opacity:1;}
.mmf-home .field input:hover,
.mmf-home .field select:hover,
.mmf-home .field textarea:hover{border-color:#D8C7A8 !important;}
.mmf-home .field input:focus,
.mmf-home .field select:focus,
.mmf-home .field textarea:focus{
  outline:none !important;
  background-color:var(--paper) !important;
  border-color:var(--amber-deep) !important;
  box-shadow:0 0 0 4px rgba(184,116,0,.14) !important;
}
.mmf-home .field select{
  appearance:none !important;-webkit-appearance:none !important;-moz-appearance:none !important;
  cursor:pointer;padding-right:42px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B5A42' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;background-position:right 14px center !important;background-size:18px !important;
}
.mmf-home .field select:invalid{color:#8C7859;}
.mmf-home .form-foot{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;
  padding-top:22px;
}
.mmf-home .form-foot .note{font-size:12.5px;color:var(--ink-soft);}
.mmf-home .toast{
  margin-top:16px;padding:12px 18px;border-radius:14px;background:var(--leaf-soft);color:var(--leaf);
  font-size:13.5px;font-weight:600;display:none;
}
.mmf-home .toast.show{display:block;}
.mmf-home .toast.error{background:#FBE3DE;color:#B2401F;}
.mmf-home .field.has-error label{color:#B2401F;}
.mmf-home .field.has-error input,
.mmf-home .field.has-error select,
.mmf-home .field.has-error textarea{
  border-color:#C0392B !important;
  background-color:#FDEEEC !important;
  box-shadow:0 0 0 4px rgba(192,57,43,.1) !important;
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .mmf-home .hero-grid{grid-template-columns:1fr;}
  .mmf-home .hero-visual{order:-1;}
  .mmf-home .floating-badge{left:12px;bottom:-20px;}
  .mmf-home .stats-strip{grid-template-columns:repeat(2,1fr);gap:6px;margin-top:16px;}
  .mmf-home .stat-cell:nth-child(2n)::after{display:none;}
  .mmf-home .stat-cell:nth-child(1){border-radius:20px 20px 0 0;}
  .mmf-home .stat-cell:nth-child(2){border-radius:0;}
  .mmf-home .stat-cell:nth-child(3){border-radius:0;}
  .mmf-home .stat-cell:nth-child(4){border-radius:0 0 20px 20px;}
  .mmf-home section.block{padding:80px 0 20px;}
  .mmf-home .section-head{grid-template-columns:1fr;gap:18px;}
  .mmf-home .bento4{grid-template-columns:1fr;grid-template-rows:auto;}
  .mmf-home .bento4 .cell.a{grid-row:auto;}
  .mmf-home .ing-grid{grid-template-columns:1fr 1fr;row-gap:34px;}
  .mmf-home .gallery-extra-grid{grid-template-columns:1fr 1fr;}
  .mmf-home .comm-grid{grid-template-columns:1fr;}
  .mmf-home .split, .mmf-home .split.reverse{grid-template-columns:1fr;gap:30px;}
  .mmf-home .split .hero-visual{order:-1;}
  .mmf-home .contact-wrap{grid-template-columns:1fr;padding:36px 22px;border-radius:26px;}
  .mmf-home form{padding:24px;}
  .mmf-home .form-grid{grid-template-columns:1fr;}
  .mmf-home .field.full{grid-column:1/2;}
}
@media (max-width:560px){
  .mmf-home .wrap{padding:0 18px;}
  .mmf-home .hero{padding:36px 0 60px;}
}

@media (prefers-reduced-motion: reduce){
  .mmf-home{scroll-behavior:auto;}
  .mmf-home .reveal{opacity:1;transform:none;transition:none;}
}

/* ---------- Honeypot (ẩn khỏi người dùng thật, chỉ bot mới tự điền) ---------- */
.mmf-home .mmf-hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;}

/* ---------- Lightbox thư viện ảnh ---------- */
.mmf-home .mmf-zoomable{cursor:zoom-in;}
.mmf-lightbox{
  display:none;position:fixed;inset:0;z-index:9999;
  background:rgba(20,14,6,.92);
  align-items:center;justify-content:center;
}
.mmf-lightbox.open{display:flex;}
.mmf-lightbox-img{max-width:88vw;max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 30px 60px -20px rgba(0,0,0,.6);}
.mmf-lightbox-close,
.mmf-lightbox-nav{
  position:fixed;background:rgba(255,255,255,.12);color:#FFF6E6;border:none;border-radius:50%;
  width:48px;height:48px;font-size:22px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.mmf-lightbox-close:hover,
.mmf-lightbox-nav:hover{background:rgba(255,255,255,.25);}
.mmf-lightbox-close{top:24px;right:24px;font-size:30px;}
.mmf-lightbox-prev{left:24px;top:50%;transform:translateY(-50%);}
.mmf-lightbox-next{right:24px;top:50%;transform:translateY(-50%);}
.mmf-lightbox-counter{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);color:#FFE6AE;font-size:13.5px;font-weight:600;letter-spacing:.03em;}
@media (max-width:640px){
  .mmf-lightbox-close{top:12px;right:12px;width:40px;height:40px;font-size:24px;}
  .mmf-lightbox-nav{width:40px;height:40px;font-size:18px;}
  .mmf-lightbox-prev{left:8px;}
  .mmf-lightbox-next{right:8px;}
}
