/* Font guideline FARO, dùng trên web theo giấy phép webfont của công ty.
   Tạo lại bằng: python tools/build-fonts.py "<thư mục font gốc>" */
@font-face{font-family:'TT Norms Pro Serif';font-style:normal;font-weight:100 950;font-display:swap;src:url('../assets/fonts/tt-norms-pro-serif-var-roman.woff2') format('woff2')}
@font-face{font-family:'TT Norms Pro Serif';font-style:italic;font-weight:100 950;font-display:swap;src:url('../assets/fonts/tt-norms-pro-serif-var-italic.woff2') format('woff2')}
@font-face{font-family:'URW DIN';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/urw-din-400.woff2') format('woff2')}
@font-face{font-family:'URW DIN';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/urw-din-500.woff2') format('woff2')}
@font-face{font-family:'URW DIN';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/urw-din-600.woff2') format('woff2')}
@font-face{font-family:'URW DIN';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/urw-din-700.woff2') format('woff2')}

/* FARO Coffee Roastery · phong cách "A · Poster" theo Figma "WEBSITE · A Poster".
   Mốc bố cục: Desktop ≥ 1100px (khung 1440), Tablet 700–1099px (khung 834), Mobile < 700px (khung 390). */

:root {
  --black: #0d0805;
  --roast: #5b3417;
  --honey: #ffd96a;
  --honey-soft: #ffe59a;
  --crimson: #77090c;
  --parch: #fff7e2;
  --forest: #4e684f;
  --ink: #2a180b;

  --fam-floral: #ffd96a;
  /* Figma dùng #e8575b; nâng sáng để đạt tương phản 4.5:1 trên nền thẻ mã hương. */
  --fam-fruit: #f0787b;
  --fam-dessert: #e9b98a;
  --fam-spice: #9dbb9e;

  /* Font guideline FARO (xem assets/fonts/fonts.css). */
  --serif: "TT Norms Pro Serif", Georgia, serif;
  --sans: "URW DIN", "Segoe UI", system-ui, sans-serif;

  --pad-x: 120px;
  --pad-y: 120px;
  --gap: 56px;
  --radius: 6px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--parch);
  font: 400 17px/1.55 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.sec--parch :focus-visible,
.sec--honey :focus-visible {
  outline-color: var(--crimson);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Tránh chớp bản tiếng Anh khi mở thẳng bản tiếng Việt (?lang=vi hoặc đã lưu). */
.lang-pending body {
  visibility: hidden;
}

/* ---------- Chữ dùng chung ---------- */

.kicker {
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}

.h2 {
  font: 300 56px/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.body {
  font-size: 17px;
  line-height: 1.55;
  color: rgb(255 247 226 / 0.82);
}

.body--hl {
  font-weight: 600;
  color: var(--honey-soft);
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--black);
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.label {
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Nút ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--honey {
  background: var(--honey);
  color: var(--black);
}

.btn--honey:hover {
  background: var(--honey-soft);
}

.btn--ghost {
  border-color: var(--parch);
  color: var(--parch);
}

.btn--ghost:hover {
  background: var(--parch);
  color: var(--black);
}

/* ---------- Thanh menu ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 56px;
  transition:
    background-color 0.3s,
    padding 0.3s,
    box-shadow 0.3s;
}

.site-header.is-solid {
  padding-block: 14px;
  background: rgb(13 8 5 / 0.94);
  box-shadow: 0 1px 0 rgb(255 247 226 / 0.1);
  backdrop-filter: blur(8px);
}

.site-header__home {
  flex: none;
  display: block;
  border-radius: 4px;
}

.logo {
  width: 108px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__links a {
  font: 500 14px/1.2 var(--sans);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 247 226 / 0.85);
  padding: 8px 0;
  transition: color 0.2s;
}

.site-nav__links a:hover {
  color: var(--honey);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgb(255 247 226 / 0.35);
  border-radius: 999px;
  background: rgb(13 8 5 / 0.45);
}

.lang-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--parch);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--parch);
  color: var(--black);
}

.site-header__menu {
  display: none;
}

/* ---------- 01 Hero ---------- */

.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 190px var(--pad-x) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(13 8 5 / 0.55) 0%, rgb(13 8 5 / 0.35) 45%, rgb(13 8 5 / 0.96) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 18px;
  border: 1px solid rgb(255 217 106 / 0.7);
  border-radius: 999px;
  background: rgb(13 8 5 / 0.55);
  color: var(--honey);
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

.badge__short {
  display: none;
}

.hero__kicker {
  font: 600 14px/1.2 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(255 247 226 / 0.8);
}

.hero__title {
  font: 300 168px/1 var(--serif);
  letter-spacing: -0.03em;
  color: var(--honey-soft);
  white-space: nowrap;
}

.hero__subtitle {
  font: italic 300 44px/1.2 var(--serif);
  color: var(--parch);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 112px auto 0;
}

.fact {
  border-top: 1px solid rgb(255 247 226 / 0.3);
  padding-top: 24px;
}

.fact dt {
  margin-bottom: 8px;
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}

.fact dd {
  font-size: 17px;
  line-height: 1.4;
  max-width: 360px;
}

/* ---------- Khung chung của các phần ---------- */

.sec {
  padding: var(--pad-y) var(--pad-x);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.sec--black {
  background: var(--black);
}

.sec--forest {
  background: var(--forest);
}

.sec--roast {
  background: var(--roast);
}

.sec--crimson {
  background: var(--crimson);
}

.sec--parch {
  background: var(--parch);
  color: var(--ink);
  color-scheme: light;
}

.sec--parch .kicker {
  color: var(--crimson);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.sec-head__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.sec-head__intro {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  color: rgb(255 247 226 / 0.82);
}

.sec--parch .sec-head__intro {
  color: rgb(42 24 11 / 0.85);
}

/* ---------- 02 Giới thiệu ---------- */

.about {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.about__photo img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: 4px;
}

.about__photo figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: rgb(255 247 226 / 0.6);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.about__lead {
  font: 300 44px/1.05 var(--serif);
  letter-spacing: -0.02em;
}

.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.path {
  padding: 28px 32px;
  border: 1px solid rgb(255 247 226 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 247 226 / 0.06);
}

.path h3 {
  margin-bottom: 12px;
  font: 400 26px/1.2 var(--serif);
}

.path p {
  font-size: 16px;
  color: rgb(255 247 226 / 0.82);
  max-width: 500px;
}

.goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.goals li {
  padding-top: 24px;
  border-top: 2px solid rgb(255 217 106 / 0.6);
  font-size: 16px;
  color: rgb(255 247 226 / 0.82);
}

.goals__n {
  display: block;
  margin-bottom: 16px;
  font: 300 40px/1.2 var(--serif);
  color: var(--honey);
}

.quote {
  padding-left: 40px;
  border-left: 3px solid var(--honey);
  max-width: 943px;
}

.quote p {
  font: italic 300 30px/1.4 var(--serif);
}

/* ---------- 03 Thành tích & chứng nhận ---------- */

#awards .sec-head__title {
  gap: 56px;
  max-width: 900px;
}

.award-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 24px;
}

.award-photos img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}

.award-photos__trophy img {
  background: #000;
}

.certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cert {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 24px;
  border-radius: var(--radius);
  background: var(--parch);
  color: var(--ink);
}

/* Ảnh chứng nhận hiển thị trọn vẹn, đứng đúng chiều, không bị cắt. */
.cert__img {
  position: relative;
  flex: none;
  height: 180px;
  border-radius: 3px;
  background: #ede3c8;
}

.cert__img img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.cert__title {
  font: 400 22px/1.2 var(--serif);
  margin-top: 4px;
}

.cert__sub {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crimson);
}

.cert__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(42 24 11 / 0.8);
}

.capacity {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.capacity div {
  padding-top: 20px;
  border-top: 1px solid rgb(255 247 226 / 0.35);
}

.capacity dt {
  font: 300 44px/1.2 var(--serif);
  color: var(--honey);
}

.capacity dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: rgb(255 247 226 / 0.85);
  max-width: 240px;
}

.qc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.qc li {
  padding: 20px;
  border: 1px solid rgb(255 247 226 / 0.3);
  border-radius: var(--radius);
}

.qc h3 {
  margin-bottom: 8px;
  font: 600 16px/1.3 var(--sans);
  color: var(--honey);
}

.qc p {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(255 247 226 / 0.88);
}

/* ---------- 04 Ý tưởng Đơm Hương + A note for cuppers ---------- */

.idea {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 80px;
}

.idea__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.idea__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
}

.posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.poster {
  position: relative;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(13 8 5 / 0) 45%, rgb(13 8 5 / 0.9) 100%);
}

.poster figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  font: 300 34px/1.1 var(--serif);
}

.scale {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scale__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.scale__head h3 {
  font: 400 28px/1.2 var(--serif);
}

.scale__head p {
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 247 226 / 0.7);
}

.scale__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scale__list li {
  padding: 22px 22px 24px;
  border: 1px solid rgb(255 247 226 / 0.15);
  border-radius: var(--radius);
  background: rgb(255 247 226 / 0.04);
}

.scale__list li:nth-child(2) {
  background: rgb(255 247 226 / 0.07);
}

.scale__list li:nth-child(3) {
  background: rgb(255 247 226 / 0.1);
}

.scale__list li.is-us {
  background: var(--crimson);
  border-color: rgb(255 217 106 / 0.9);
}

.scale__list h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font: 600 16px/1.3 var(--sans);
}

