/* ══════════════════════════════════════════════════════════════════
   BẾP XANH — Food Blog (Ẩm thực, công thức, review quán ăn, mẹo bếp)
   Identity: FRESH-MINIMAL — white dominant, herb-green accent, whitespace
   Font: Plus Jakarta Sans (heading 600 / body 400, subtitle 300)
   Nav: Nav-2 Always Solid Light | Hero: H9 Product Showcase (carousel 4 slide)
   Prefix: bam- (Blog Ẩm Thực)
   Layouts dùng: BENTO-GRID · GRID-CARDS · HORIZONTAL-SCROLL · STAT-BAR ·
                 FEATURE-ICON-ROW · LIST-ELEGANT · TIMELINE ·
                 ALTERNATING-STRIPS · MASONRY · FULL-BLEED
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg:              #fafcf7;
  --surface:         #ffffff;
  --dark:            #182b1e;
  --dark2:           #20392a;
  --border:          #e3ecdf;
  --border-light:    #eef4ea;
  --text:            #1c2a1f;
  --text-2:          #5f6f61;
  --text-3:          #99a696;
  --accent:          #5a8f3d;   /* Herb / Avocado green — hue ~99°, khác dải xanh lá đã dùng (140-178°) */
  --accent-h:        #47732f;
  --accent-light:    #eef5e6;
  --accent-mid:      #7ab35a;
  --tomato:          #d9502f;   /* Cà chua chín — accent phụ cho badge/tag/rating */
  --tomato-h:        #b8401f;
  --tomato-light:    #fbe8e2;
  --star:            #f0a63a;
  --danger:          #d64545;
  --sans:            'Plus Jakarta Sans', sans-serif;
  --radius-lg: 20px; --radius-md: 12px; --radius-sm: 8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--sans); font-weight: 600; margin: 0; line-height: 1.2; color: var(--text); }
