/* ============================================================
   Pizza Di Lino — style.css
   Palette: crema (#F6EEDD), inchiostro (#2B1C12), verde basilico (#1F3D2B),
            rosso pomodoro (#A6382F), oro (#C9A24B), tortora (#8A7A63)
   Display: "Fraunces" — corps: "Be Vietnam Pro" (hỗ trợ tiếng Việt đầy đủ)
   ============================================================ */

:root {
  --cream: #f6eedd;
  --cream-soft: #fbf6ea;
  --paper: #fffdf8;
  --ink: #2b1c12;
  --green: #1f3d2b;
  --green-deep: #142a1c;
  --red: #a6382f;
  --red-deep: #7f2a23;
  --gold: #c9a24b;
  --muted: #8a7a63;
  --line: #ece2d0;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(43, 28, 18, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Be Vietnam Pro", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--red);
  letter-spacing: 0.02em;
  margin: 0 0 10px 0;
}
.eyebrow--light { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: var(--cream-soft); box-shadow: 0 10px 24px -10px rgba(166, 56, 47, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(166, 56, 47, 0.7); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--gold); color: var(--green-deep); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 238, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-text strong { font-family: var(--font-display); font-size: 1.08rem; }
.nav__brand-text em { font-style: normal; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 26px; font-weight: 600; font-size: 0.92rem; }
.nav__links a { opacity: 0.82; transition: opacity 0.15s; }
.nav__links a:hover { opacity: 1; color: var(--red); }
.cart-btn {
  position: relative;
  background: var(--green);
  color: var(--cream);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 0.66rem; font-weight: 800;
  width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 40px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201, 162, 75, 0.22), transparent 60%),
    var(--cream);
}
.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__lede { max-width: 46ch; color: var(--muted); font-size: 1.03rem; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__mini-badges { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; color: var(--muted); font-weight: 600; }

.hero__art { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 8px solid var(--paper);
}
.hero__chip {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 118px; height: 118px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow);
  background: var(--cream-soft);
}
.hero__chip img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero__stamp {
  position: absolute;
  top: 26px;
  right: 24px;
  color: var(--green);
  opacity: 0.55;
  animation: spin 34s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__stamp { animation: none; } }

/* ===================== TRUST BAR ===================== */
.trust { background: var(--green); padding: 30px 24px; }
.trust__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; color: var(--cream); }
.trust__icon { font-size: 1.5rem; line-height: 1; }
.trust__item strong { font-family: var(--font-display); font-size: 1.02rem; display: block; margin-bottom: 3px; }
.trust__item p { font-size: 0.84rem; color: #c9d6c9; }

/* ===================== STORY ===================== */
.story {
  max-width: 1180px; margin: 0 auto;
  padding: 84px 24px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center;
}
.story__media {
  background: var(--green);
  border-radius: var(--radius-lg);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}
.story__media::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201,162,75,0.28), transparent 60%);
}
.story__chef { width: 92%; position: relative; z-index: 1; }
.story__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 18px; line-height: 1.15; }
.story__copy > p { color: var(--muted); max-width: 54ch; margin-bottom: 22px; }
.story__list { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.story__list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.story__list span { color: var(--red); font-weight: 800; }

/* ===================== MENU ===================== */
.menu { max-width: 1180px; margin: 0 auto; padding: 20px 24px 90px; }
.menu__head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.menu__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 10px; }
.menu__sub { color: var(--muted); font-size: 0.95rem; }

.menu__tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap;
}
.menu__tab {
  background: var(--cream-soft);
  border: 1.5px solid var(--line);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all 0.18s;
}
.menu__tab:hover { border-color: var(--red); color: var(--red); }
.menu__tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dish {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish__img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.dish__img { width: 100%; height: 100%; object-fit: cover; }
.dish__badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(31, 61, 43, 0.9);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.dish__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.dish__desc { color: var(--muted); font-size: 0.84rem; flex: 1; }
.dish__add {
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--cream);
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.15s;
}
.dish__add:hover { background: var(--green); color: var(--cream); }
.dish__add.is-added { background: var(--green); color: var(--cream); }

/* ===================== PACKAGING ===================== */
.packaging {
  background: var(--green-deep);
  color: var(--cream);
  padding: 84px 24px;
}
.packaging__flex {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.packaging__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--cream); margin-bottom: 18px; }
.packaging__copy p { color: #cfd9cf; max-width: 50ch; margin-bottom: 16px; }
.packaging__quote { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.packaging__media img { border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }

/* ===================== CTA BAND ===================== */
.cta-band { background: var(--red); padding: 54px 24px; }
.cta-band__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #d8cdbd; padding: 54px 24px 20px; }
.footer__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer__brand p { font-family: var(--font-display); color: #fff; font-size: 1rem; }
.footer__brand span { font-family: var(--font-body); font-size: 0.75rem; color: #a89a86; }
.footer__col strong { color: #fff; display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; }
.footer__col p { font-size: 0.87rem; margin-bottom: 4px; color: #b7ab98; }
.footer__bottom { max-width: 1180px; margin: 18px auto 0; font-size: 0.78rem; color: #8a7c68; }

/* ===================== DRAWER / MODAL ===================== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(20, 14, 8, 0.5);
  opacity: 0; transition: opacity 0.25s;
}
.drawer[aria-hidden="false"] .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw);
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1);
}
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 1.2rem; font-weight: 600; }
.drawer__close {
  background: var(--cream); border: none; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1rem; color: var(--ink);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__empty { color: var(--muted); font-size: 0.92rem; text-align: center; margin-top: 40px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }

.cart-line {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-line img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__info strong { font-size: 0.92rem; display: block; }
.cart-line__qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-line__qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream);
  font-weight: 700; font-size: 0.85rem; line-height: 1;
}
.cart-line__remove { background: none; border: none; color: var(--red); font-size: 0.78rem; font-weight: 700; }

.order-form { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 700; }
.field em { color: var(--red); font-style: normal; }
.field input, .field textarea {
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.94rem;
  background: var(--cream-soft);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; background: #fff; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.order-form__summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.order-form__summary strong { color: var(--ink); }
.order-form__msg { font-size: 0.85rem; font-weight: 700; min-height: 1.1em; }
.order-form__msg.is-error { color: var(--red); }
.order-form__msg.is-ok { color: var(--green); }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--green); color: var(--cream);
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; }
  .story { grid-template-columns: 1fr; }
  .story__media { max-width: 360px; margin: 0 auto; }
  .packaging__flex { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .menu__grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 16px 32px; }
  .hero__stamp { display: none; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