.scale__list .is-us h4 {
  color: var(--honey);
}

.scale__list .pill {
  font-size: 10px;
  padding: 4px 10px;
}

.scale__list p {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(255 247 226 / 0.85);
}

.scale__bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--forest), var(--honey) 60%, var(--crimson));
}

.cupnote {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid rgb(255 217 106 / 0.7);
  border-radius: var(--radius);
  background: rgb(255 217 106 / 0.06);
}

.cupnote__title {
  font: italic 400 24px/1.25 var(--serif);
  color: var(--honey);
}

.cupnote p {
  font-size: 16px;
  color: rgb(255 247 226 / 0.88);
  max-width: 820px;
}

/* ---------- 05 Mười hai mã ---------- */

.sec--roast .h2 {
  font-size: 72px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 247 226 / 0.88);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fam);
}

.fam-floral {
  --fam: var(--fam-floral);
}

.fam-fruit {
  --fam: var(--fam-fruit);
}

.fam-dessert {
  --fam: var(--fam-dessert);
}

.fam-spice {
  --fam: var(--fam-spice);
}

.codes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: calc(var(--gap) * -1 + 36px);
}

.code {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 192px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--fam) 55%, transparent);
  border-radius: var(--radius);
  background: rgb(13 8 5 / 0.28);
}