p { margin: 0; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: var(--sans); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Layout ── */
.bam-container    { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.bam-container-sm { max-width: 820px;  margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.bam-sec    { padding: clamp(60px, 8vw, 116px) 0; }
.bam-sec-sm { padding: clamp(36px, 5vw, 64px) 0; }

/* ── Section header ── */
.bam-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.bam-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--tomato); border-radius: 2px; }
.bam-sec-title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.18; color: var(--text); }
.bam-sec-title em { color: var(--accent); font-style: normal; }
.bam-sec-sub { font-size: 16px; font-weight: 300; color: var(--text-2); max-width: 560px; margin-top: 14px; }
.bam-sec-head { margin-bottom: 42px; }
.bam-sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.bam-sec-head.center .bam-sec-sub { margin-left: auto; margin-right: auto; }
.bam-sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ── Buttons — FRESH-MINIMAL: solid pill, hover darken ── */
.bam-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 9999px; font-weight: 600; font-size: 14.5px;
  transition: all .2s; white-space: nowrap; cursor: pointer;
}
.bam-btn-primary { background: var(--accent); color: #fff; }
.bam-btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); }
.bam-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.bam-btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.bam-btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.bam-btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.bam-btn-sm { padding: 9px 20px; font-size: 13px; }
.bam-btn-tomato { background: var(--tomato); color: #fff; }
.bam-btn-tomato:hover { background: var(--tomato-h); }

/* ── Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal-d1] { transition-delay: .08s; } [data-reveal-d2] { transition-delay: .16s; } [data-reveal-d3] { transition-delay: .24s; }

/* ═════════════════════════════════════════════════════
   NAV — Nav-2: Always Solid Light (không cần scroll JS)
   ═════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.bam-nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bam-logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); flex-shrink: 0; }
.bam-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.bam-logo span { color: var(--accent); }
.bam-nav-links { display: flex; align-items: center; gap: 30px; }
.bam-nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s; position: relative; }
.bam-nav-links a:hover, .bam-nav-links a.active { color: var(--text); }
.bam-nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 2px; background: var(--accent); border-radius: 2px; }
.bam-nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.bam-nav-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 9999px; padding: 8px 16px; }
.bam-nav-search input { border: none; background: none; outline: none; font-size: 13px; width: 130px; color: var(--text); }
.bam-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.bam-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.bam-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bam-hamburger.open span:nth-child(2) { opacity: 0; }
.bam-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bam-nav-mobile {
  position: fixed; inset: 0; background: var(--surface); z-index: 890;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.bam-nav-mobile.open { opacity: 1; pointer-events: auto; }
.bam-nav-mobile a { font-size: 22px; font-weight: 600; color: var(--text); }
.bam-nav-mobile a:hover { color: var(--accent); }
@media (max-width: 960px) { .bam-nav-links, .bam-nav-search { display: none; } .bam-hamburger { display: flex; } }

/* ═════════════════════════════════════════════════════
   CAROUSEL HERO — H9 Product Showcase (fullscreen, 4 slides)
   ═════════════════════════════════════════════════════ */
.bam-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.bam-hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease;
}
.bam-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.bam-hero-slide[data-tone="1"] { background: linear-gradient(120deg, #223a26 0%, #3c6031 62%, #5a8f3d 100%); }
.bam-hero-slide[data-tone="2"] { background: linear-gradient(120deg, #241812 0%, #4a2c1c 55%, #8a4526 100%); }
.bam-hero-slide[data-tone="3"] { background: linear-gradient(120deg, #182b1e 0%, #2c4a2c 55%, #5a8f3d 100%); }
.bam-hero-slide[data-tone="4"] { background: linear-gradient(120deg, #1c2f22 0%, #2f5232 55%, #7ab35a 100%); }
.bam-hero-inner {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); width: 100%;
  max-width: 1280px; margin: 0 auto; padding: 90px clamp(20px, 5vw, 64px) 0;
}
.bam-hero-text { flex: 0 0 auto; width: 40%; color: #fff; }
.bam-hero-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #cfe8bd; margin-bottom: 18px; }
.bam-hero-label::before { content: ''; width: 26px; height: 2px; background: var(--star); }
.bam-hero-title { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 18px; }
.bam-hero-title em { color: var(--star); font-style: normal; }
.bam-hero-desc { font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; color: rgba(255,255,255,.8); max-width: 420px; margin-bottom: 30px; }
.bam-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.bam-hero-photogrid {
  flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 14px; height: 66vh; max-height: 540px;
}
.bam-hero-photogrid a { border-radius: 16px; overflow: hidden; display: block; position: relative; }
.bam-hero-photogrid a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.28), transparent 45%); }
.bam-hero-photogrid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bam-hero-photogrid a:hover img { transform: scale(1.07); }
.bam-hero-photogrid a:nth-child(1) { grid-row: span 2; }
@media (max-width: 1080px) { .bam-hero-text { width: 46%; } }
@media (max-width: 860px) {
  .bam-hero-inner { flex-direction: column; padding-top: 96px; }
  .bam-hero-text { width: 100%; }
  .bam-hero-photogrid { width: 100%; height: 40vh; }
  .bam-hero-desc { max-width: none; }
}

.bam-hero-nav { position: absolute; bottom: 32px; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 22px; }
.bam-hero-arrow {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.28); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .2s;
}
.bam-hero-arrow:hover { background: rgba(255,255,255,.24); transform: scale(1.06); }
.bam-hero-dots { display: flex; gap: 9px; }
.bam-hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .25s; }
.bam-hero-dot.active { width: 26px; border-radius: 5px; background: var(--star); }
@media (max-width: 640px) { .bam-hero { height: 90vh; } .bam-hero-arrow { width: 42px; height: 42px; } }

/* ═════════════════════════════════════════════════════
   BENTO-GRID — Chuyên mục nổi bật
   ═════════════════════════════════════════════════════ */
.bam-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 18px; }
.bam-bento-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end;
  box-shadow: 0 1px 0 var(--border); transition: transform .3s, box-shadow .3s;
}
.bam-bento-item:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,40,20,.14); }
.bam-bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bam-bento-item:hover img { transform: scale(1.06); }
.bam-bento-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,10,.78) 0%, rgba(10,20,10,.1) 60%, transparent 100%); }
.bam-bento-body { position: relative; z-index: 2; padding: 20px; color: #fff; }
.bam-bento-count { font-size: 11.5px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.bam-bento-name { font-size: 16px; font-weight: 600; }
.bam-bento-item.a { grid-column: span 2; grid-row: span 2; }
.bam-bento-item.b { grid-column: span 2; }
.bam-bento-item.c { grid-column: span 1; }
.bam-bento-item.d { grid-column: span 1; }
.bam-bento-item.e { grid-column: span 2; }
.bam-bento-item.f { grid-column: span 2; }
@media (max-width: 900px) {
  .bam-bento { grid-template-columns: repeat(2, 1fr); }
  .bam-bento-item.a { grid-column: span 2; }
}
@media (max-width: 560px) { .bam-bento { grid-template-columns: 1fr; grid-auto-rows: 180px; } .bam-bento-item.a,.bam-bento-item.b,.bam-bento-item.e,.bam-bento-item.f { grid-column: span 1; grid-row: span 1; } }

/* ═════════════════════════════════════════════════════
   GRID-CARDS — Post card
   ═════════════════════════════════════════════════════ */
.bam-post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; height: 100%; display: block; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.bam-post-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(20,40,20,.1); border-color: transparent; }
.bam-post-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.bam-post-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bam-post-card:hover .bam-post-thumb-wrap img { transform: scale(1.07); }
.bam-post-cat { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 9999px; }
.bam-post-body { padding: 20px 22px 22px; }
.bam-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.bam-post-meta span::before { content: '•'; margin-right: 10px; color: var(--border); }
.bam-post-meta span:first-child::before { display: none; }
.bam-post-title { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 10px; }
.bam-post-card:hover .bam-post-title { color: var(--accent); }
.bam-post-excerpt { font-size: 13.5px; font-weight: 300; color: var(--text-2); line-height: 1.7; }
.bam-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .bam-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bam-post-grid { grid-template-columns: 1fr; } }

