/* Cô Bé Food - bản 5: sáng màu, thống nhất 2 màu chính ĐỎ + BE (chị chốt 26/11/2026) */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --be: #F5EBDD;        /* be chính - nền */
  --be-2: #ECDDC8;      /* be đậm hơn - nền xen kẽ */
  --kem: #FFF9F0;       /* be rất nhạt - thẻ, đĩa */
  --do: #B83B3B;        /* đỏ Cô Bé */
  --do-dam: #8E2A2A;
  --nau: #3B2622;       /* chữ thường: nâu đỏ sẫm cho dễ đọc */
  --nau-nhat: rgba(59,38,34,.72);
  --tieu-de: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --chu: "Be Vietnam Pro", system-ui, sans-serif;
  --van-giay: radial-gradient(rgba(184,59,59,.05) 1px, transparent 1.4px) 0 0 / 18px 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--chu); font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--nau); background: var(--be); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--do); outline-offset: 3px; border-radius: 6px; }
.boc { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--tieu-de); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 7.5vw, 58px); color: var(--do); }
.loi { max-width: 34em; margin: 16px 0 0; color: var(--nau-nhat); }

.nut { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.nut:active { transform: translateY(2px); }
.nut.do { background: var(--do); color: var(--kem); }
.nut.do:hover { background: var(--do-dam); }
.nut.vien { border: 2px solid var(--do); color: var(--do); }
.nut.vien:hover { background: var(--do); color: var(--kem); }

/* Đầu trang */
.dau { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.dau .boc { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.dau .logo { background: var(--kem); border-radius: 14px; padding: 6px 12px; box-shadow: 0 2px 0 rgba(184,59,59,.15); }
.dau .logo img { height: 34px; width: auto; }
.dau nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; color: var(--nau); }
.dau nav a { text-decoration: none; }
.dau nav .phu { display: none; }
.dau nav a:not(.nut):hover { color: var(--do); text-decoration: underline; text-underline-offset: 5px; }
.dau .nut { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ===== Mở đầu: đĩa gốm vẽ nét cọ đỏ ===== */
.mo { padding: 100px 0 40px; overflow: hidden; position: relative; background: var(--be) var(--van-giay); }
.mo .boc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; }
.mo h1 { font-size: clamp(44px, 12vw, 92px); color: var(--do); }
.mo h1 .dong { display: block; }
.mo .loi { font-size: 18px; }
.mo .cac-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mo .quay { margin: 18px 0 0; font-size: 15px; color: var(--nau-nhat); }
.dia-khung { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; justify-self: center; }
.dia { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #FFFDF8 0 30%, var(--kem) 62%, #EFE2CF 100%); box-shadow: 0 24px 50px rgba(142,42,42,.18), inset 0 -10px 30px rgba(142,42,42,.08); }
.dia svg.vanh { position: absolute; inset: 0; width: 100%; height: 100%; }
.vanh .net { stroke: var(--do); stroke-linecap: round; fill: none; }
.mon-tren-dia { position: absolute; inset: 15% 9% 17% 11%; display: flex; align-items: center; justify-content: center; }
.mon-tren-dia img { width: 100%; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 18px 18px rgba(60,40,20,.25)); }
.mon-tren-dia.anh-tron { inset: 13.5%; }
.mon-tren-dia.anh-tron img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; transform: none; filter: drop-shadow(0 6px 10px rgba(60,40,20,.2)); }

/* Khoảnh khắc mở trang: nét cọ vẽ dần, chả hạ xuống đĩa, chữ hiện lên */
.js .vanh .net { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ve-net .5s ease-out forwards; animation-delay: calc(var(--i) * 9ms + .15s); }
@keyframes ve-net { to { stroke-dashoffset: 0; } }
.js .mon-tren-dia { opacity: 0; transform: translateY(-40px) scale(1.06); animation: ha-xuong .9s cubic-bezier(.2,.8,.25,1) 1s forwards; }
@keyframes ha-xuong { to { opacity: 1; transform: none; } }
.js .mo h1 .dong, .js .mo .hien-sau { opacity: 0; transform: translateY(18px); animation: len .7s ease-out forwards; }
.js .mo h1 .dong:nth-child(2) { animation-delay: .12s; }
.js .mo .hien-sau { animation-delay: .3s; }
@keyframes len { to { opacity: 1; transform: none; } }

/* Nhãn nhỏ trên tiêu đề */
.nhan { display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid currentColor; color: var(--do); }

/* ===== Về Cô Bé Food (kem, mây cuộn đỏ) ===== */
.ve { background: var(--kem); padding: 80px 0; position: relative; overflow: hidden; }
.ve::after { content: ""; position: absolute; right: -60px; top: 30px; width: 260px; height: 130px; opacity: .16; background: radial-gradient(circle at 25% 70%, transparent 22px, var(--do) 23px 27px, transparent 28px), radial-gradient(circle at 55% 45%, transparent 30px, var(--do) 31px 35px, transparent 36px), radial-gradient(circle at 82% 70%, transparent 20px, var(--do) 21px 25px, transparent 26px); animation: may-troi 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes may-troi { to { transform: translateX(-40px); } }
.ve .loi { font-size: 18px; color: var(--nau); }
.manh { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.manh li { background: var(--be); border: 2px solid var(--do); border-radius: 18px; padding: 20px; box-shadow: 5px 5px 0 var(--do); }
.manh svg { width: 46px; height: 46px; fill: none; stroke: var(--do); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.manh h3 { font-size: 22px; margin-top: 10px; color: var(--do-dam); }
.manh p { margin: 6px 0 0; }

/* ===== Ảnh chụp tại bếp ===== */
.bep { padding: 64px 0 80px; background: var(--be) var(--van-giay); }
.luoi-anh { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 30px; padding: 0 20px 10px; scrollbar-width: none; }
.luoi-anh::-webkit-scrollbar { display: none; }
.o-anh { flex: 0 0 78%; scroll-snap-align: center; position: relative; border-radius: 18px; overflow: hidden; border: 0; padding: 0; background: var(--be-2); cursor: zoom-in; aspect-ratio: 3 / 4; box-shadow: 0 10px 24px rgba(142,42,42,.14); }
.o-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.o-anh:hover img { transform: scale(1.03); }
.o-anh span { position: absolute; left: 12px; bottom: 12px; background: var(--do); color: var(--kem); font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
dialog.xem { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
dialog.xem::backdrop { background: rgba(59,38,34,.85); }
dialog.xem img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 14px; }
dialog.xem p { color: var(--kem); text-align: center; margin: 10px 0 0; font-weight: 600; }
dialog.xem button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--kem); color: var(--do); font-size: 24px; line-height: 1; cursor: pointer; }
.js dialog.xem[open] img { animation: mo-anh .3s ease-out; }
@keyframes mo-anh { from { opacity: 0; transform: scale(.94); } }

/* ===== Thực đơn: nền đỏ, chọn món đĩa đổi theo ===== */
.thuc-don { background: var(--do) repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px); padding: 80px 0; color: var(--kem); }
.thuc-don h2 { color: var(--kem); }
.thuc-don .loi { color: rgba(255,249,240,.88); }
.td-luoi { display: grid; gap: 30px; margin-top: 34px; align-items: center; }
.dia-nho { width: min(84vw, 440px); aspect-ratio: 1; position: relative; margin: 0 auto; transition: transform .6s cubic-bezier(.3,.9,.3,1); }
.thuc-don .vanh .net { stroke: var(--do); }
.dia-nho .giua { transition: transform .6s cubic-bezier(.3,.9,.3,1); position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; background: var(--kem); display: flex; align-items: center; justify-content: center; text-align: center; }
.dia-nho .giua img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.dia-nho .giua .chua-anh { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 14%; font-family: var(--tieu-de); font-weight: 700; font-size: clamp(20px, 5vw, 28px); line-height: 1.15; color: var(--do); }
.dia-nho.khong-anh .giua img { opacity: 0; }
.dia-nho.khong-anh .chua-anh { display: flex; }
.mon-chon { margin: 18px auto 0; text-align: center; max-width: 26em; color: var(--kem); min-height: 3.2em; }
.ds-mon { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-mon button { width: 100%; display: block; text-align: left; background: rgba(255,249,240,.12); color: var(--kem); border: 2px solid rgba(255,249,240,.25); border-radius: 16px; padding: 16px 20px; cursor: pointer; font: inherit; transition: background .2s, border-color .2s, color .2s; }
.ds-mon button:hover { background: rgba(255,249,240,.22); }
.ds-mon button[aria-pressed="true"] { background: var(--kem); color: var(--do-dam); border-color: var(--kem); }
.ds-mon .ten { font-family: var(--tieu-de); font-weight: 700; font-size: 21px; line-height: 1.2; }

/* ===== Từ bếp tới mâm (kem, viền nét đỏ) ===== */
.bep-mam { background: var(--kem); padding: 80px 0; position: relative; }
.bep-mam::before, .bep-mam::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--do) 0 3px, transparent 3px 11px); opacity: .7; }
.bep-mam::before { top: 0; } .bep-mam::after { bottom: 0; }
.cac-buoc { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 26px; counter-reset: buoc; }
.cac-buoc li { counter-increment: buoc; display: grid; gap: 14px; }
.cac-buoc .hinh { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--do); }
.cac-buoc .hinh img { width: 100%; height: 100%; object-fit: cover; }
.cac-buoc .hinh::after { content: counter(buoc); position: absolute; top: 10px; left: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--kem); color: var(--do); font-family: var(--tieu-de); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--do); }
.cac-buoc .hinh.chu { display: flex; align-items: center; justify-content: center; color: var(--kem); font-family: var(--tieu-de); font-weight: 800; font-size: clamp(26px, 6vw, 34px); text-align: center; padding: 20px; }
.cac-buoc h3 { font-size: 24px; color: var(--do-dam); }
.cac-buoc p { margin: 4px 0 0; }