.code__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fam);
}

.code__n {
  font: 300 20px/1.2 var(--serif);
}

.code__fam {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code__name {
  font: 400 30px/1.1 var(--serif);
}

.code__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.code__notes li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255 247 226 / 0.12);
  font: 500 12px/1.2 var(--sans);
}

/* ---------- 06 Quy trình ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 263px;
  padding: 24px 24px 28px;
  border-radius: var(--radius);
  background: rgb(13 8 5 / 0.25);
}

.step__n {
  font: 300 48px/1.2 var(--serif);
  color: var(--honey);
}

.step h3 {
  font: 400 22px/1.2 var(--serif);
}

.step p {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(255 247 226 / 0.85);
}

.step.is-hl {
  background: var(--honey);
  color: var(--black);
}

.step.is-hl .step__n {
  color: var(--crimson);
}

.step.is-hl p {
  color: rgb(13 8 5 / 0.82);
}

.step.is-hl .pill {
  background: var(--crimson);
  color: var(--parch);
}

/* ---------- 07 Cho nhà rang ---------- */

.roasters__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

.ratio {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ratio__big {
  font: 300 120px/1 var(--serif);
  letter-spacing: -0.03em;
  color: var(--crimson);
}

.ratio__text {
  max-width: 300px;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(42 24 11 / 0.85);
}

.ways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ways li {
  padding: 28px 24px;
  border: 1px solid rgb(91 52 23 / 0.15);
  border-radius: var(--radius);
  background: #fff;
}

.ways__n {
  display: block;
  margin-bottom: 12px;
  font: 300 32px/1.2 var(--serif);
  color: var(--crimson);
}

.ways h3 {
  margin-bottom: 12px;
  font: 400 24px/1.2 var(--serif);
}

.ways p {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(42 24 11 / 0.8);
}

.why-adds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.why,
.adds {
  padding: 32px;
  border-radius: var(--radius);
}

.why {
  background: var(--roast);
  color: var(--parch);
}

.why h3 {
  margin-bottom: 16px;
  font: 400 28px/1.2 var(--serif);
  color: var(--honey);
}

.why li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(255 247 226 / 0.92);
}