/* Featured post banner (FULL-BLEED-ish inside container) */
.bam-featured { background: var(--dark); border-radius: 24px; overflow: hidden; position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 380px; }
.bam-featured-img { position: relative; overflow: hidden; }
.bam-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.bam-featured-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.bam-featured-tag { display: inline-flex; width: fit-content; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dark); background: var(--star); padding: 6px 14px; border-radius: 9999px; margin-bottom: 18px; }
.bam-featured-title { font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; line-height: 1.28; margin-bottom: 16px; }
.bam-featured-desc { font-size: 14.5px; font-weight: 300; color: rgba(255,255,255,.65); margin-bottom: 22px; max-width: 440px; }
.bam-featured-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }
.bam-featured-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
@media (max-width: 780px) { .bam-featured { grid-template-columns: 1fr; } .bam-featured-img { aspect-ratio: 16/9; } }

/* ═════════════════════════════════════════════════════
   HORIZONTAL-SCROLL — Công thức đang hot
   ═════════════════════════════════════════════════════ */
.bam-hscroll { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 26px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.bam-hscroll::-webkit-scrollbar { height: 6px; }
.bam-hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.bam-recipe-card { flex: 0 0 270px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.bam-recipe-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,40,20,.1); }
.bam-recipe-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.bam-recipe-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bam-recipe-card:hover .bam-recipe-thumb img { transform: scale(1.08); }
.bam-recipe-difficulty { position: absolute; top: 12px; right: 12px; background: rgba(24,43,30,.72); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 9999px; }
.bam-recipe-body { padding: 16px 18px 20px; }
.bam-recipe-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.bam-recipe-stats { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-3); }
.bam-recipe-stats i { color: var(--tomato); margin-right: 4px; }

/* ═════════════════════════════════════════════════════
   STAT-BAR
   ═════════════════════════════════════════════════════ */