/* ===== Dịch vụ (đỏ) ===== */
.dich-vu { background: var(--do); color: var(--kem); padding: 80px 0; position: relative; }
.dich-vu::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14px; background: radial-gradient(circle at 50% 0, var(--kem) 7px, transparent 8px) 0 0 / 22px 14px repeat-x; }
.dich-vu .nhan, .dich-vu h2 { color: var(--kem); }
.dich-vu .loi { color: rgba(255,249,240,.9); }
.dv-luoi { display: grid; gap: 16px; margin-top: 34px; }
.dv { background: var(--kem); color: var(--nau); border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.dv .so { font-family: var(--tieu-de); font-weight: 800; font-size: 40px; line-height: 1; color: var(--do); }
.dv h3 { font-size: 23px; color: var(--do-dam); }
.dv p { margin: 0 0 8px; flex: 1; }

/* ===== Dự án ===== */
.du-an { padding: 80px 0; background: var(--be-2) var(--van-giay); }
.du-an .nhan { color: var(--do-dam); }
.da-luoi { display: grid; gap: 26px; margin-top: 34px; }
.da { background: var(--kem); border-radius: 22px; padding: 16px 16px 22px; box-shadow: 0 10px 26px rgba(142,42,42,.12); }
.da-anh { border-radius: 14px; overflow: hidden; background: var(--be); }
.da-anh img { width: 100%; height: auto; transition: transform .6s ease; }
.da:hover .da-anh img { transform: scale(1.03); }
.da-anh.hai { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.da-anh.hai img { border-radius: 10px; }
.da h3 { font-size: 24px; color: var(--do); margin: 18px 6px 0; }
.da p { margin: 8px 6px 0; }

/* Hiện dần khi cuộn tới */
.js .hien { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.25,1); }
.js .hien.thay { opacity: 1; transform: none; }

/* ===== Liên hệ + cuối trang ===== */
.lien-he { padding: 80px 0 60px; background: var(--be) var(--van-giay); }
.lien-luoi { display: grid; gap: 12px; margin-top: 30px; }
.lien-luoi a, .lien-luoi div { display: block; text-decoration: none; padding: 18px 20px; border-radius: 16px; background: var(--kem); border: 2px solid rgba(184,59,59,.2); transition: border-color .2s; }
.lien-luoi a:hover { border-color: var(--do); }
.lien-luoi b { display: block; font-family: var(--tieu-de); font-size: 20px; color: var(--do); line-height: 1.2; }
.lien-luoi span { font-size: 15.5px; word-break: break-word; }
.cuoi { background: var(--do); color: rgba(255,249,240,.9); padding: 30px 0 110px; font-size: 14.5px; }
.cuoi .boc { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cuoi img { height: 46px; width: auto; }

.thanh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,249,240,.97); border-top: 1px solid rgba(184,59,59,.2); box-shadow: 0 -6px 18px rgba(142,42,42,.08); }
.thanh .nut { min-height: 46px; padding: 0 10px; }

@media (min-width: 760px) {
  .dau nav .phu { display: inline; }
  .mo { padding: 110px 0 70px; }
  .mo .boc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; }
  .dia-khung { width: min(56vw, 640px); margin-right: -60px; }
  .luoi-anh { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 300px; overflow: visible; max-width: 1160px; margin: 34px auto 0; padding: 0 20px; }
  .o-anh { aspect-ratio: auto; }
  .o-anh:first-child { grid-row: span 2; }
  .td-luoi { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cac-buoc { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .lien-luoi { grid-template-columns: repeat(4, 1fr); }
  .manh { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .dv-luoi { grid-template-columns: repeat(3, 1fr); }
  .da-luoi { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .thanh { display: none; }
  .cuoi { padding-bottom: 30px; }
}
@media (max-width: 360px) {
  .ds-mon .ten { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .vanh .net { stroke-dashoffset: 0; }
  .js .mon-tren-dia, .js .mo h1 .dong, .js .mo .hien-sau, .js .hien { opacity: 1; transform: none; }
}