.why li + li {
  margin-top: 16px;
}

.why li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.adds {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--honey);
}

.adds__label {
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--parch);
  font: 500 14px/1.2 var(--sans);
  color: var(--ink);
}

.chips--crimson li {
  background: var(--crimson);
  color: var(--parch);
}

.rd {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rd h3 {
  font: 400 28px/1.25 var(--serif);
}

.rd__path {
  display: flex;
  align-items: center;
}

.rd__path li {
  flex: 1 1 0;
  padding: 12px 16px;
  border: 1px solid rgb(91 52 23 / 0.25);
  border-radius: 999px;
  background: #fff;
  font: 600 13px/1.2 var(--sans);
  text-align: center;
  white-space: nowrap;
}

.rd__path li + li {
  margin-left: 16px;
  position: relative;
}

.rd__path li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: rgb(91 52 23 / 0.4);
}

.rd__path li:last-child {
  background: var(--crimson);
  color: var(--parch);
}

/* ---------- 08 Cà phê rang ---------- */

.range {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.coffee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 295px;
  padding: 28px;
  border: 1px solid rgb(255 247 226 / 0.15);
  border-radius: var(--radius);
  background: rgb(255 247 226 / 0.05);
}

.coffee__roast {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey);
}

.roast-dots {
  display: inline-flex;
  gap: 4px;
}

.roast-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 247 226 / 0.2);
}

.roast-dots i.on {
  background: var(--honey);
}

.coffee__name {
  font: 400 28px/1.15 var(--serif);
}

.coffee__notes {
  font: italic 300 17px/1.4 var(--serif);
  color: var(--honey-soft);
}

.coffee__spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 247 226 / 0.15);
}

.coffee__spec div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.coffee__spec dt {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 247 226 / 0.62);
}

.coffee__spec dd {
  font-size: 14px;
  line-height: 1.4;
  color: rgb(255 247 226 / 0.92);
}

/* ---------- 09 Bán lẻ Đơm Hương ---------- */

#retail .label {
  color: var(--crimson);
}

#retail .wrap > .label + .bags {
  margin-top: calc(var(--gap) * -1 + 24px);
}

.bags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.bag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.bag__img {
  height: 260px;
  margin-bottom: 8px;
}

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

.bag h4,
.bag p {
  padding-inline: 16px;
}

.bag__name {
  font: 400 20px/1.25 var(--serif);
}

.bag__en {
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
}

.bag__notes {
  font-size: 13px;
  line-height: 1.45;
  color: rgb(42 24 11 / 0.78);
}

.howto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--parch);
  font-size: 16px;
}

.howto strong {
  font: italic 400 22px/1.2 var(--serif);
  color: var(--honey);
}

/* ---------- 10 Nông trại ---------- */