.bam-stat-bar { background: var(--dark); border-radius: 24px; padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px); }
.bam-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 5vw, 48px); text-align: center; }
.bam-stat-num { font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; }
.bam-stat-num span { color: var(--star); }
.bam-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 10px; }
@media (max-width: 1024px) { .bam-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bam-stats-grid { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════
   FEATURE-ICON-ROW
   ═════════════════════════════════════════════════════ */
.bam-feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.bam-feature-item { text-align: left; }
.bam-feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.bam-feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.bam-feature-desc { font-size: 13.5px; font-weight: 300; color: var(--text-2); line-height: 1.7; }
@media (max-width: 900px) { .bam-feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bam-feature-row { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════
   FAQ Accordion (custom, FRESH-MINIMAL style)
   ═════════════════════════════════════════════════════ */
.bam-faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.bam-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s; }
.bam-faq-item.open { border-color: var(--accent); }
.bam-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.bam-faq-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform .3s, background .2s, color .2s; }
.bam-faq-item.open .bam-faq-icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
.bam-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 24px; }
.bam-faq-item.open .bam-faq-a { max-height: 320px; padding: 0 24px 22px; }
.bam-faq-a p { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.75; }

/* ═════════════════════════════════════════════════════
   Newsletter banner (full-bleed feel)
   ═════════════════════════════════════════════════════ */
.bam-newsletter { background: var(--accent-light); border-radius: 24px; padding: clamp(36px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bam-newsletter-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; margin-bottom: 8px; }
.bam-newsletter-desc { font-size: 14px; font-weight: 300; color: var(--text-2); max-width: 420px; }
.bam-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bam-newsletter-form input { padding: 14px 20px; border-radius: 9999px; border: 1px solid var(--border); font-size: 14px; width: 240px; background: #fff; outline: none; }
.bam-newsletter-form input:focus { border-color: var(--accent); }

/* ═════════════════════════════════════════════════════
   Category page — tabs, sidebar, LIST-ELEGANT
   ═════════════════════════════════════════════════════ */
.bam-page-header { background: var(--dark); padding: 148px 0 64px; color: #fff; }
.bam-breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.bam-breadcrumb a { color: rgba(255,255,255,.75); } .bam-breadcrumb a:hover { color: #fff; }
.bam-page-title { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.bam-page-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.6); margin-top: 12px; max-width: 560px; }

.bam-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.bam-tab { padding: 10px 20px; border-radius: 9999px; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.bam-tab:hover { border-color: var(--accent); color: var(--accent); }
.bam-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.bam-cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.bam-sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 22px; }
.bam-sw-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 18px; }
.bam-list-elegant { display: flex; flex-direction: column; }
.bam-le-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.bam-le-item:last-child { border-bottom: none; padding-bottom: 0; }
.bam-le-item:first-child { padding-top: 0; }
.bam-le-num { font-size: 20px; font-weight: 700; color: var(--border); flex-shrink: 0; width: 28px; }
.bam-le-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.bam-le-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.bam-le-item:hover .bam-le-title { color: var(--accent); }
.bam-le-meta { font-size: 11.5px; color: var(--text-3); }
.bam-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bam-tag { font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); padding: 6px 14px; border-radius: 9999px; transition: all .15s; }
.bam-tag:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent-light); }
@media (max-width: 900px) { .bam-cat-layout { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════
   Recipe page — quick facts, ingredients, steps (TIMELINE)
   ═════════════════════════════════════════════════════ */
.bam-recipe-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bam-recipe-hero-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.bam-recipe-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.bam-recipe-badges { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.bam-badge { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; border-radius: 9999px; }
.bam-badge-cat { background: var(--accent-light); color: var(--accent); }
.bam-badge-diff { background: var(--tomato-light); color: var(--tomato); }
.bam-recipe-hero-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.bam-recipe-hero-desc { font-size: 15px; font-weight: 300; color: var(--text-2); margin-bottom: 24px; }
.bam-recipe-author { display: flex; align-items: center; gap: 12px; }
.bam-recipe-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bam-recipe-author-name { font-size: 13.5px; font-weight: 600; }
.bam-recipe-author-date { font-size: 12px; color: var(--text-3); }

.bam-quickfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 44px 0; }
.bam-qf-item { background: var(--surface); padding: 22px 18px; text-align: center; }
.bam-qf-icon { font-size: 22px; margin-bottom: 8px; }
.bam-qf-val { font-size: 17px; font-weight: 700; }
.bam-qf-label { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
@media (max-width: 700px) { .bam-quickfacts { grid-template-columns: repeat(2, 1fr); } }

.bam-recipe-body-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.bam-ingredients-box { background: var(--accent-light); border-radius: var(--radius-lg); padding: 28px 26px; position: sticky; top: 96px; }
.bam-ingredients-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.bam-ingredients-servings { font-size: 12.5px; color: var(--text-2); margin-bottom: 18px; }
.bam-ing-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(90,143,61,.28); font-size: 13.5px; }
.bam-ing-item:last-child { border-bottom: none; }
.bam-ing-item i { color: var(--accent); margin-top: 3px; }
.bam-ing-qty { font-weight: 700; color: var(--accent-h); margin-right: 4px; }

.bam-steps { display: flex; flex-direction: column; gap: 0; }
.bam-step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 36px; position: relative; }
.bam-step::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.bam-step:last-child::before { display: none; }
.bam-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; z-index: 1; }
.bam-step-title { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.bam-step-desc { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.75; }
.bam-step-img { margin-top: 14px; border-radius: var(--radius-md); overflow: hidden; max-width: 420px; aspect-ratio: 16/10; }
.bam-step-img img { width: 100%; height: 100%; object-fit: cover; }
.bam-tip-box { background: var(--tomato-light); border-radius: var(--radius-md); padding: 20px 22px; margin-top: 20px; display: flex; gap: 14px; }
.bam-tip-box i { color: var(--tomato); font-size: 20px; flex-shrink: 0; }
.bam-tip-box p { font-size: 13.5px; color: #7a3419; line-height: 1.7; }
@media (max-width: 860px) { .bam-recipe-hero { grid-template-columns: 1fr; } .bam-recipe-body-layout { grid-template-columns: 1fr; } .bam-ingredients-box { position: static; } }

/* ═════════════════════════════════════════════════════
   Article detail page — prose, pullquote, tags, author box
   ═════════════════════════════════════════════════════ */
.bam-article-header { padding: 150px 0 40px; text-align: center; }
.bam-article-title { font-size: clamp(28px, 4.6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; max-width: 760px; margin: 0 auto 20px; }
.bam-article-meta-row { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.bam-article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 21/9; margin: 34px 0 0; }
.bam-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.bam-prose { font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.9; }
.bam-prose h2 { font-size: 24px; font-weight: 600; margin: 44px 0 16px; letter-spacing: -.01em; }
.bam-prose h3 { font-size: 19px; font-weight: 600; margin: 30px 0 12px; }
.bam-prose p { margin-bottom: 20px; }
.bam-prose ul { list-style: disc; padding-left: 22px; margin-bottom: 20px; }
.bam-prose li { margin-bottom: 8px; }
.bam-pullquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 26px; margin: 32px 0; font-size: 20px; font-weight: 500; font-style: italic; color: var(--text); line-height: 1.55; }
.bam-inline-img { border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0; }
.bam-inline-img img { width: 100%; display: block; }
.bam-inline-cap { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 10px; }
.bam-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.bam-author-box { display: flex; gap: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; align-items: center; margin: 36px 0; }
.bam-author-box img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bam-author-box-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.bam-author-box-desc { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.6; }

/* ═════════════════════════════════════════════════════
   About page — ALTERNATING-STRIPS, TIMELINE, MASONRY
   ═════════════════════════════════════════════════════ */
.bam-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bam-strip.reverse .bam-strip-img { order: 2; }
.bam-strip-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.bam-strip-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .bam-strip, .bam-strip.reverse { grid-template-columns: 1fr; } .bam-strip.reverse .bam-strip-img { order: 0; } }

.bam-timeline { position: relative; max-width: 760px; margin: 0 auto; }
.bam-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.bam-tl-item { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; align-items: start; margin-bottom: 44px; }
.bam-tl-item:last-child { margin-bottom: 0; }
.bam-tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--accent-light); margin: 4px auto 0; position: relative; z-index: 1; }
.bam-tl-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; }
.bam-tl-item:nth-child(odd) .bam-tl-content { grid-column: 1; text-align: right; }
.bam-tl-item:nth-child(odd) .bam-tl-spacer { grid-column: 3; }
.bam-tl-item:nth-child(even) .bam-tl-content { grid-column: 3; text-align: left; }
.bam-tl-item:nth-child(even) .bam-tl-spacer { grid-column: 1; }
.bam-tl-year { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.bam-tl-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.bam-tl-desc { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.7; }
@media (max-width: 760px) {
  .bam-timeline::before { left: 20px; }
  .bam-tl-item, .bam-tl-item:nth-child(odd), .bam-tl-item:nth-child(even) { grid-template-columns: 40px 1fr; }
  .bam-tl-item:nth-child(odd) .bam-tl-content, .bam-tl-item:nth-child(even) .bam-tl-content { grid-column: 2; text-align: left; }
  .bam-tl-item:nth-child(odd) .bam-tl-spacer, .bam-tl-item:nth-child(even) .bam-tl-spacer { display: none; }
  .bam-tl-dot { margin: 4px 0 0; }
}

.bam-masonry { columns: 3 220px; column-gap: 18px; }
.bam-masonry img { width: 100%; border-radius: var(--radius-md); margin-bottom: 18px; break-inside: avoid; }
@media (max-width: 700px) { .bam-masonry { columns: 2 160px; } }

.bam-testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; height: 100%; }
.bam-testi-stars { color: var(--star); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.bam-testi-text { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.bam-testi-person { display: flex; align-items: center; gap: 12px; }
.bam-testi-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.bam-testi-name { font-size: 13.5px; font-weight: 600; }
.bam-testi-role { font-size: 11.5px; color: var(--text-3); }

/* ═════════════════════════════════════════════════════
   Contact page
   ═════════════════════════════════════════════════════ */
.bam-contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: start; }
.bam-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.bam-info-item:first-child { padding-top: 0; }
.bam-info-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.bam-info-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.bam-info-value { font-size: 14.5px; font-weight: 600; }
.bam-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.bam-form-group { margin-bottom: 18px; }
.bam-form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.bam-form-group input, .bam-form-group textarea, .bam-form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: border-color .2s; background: var(--bg);
}
.bam-form-group input:focus, .bam-form-group textarea:focus, .bam-form-group select:focus { border-color: var(--accent); background: #fff; }
.bam-form-group textarea { resize: vertical; min-height: 120px; }
@media (max-width: 860px) { .bam-contact-layout { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════
   Footer — FRESH-MINIMAL: light bg, 4-col, green accent links
   ═════════════════════════════════════════════════════ */
footer { background: var(--surface); border-top: 1px solid var(--border); }
.bam-footer-top { padding: clamp(56px, 7vw, 88px) 0 40px; }
.bam-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.bam-footer-logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.bam-footer-desc { font-size: 13.5px; font-weight: 300; color: var(--text-2); line-height: 1.8; max-width: 280px; margin-bottom: 20px; }
.bam-footer-social { display: flex; gap: 10px; }
.bam-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; }
.bam-footer-social a:hover { background: var(--accent); color: #fff; }
.bam-footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 18px; }
.bam-footer-links { display: flex; flex-direction: column; gap: 11px; }
.bam-footer-links a { font-size: 13.5px; color: var(--text-2); transition: color .15s; }
.bam-footer-links a:hover { color: var(--accent); }
.bam-footer-maps { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); border: 1px solid var(--border); margin: 8px 0 36px; }
.bam-footer-maps iframe { width: 100%; height: 100%; border: 0; display: block; }
.bam-footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bam-footer-copy { font-size: 12.5px; color: var(--text-3); }
.bam-footer-legal { display: flex; gap: 20px; }
.bam-footer-legal a { font-size: 12.5px; color: var(--text-3); }
.bam-footer-legal a:hover { color: var(--accent); }
@media (max-width: 900px) { .bam-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bam-footer-grid { grid-template-columns: 1fr; } }

/* Zalo float */
.bam-zf { position: fixed; bottom: 26px; right: 26px; z-index: 400; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bam-zf-tip { font-size: 12px; background: var(--dark); color: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: all .2s; pointer-events: none; white-space: nowrap; }
.bam-zf:hover .bam-zf-tip { opacity: 1; transform: none; }
.bam-zf-btn { width: 50px; height: 50px; border-radius: 50%; background: #0068FF; display: flex; align-items: center; justify-content: center; font-size: 23px; box-shadow: 0 4px 18px rgba(0,104,255,.4); transition: transform .2s; color: #fff; }
.bam-zf-btn:hover { transform: scale(1.08); }

/* Legal page (privacy/terms) — simple prose */
.bam-legal-body { font-size: 14.5px; font-weight: 300; color: var(--text-2); line-height: 1.85; }
.bam-legal-body h2 { font-size: 19px; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
.bam-legal-body p { margin-bottom: 14px; }
.bam-legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.bam-legal-body li { margin-bottom: 6px; }