.farms {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.farms__photos {
  position: relative;
  height: 640px;
}

.farms__farmer img {
  width: 400px;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}

.farms__cherries {
  position: absolute;
  left: 260px;
  top: 320px;
  width: 260px;
  height: 320px;
  border: 8px solid var(--forest);
  border-radius: 4px;
  overflow: hidden;
}

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

.farms__list .h2 {
  margin: 22px 0 28px;
}

.farm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgb(255 247 226 / 0.3);
}

.farm h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font: 400 24px/1.2 var(--serif);
}

.farm.is-own h3 {
  color: var(--honey);
}

.farm .pill {
  font-size: 10px;
  padding: 4px 10px;
}

.farm__place {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 247 226 / 0.85);
}

.farm p:last-child {
  font-size: 15px;
  line-height: 1.5;
  color: rgb(255 247 226 / 0.88);
}

/* ---------- 11 Đội ngũ ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
  border: 1px solid rgb(255 247 226 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 247 226 / 0.05);
  overflow: hidden;
}

/* Khung ảnh: mỗi người một màu thương hiệu. Ảnh đã cắt sát nền; đỉnh đầu của cả 4 người
   đặt cùng một mức (top: 19.7%), chiều cao ảnh giữ đúng tỉ lệ người như trong Figma.
   Vì vậy ảnh Thắng (Steven Ho) và Thiện thấp hơn ảnh gốc trong Figma một chút.
   Ảnh Thiện đã được co ngang trong tools/build-images.py cho đúng tỉ lệ như Figma. */
.portrait {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.portrait--roast {
  background: var(--roast);
}

.portrait--honey {
  background: var(--honey);
}

.portrait--forest {
  background: var(--forest);
}

.portrait--crimson {
  background: var(--crimson);
}

.portrait__img {
  position: absolute;
  left: 50%;
  top: 19.7%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.portrait--team-phat .portrait__img {
  height: 81.3%;
}

.portrait--team-van .portrait__img {
  height: 92.7%;
  /* Ảnh cắt sát gồm cả chiếc ghế bên trái, nên tâm ảnh lệch khỏi người.
     Đầu Vân nằm ở 59,3% bề ngang ảnh: dịch chừng đó để người đứng giữa khung. */
  transform: translateX(-59.3%);
}

.portrait--team-thang .portrait__img {
  height: 101.7%;
}

.portrait--team-thien .portrait__img {
  height: 100.7%;
}

.person__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 22px;
}

.person__name {
  font: 400 26px/1.2 var(--serif);
}

.person__role {
  font: 600 12px/1.35 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey);
}

.person__credits li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgb(255 247 226 / 0.82);
}

.person__credits li + li {
  margin-top: 10px;
}

.person__credits li::before {
  content: "·";
  position: absolute;
  left: 2px;
}

/* ---------- 12 Workshop ---------- */

.ws {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px 290px;
  gap: 20px;
}

.ws__photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- 13 Liên hệ ---------- */

.contact {
  padding-top: 140px;
  text-align: center;
}

.contact .wrap {
  align-items: center;
  gap: 28px;
}

.contact__title {
  max-width: 1000px;
  font: 300 80px/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--honey-soft);
  text-wrap: balance;
}

.contact__intro {
  max-width: 640px;
  font-size: 18px;
  color: rgb(255 247 226 / 0.9);
}

.contact__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  padding-top: 28px;
  font-style: normal;
  text-align: left;
}

.contact__cards div {
  padding: 24px;
  border-radius: var(--radius);
  background: rgb(13 8 5 / 0.25);
}

.contact__cards h3 {
  margin-bottom: 10px;
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
}

.contact__cards p {
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact__cards a {
  text-decoration-color: rgb(255 247 226 / 0.4);
  text-underline-offset: 3px;
}

.contact__cards a:hover {
  color: var(--honey);
}

/* ---------- 14 Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 36px var(--pad-x);
  background: var(--black);
  font-size: 13px;
  color: rgb(255 247 226 / 0.65);
}

.site-footer .logo {
  width: 93px;
}

/* =========================================================
   Menu thu gọn: từ 1180px trở xuống (Figma Tablet/Mobile dùng nút MENU)
   ========================================================= */
@media (max-width: 1179px) {
  .site-header__menu {
    display: inline-flex;
  }

  .site-header__contact {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgb(255 247 226 / 0.16);
    border-radius: 18px;
    background: var(--black);
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
    display: none;
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__links a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
  }

  .site-nav__links a:hover {
    background: rgb(255 247 226 / 0.06);
  }

  .site-nav__links .site-nav__contact {
    display: block;
  }

  .site-nav__links .site-nav__contact a {
    color: var(--honey);
  }
}

/* Mục Liên hệ trong menu chỉ cần khi nút CONTACT bị thu vào menu. */
.site-nav__contact {
  display: none;
}

/* =========================================================
   Tablet: 700–1099px (khung Figma 834)
   ========================================================= */
@media (max-width: 1099px) {
  :root {
    --pad-x: 48px;
    --pad-y: 96px;
    --gap: 44px;
  }

  .site-header {
    padding: 18px 32px;
  }

  .logo {
    width: 84px;
  }

  .hero {
    min-height: 960px;
    padding: 190px var(--pad-x) 48px;
  }

  .hero__title {
    font-size: 116px;
  }

  .hero__subtitle {
    font-size: 36px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 72px;
  }

  .fact {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding-top: 16px;
  }

  .fact dd {
    max-width: none;
  }

  .h2 {
    font-size: 48px;
  }

  .sec--roast .h2 {
    font-size: 60px;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .sec-head__intro {
    max-width: 600px;
  }

  .about,
  .idea,
  .farms {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about__photo img {
    height: 460px;
  }

  .about__text {
    max-width: none;
    margin-top: 8px;
  }

  .about__lead {
    font-size: 40px;
  }

  .goals,
  .capacity,
  .qc,
  .scale__list,
  .ways,
  .steps,
  .codes,
  .range,
  .people,
  .certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goals {
    row-gap: 20px;
  }

  .capacity,
  .qc {
    row-gap: 20px;
  }

  .award-photos {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }

  .award-photos img {
    height: 400px;
  }

  .cert__img {
    height: 240px;
  }

  .idea__body {
    max-width: none;
  }

  .posters {
    gap: 16px;
  }

  .poster {
    height: 380px;
  }

  .poster figcaption {
    left: 20px;
    bottom: 22px;
    font-size: 26px;
  }

  .scale__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cupnote {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legend {
    flex-direction: column;
    gap: 20px;
  }

  .code {
    min-height: 152px;
  }

  .step {
    min-height: 227px;
  }

  .roasters__head {
    flex-direction: column;
    gap: 20px;
  }

  .ratio__big {
    font-size: 104px;
  }

  .why-adds {
    gap: 20px;
  }

  .rd__path {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rd__path li {
    flex: none;
  }

  .rd__path li + li {
    margin-left: 0;
  }

  .rd__path li + li::before {
    display: none;
  }

  .bags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
    column-gap: 12px;
  }

  .bag__img {
    height: 190px;
  }

  .farms__photos {
    height: 440px;
  }

  .farms__farmer img {
    width: 420px;
    height: 440px;
  }

  .farms__cherries {
    left: auto;
    right: 0;
    top: 140px;
    width: 300px;
    height: 300px;
    border: 0;
  }

  .farms__list {
    margin-top: 20px;
  }

  .portrait {
    height: 300px;
  }

  /* Tablet: ảnh workshop thành dải cuộn ngang như khung Figma 834. */
  .ws {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .ws__photo {
    flex: none;
    scroll-snap-align: start;
  }

  .ws__photo--1 {
    width: 480px;
  }

  .ws__photo--2,
  .ws__photo--3 {
    width: 220px;
  }

  .ws__photo img {
    height: 320px;
  }

  .contact {
    padding-top: 96px;
  }

  .contact__title {
    font-size: 60px;
  }

  .contact__cards div {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* =========================================================
   Mobile: < 700px (khung Figma 390)
   ========================================================= */
@media (max-width: 699px) {
  :root {
    --pad-x: 24px;
    --pad-y: 72px;
    --gap: 36px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 18px 20px;
    gap: 12px;
  }

  .site-header.is-solid {
    padding-block: 10px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .lang-switch button {
    min-width: 36px;
    padding: 0 8px;
  }

  .hero {
    min-height: 780px;
    padding: 120px var(--pad-x) 32px;
  }

  .hero__content {
    gap: 24px;
  }

  .badge {
    font-size: 11px;
    text-transform: none;
    padding: 10px 18px 10px 16px;
  }

  .badge__long {
    display: none;
  }

  .badge__short {
    display: inline;
  }

  .hero__kicker {
    font-size: 11px;
  }

  .hero__title {
    font-size: 62px;
  }

  .hero__subtitle {
    font-size: 24px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__facts {
    margin-top: 48px;
  }

  .fact {
    display: block;
    padding-top: 12px;
  }

  .fact dd {
    font-size: 15px;
  }

  .h2 {
    font-size: 36px;
  }

  .sec--roast .h2 {
    font-size: 44px;
  }

  .about__photo img {
    height: 315px;
  }

  .about__lead {
    font-size: 34px;
  }

  .paths,
  .qc,
  .scale__list,
  .ways,
  .steps,
  .codes,
  .range,
  .people,
  .certs,
  .posters,
  .why-adds,
  .contact__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .paths {
    gap: 16px;
  }

  .path {
    padding: 24px;
  }

  .goals {
    gap: 16px 12px;
  }

  .goals__n {
    font-size: 34px;
  }

  .quote {
    padding-left: 24px;
  }

  .quote p {
    font-size: 24px;
  }

  .award-photos {
    grid-template-columns: minmax(0, 1fr);
  }

  .award-photos img {
    height: 246px;
  }

  .cert__img {
    height: 220px;
  }

  .capacity dt {
    font-size: 36px;
  }

  .poster {
    height: 300px;
  }

  .poster figcaption {
    font-size: 30px;
  }

  .scale__head h3 {
    font-size: 26px;
  }

  .cupnote {
    padding: 24px;
  }

  .code {
    padding: 24px;
  }

  .code__name {
    font-size: 28px;
  }

  .ratio {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ratio__big {
    font-size: 96px;
  }

  .why,
  .adds {
    padding: 28px 24px;
  }

  .rd h3 {
    font-size: 24px;
  }

  .coffee {
    padding: 28px;
  }

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

  .bag__img {
    height: 190px;
  }

  .bag h4,
  .bag p {
    padding-inline: 12px;
  }

  .bag__name {
    font-size: 18px;
  }

  .farms__photos {
    height: auto;
    aspect-ratio: 342 / 420;
  }

  .farms__farmer img {
    width: 76%;
    height: auto;
    aspect-ratio: 260 / 340;
  }

  .farms__cherries {
    top: 50%;
    width: 50%;
    height: 50%;
    border: 6px solid var(--forest);
  }

  .farm h3 {
    font-size: 22px;
  }

  .portrait {
    height: 200px;
  }

  .ws {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .ws__photo--1,
  .ws__photo--2,
  .ws__photo--3 {
    width: auto;
  }

  .ws__photo img {
    height: 246px;
  }

  .contact {
    padding-top: 72px;
  }

  .contact__title {
    font-size: 44px;
  }

  .contact__ctas {
    gap: 12px;
  }

  .contact__cards {
    gap: 16px;
    padding-top: 8px;
  }
}

/* ---------- Nút lên đầu trang ---------- */

.to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--honey);
  color: var(--black);
  box-shadow: 0 6px 20px rgb(13 8 5 / 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s,
    background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--honey-soft);
}

.to-top:focus-visible {
  outline-color: var(--parch);
}

@media (max-width: 699px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
