:root {
  --cream: #f8f3ea;
  --paper: #fffaf2;
  --ink: #231915;
  --muted: #695f57;
  --coffee: #5c3826;
  --caramel: #c77b3b;
  --leaf: #456b4f;
  --line: #e5d8c6;
  --shadow: 0 24px 60px rgba(45, 30, 18, 0.12);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--ink); background: var(--cream); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px); background: rgba(248, 243, 234, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
  transition: transform 200ms ease, background 180ms ease, box-shadow 180ms ease;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--coffee); }
.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .section-heading a, .card-footer a, .table-actions a { color: var(--caramel); }
.site-header.header-hidden {
  transform: translateY(-105%);
  box-shadow: none;
}

.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: calc(100vh - 80px); padding: clamp(40px, 7vw, 92px) clamp(20px, 5vw, 72px); }
.hero-copy h1, .page-hero h1, .detail-hero h1 { margin: 0; font-family: Inter, Arial, sans-serif; font-size: clamp(42px, 6vw, 86px); line-height: 0.98; }
.lead, .page-hero p, .detail-hero p, .intro-grid p, .split p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.eyebrow { margin: 0 0 14px; color: var(--leaf); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-actions, .admin-actions, .table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; cursor: pointer; }
.button,
button {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}
.button.primary { color: #fff; background: var(--coffee); }
.button.secondary { color: #fff; background: var(--leaf); }
.button.ghost { border-color: var(--line); color: var(--muted); background: transparent; }
.hero-media img, .split img, .detail-hero img { width: 100%; height: min(72vh, 680px); object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }

.section { padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 72px); }
.intro-grid, .split, .detail-hero, .form-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
h2 { margin: 0 0 18px; font-family: Inter, Arial, sans-serif; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(45, 30, 18, 0.07); }
.course-card img { width: 100%; height: 250px; object-fit: cover; }
.course-body { display: grid; gap: 14px; padding: 20px; }
.meta-row, .card-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.course-body h3 { margin: 0; font-size: 22px; }
.course-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.page-hero { padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 72px) 34px; max-width: 980px; }
.page-hero.compact { max-width: 760px; }
.detail-hero { padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px); }
.price-pill { display: inline-flex; margin: 8px 0 20px; padding: 10px 14px; border-radius: 999px; color: var(--coffee); background: #f0dfc8; font-weight: 800; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.55; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--leaf); font-weight: 900; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote-grid article, .contact-panel, .form-card, .admin-table-wrap, .inquiry-list article { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(45, 30, 18, 0.06); }
.quote-grid article { padding: 22px; }
.quote-grid h3, .contact-panel h2 { margin-top: 0; }
.quote-grid p, .contact-panel p { color: var(--muted); line-height: 1.7; }
.form-card { display: grid; gap: 16px; padding: 24px; }
.screen-reader-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card.narrow { width: min(440px, calc(100vw - 40px)); }
label { display: grid; gap: 8px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; color: var(--ink); background: #fff; font: inherit; }
textarea { resize: vertical; }
.time-select {
  min-height: 50px;
  color: var(--coffee);
  border-color: rgba(74, 44, 31, 0.22);
  background:
    linear-gradient(180deg, #fffaf2, #fff3df);
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}
.time-select:focus {
  outline: 2px solid rgba(232, 185, 35, 0.38);
  outline-offset: 2px;
  border-color: var(--caramel);
}
.contact-panel { align-self: start; padding: 28px; }
.quick-book-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.quick-book-button {
  width: 100%;
  color: #fff;
  border: 0;
  text-align: center;
}
.whatsapp-quick-book { background: #1f8f4a; }
.zalo-quick-book { background: #0068ff; }
.quick-book-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74, 44, 31, 0.16);
}
.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 42px clamp(20px, 5vw, 72px); color: #efe5d9; background: var(--coffee); }
.footer p { color: #d7c8bb; line-height: 1.65; }
.flash-wrap { position: fixed; right: 20px; top: 86px; z-index: 20; display: grid; gap: 10px; }
.flash { padding: 12px 16px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flash.success { border-color: #b8d7be; }
.flash.error { border-color: #e5a1a1; }
.admin-auth, .admin-shell { padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 72px); }
.admin-auth { display: grid; place-items: center; min-height: 70vh; }
.two-factor-qr {
  display: grid;
  place-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.two-factor-qr img {
  width: min(240px, 70vw);
  height: auto;
  image-rendering: pixelated;
}
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading h1 { margin: 0; }
.admin-actions {
  gap: 10px;
}
.admin-actions .button {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(74, 44, 31, 0.14);
}
.admin-actions .button.secondary {
  color: #1f1309;
  border-color: #d9a80f;
  background: #e8b923;
}
.admin-actions .button.secondary:hover {
  background: #f3c943;
  transform: translateY(-1px);
}
.admin-actions .button.ghost {
  color: #fff;
  border-color: #4a2c1f;
  background: #4a2c1f;
}

.booking-actions.modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.booking-actions.modal-actions .button,
.booking-actions.modal-actions form .button {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .booking-actions.modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final admin typography override */
.admin-shell,
.admin-auth {
  font-size: 16px;
  line-height: 1.5;
}

.admin-shell .eyebrow,
.admin-auth .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.admin-heading {
  margin-bottom: 18px;
}

.admin-heading h1 {
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.12;
}

.admin-heading h2,
.admin-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.18;
}

.admin-section {
  margin-top: 32px;
}

.admin-section + .admin-section {
  margin-top: 34px;
}

.admin-table-wrap {
  border-radius: 8px;
}

.admin-table,
.inquiry-table {
  min-width: 980px;
  font-size: 16px;
  line-height: 1.45;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
}

.admin-table th {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-table td {
  color: var(--ink);
  font-weight: 650;
}

.admin-table td:first-child,
.inquiry-table td:nth-child(2) {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.inquiry-table td,
.course-row td {
  vertical-align: middle;
}

.pagination-summary,
.page-link {
  font-size: 15px;
  line-height: 1.3;
}

.pagination-bar {
  margin-top: 18px;
}

.section-picker select {
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}

.content-editor {
  gap: 14px;
  padding: 22px;
}

.content-editor label,
.admin-form label,
.language-panel label {
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.35;
}

.content-editor textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  font-size: 15px;
  line-height: 1.45;
}

.modal-card {
  font-size: 16px;
  line-height: 1.5;
}

.modal-card h2,
.course-modal-head h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.18;
}

.modal-detail-list {
  font-size: 15px;
}

.modal-detail-list dt {
  font-size: 13px;
  line-height: 1.3;
}

.modal-detail-list dd {
  color: var(--ink);
  font-weight: 700;
}

.admin-form,
.language-panel {
  font-size: 15px;
}

@media (max-width: 900px) {
  .admin-heading.compact-heading {
    gap: 12px;
  }

  .section-picker {
    width: 100%;
    min-width: 0;
  }
}

.admin-user-create-grid {
  display: grid;
  gap: 18px;
}

.admin-user-create h3 {
  margin: 0;
}

.user-table td:first-child {
  display: grid;
  gap: 4px;
}

.user-table td:first-child span {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-fields,
.admin-user-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-fields {
  display: grid;
  gap: 14px;
}

.reset-2fa-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reset-2fa-form p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.user-modal-card {
  width: min(760px, 100%);
}

.checkbox-row {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.checkbox-row input {
  width: auto;
}

@media (max-width: 900px) {
  .admin-user-fields,
  .admin-user-create-grid {
    grid-template-columns: 1fr;
  }
}

/* Final journey card layout: no overlapping badge/text */
.journey-swiper .journey-card {
  position: relative;
  display: grid;
  grid-template-rows: 46px minmax(56px, auto) 30px 1fr;
  gap: 12px;
  min-height: 340px;
  padding: 26px;
  border-color: rgba(199, 123, 59, 0.18);
  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  box-shadow: 0 16px 34px rgba(74, 44, 31, 0.08);
}

.journey-swiper .journey-card > span {
  position: static;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #4a2c1f;
  background: #f2cf7a;
  box-shadow: 0 10px 20px rgba(199, 123, 59, 0.18);
  font-size: 15px;
  font-weight: 900;
}

.journey-swiper .journey-card > h3 {
  align-self: start;
  margin: 0;
  color: var(--coffee);
  font-size: 19px;
  line-height: 1.24;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-swiper .journey-card > strong {
  align-self: center;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #34533c;
  background: #e4eedb;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.journey-swiper .journey-card > p {
  margin: 0;
  color: #5f554d;
  font-size: 16px;
  line-height: 1.58;
}

@media (max-width: 640px) {
  .journey-swiper .journey-card {
    grid-template-rows: 44px auto 30px 1fr;
    min-height: 340px;
    padding: 22px;
  }

  .journey-swiper .journey-card > span {
    width: 44px;
    height: 44px;
  }

  .journey-swiper .journey-card > h3 {
    font-size: 18px;
    line-height: 1.22;
  }
}

/* Clean slide card text rhythm */
.coffee-type-card {
  grid-template-rows: 116px 44px 1fr;
  gap: 16px;
  min-height: 440px;
  padding: 26px 24px 28px;
  text-align: left;
}

.coffee-type-card img {
  justify-self: center;
}

.coffee-type-card h3 {
  justify-content: center;
  text-align: center;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.coffee-type-card p {
  width: 100%;
  max-width: 36ch;
  margin: 0 auto;
  color: #5f554d;
  font-size: 15.5px;
  line-height: 1.58;
  text-align: left;
}

.more-class-swiper article {
  display: grid;
  grid-template-rows: 42px 1fr;
  gap: 14px;
  min-height: 350px;
}

.more-class-swiper h3 {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.more-class-swiper p,
.more-class-swiper .check-list {
  align-self: start;
}

.more-class-swiper p {
  color: #5f554d;
  font-size: 17px;
  line-height: 1.62;
}

.more-class-swiper .check-list {
  gap: 11px;
}

.more-class-swiper .check-list li {
  color: #5f554d;
  font-size: 16px;
  line-height: 1.5;
}

.journey-card {
  position: relative;
  grid-template-rows: minmax(58px, auto) 30px 1fr;
  gap: 12px;
  min-height: 340px;
  padding: 72px 26px 26px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.96), #fff);
}

.journey-card h3 {
  align-self: start;
  max-width: 100%;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-card strong {
  align-self: center;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--coffee);
  background: rgba(232, 185, 35, 0.24);
  font-size: 13px;
  line-height: 1;
}

.journey-card p {
  color: #5f554d;
  font-size: 16px;
  line-height: 1.58;
}

.journey-card > span {
  position: absolute;
  top: 24px;
  left: 26px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coffee);
  box-shadow: 0 10px 20px rgba(74, 44, 31, 0.18);
  font-size: 15px;
}

.journey-card > h3 {
  padding-left: 0;
}

@media (max-width: 640px) {
  .coffee-type-card {
    min-height: 420px;
    padding: 24px 22px;
  }

  .coffee-type-card p,
  .journey-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .more-class-swiper article,
  .journey-card {
    min-height: 320px;
  }

  .journey-card {
    grid-template-rows: auto 30px 1fr;
    padding: 68px 22px 22px;
  }

  .journey-card h3 {
    font-size: 18px;
    -webkit-line-clamp: 2;
  }
}

/* Admin typography and spacing normalization */
.admin-shell,
.admin-auth {
  font-size: 16px;
  line-height: 1.5;
}

.admin-shell .eyebrow,
.admin-auth .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.admin-heading {
  margin-bottom: 18px;
}

.admin-heading h1 {
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.12;
}

.admin-heading h2,
.admin-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.18;
}

.admin-section {
  margin-top: 32px;
}

.admin-section + .admin-section {
  margin-top: 34px;
}

.admin-table-wrap {
  border-radius: 8px;
}

.admin-table {
  font-size: 16px;
  line-height: 1.45;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
}

.admin-table th {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-table td {
  color: var(--ink);
  font-weight: 650;
}

.admin-table td:first-child,
.inquiry-table td:nth-child(2) {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.inquiry-table,
.admin-table {
  min-width: 980px;
}

.inquiry-table td,
.course-row td {
  vertical-align: middle;
}

.pagination-summary {
  font-size: 15px;
  line-height: 1.3;
}

.pagination-bar {
  margin-top: 18px;
}

.page-link {
  font-size: 15px;
}

.section-picker select {
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}

.content-editor {
  gap: 14px;
  padding: 22px;
}

.content-editor label {
  gap: 7px;
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.35;
}

.content-editor textarea {
  min-height: 48px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.48;
}

.modal-card {
  font-size: 16px;
  line-height: 1.5;
}

.modal-card h2,
.course-modal-head h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.18;
}

.modal-detail-list {
  font-size: 15px;
}

.modal-detail-list dt {
  font-size: 13px;
  line-height: 1.3;
}

.modal-detail-list dd {
  color: var(--ink);
  font-weight: 700;
}

.admin-form,
.language-panel {
  font-size: 15px;
}

.admin-form label,
.language-panel label {
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.35;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-heading.compact-heading {
    gap: 12px;
  }

  .section-picker {
    width: 100%;
    min-width: 0;
  }
}

/* Final modal action layout override */
.booking-actions.modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.booking-actions.modal-actions .button,
.booking-actions.modal-actions form .button {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .booking-actions.modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.booking-actions.modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.booking-actions.modal-actions .button,
.booking-actions.modal-actions form .button {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 760px) {
  .booking-actions.modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-actions .button.ghost:hover {
  background: #2f1b13;
  transform: translateY(-1px);
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.course-row { cursor: pointer; transition: background 160ms ease; }
.course-row:hover { background: rgba(232, 185, 35, 0.14); }
.table-actions form { margin: 0; }
.table-actions button { border: 0; padding: 0; color: #a3332f; background: transparent; cursor: pointer; font: inherit; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #245232;
  background: #dcefdc;
  font-size: 12px;
  font-weight: 900;
}
.status-pill.inactive {
  color: #7a342f;
  background: #f4d5d2;
}
.button.warning {
  color: #1f1309;
  border-color: #d9a80f;
  background: #e8b923;
}
.button.success {
  color: #fff;
  border-color: #2f6b3c;
  background: #3f8f50;
}
.button.danger {
  color: #fff;
  border-color: #9d2d25;
  background: #b83a32;
}
.course-modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
}
.course-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.course-modal-head h2 {
  margin-bottom: 0;
}
.course-modal-image {
  width: 100%;
  height: 170px;
  margin: 18px 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.course-modal-languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.course-modal-languages section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}
.course-modal-languages h3 {
  margin: 0 0 12px;
  color: var(--coffee);
}
.modal-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}
.modal-detail-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.modal-detail-list dt {
  color: var(--muted);
  font-weight: 800;
}
.modal-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.modal-actions form { margin: 0; }
.modal-actions .button,
.modal-actions form .button {
  width: 100%;
  padding: 0 14px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .course-modal-head,
  .course-modal-languages,
  .modal-detail-list div {
    grid-template-columns: 1fr;
  }

  .course-modal-head {
    display: grid;
  }

  .modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-section { margin-top: 36px; }
.inquiry-list { display: grid; gap: 14px; }
.inquiry-list article { display: grid; gap: 6px; padding: 18px; }
.inquiry-list span, .inquiry-list small { color: var(--muted); }
.compact-heading { margin-bottom: 14px; }
.pagination-summary { color: var(--muted); font-size: 14px; font-weight: 800; }
.pagination-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 800;
}
.page-link.active {
  color: #fff;
  border-color: var(--coffee);
  background: var(--coffee);
}
.section-picker { min-width: 260px; }
.admin-help-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 185, 35, 0.12);
  color: var(--muted);
  line-height: 1.5;
}
.admin-help-box strong {
  display: block;
  color: var(--ink);
}
.content-editor { max-height: 620px; overflow: auto; }
.content-editor label { gap: 6px; color: var(--muted); font-size: 13px; }
.content-editor textarea { color: var(--ink); font-size: 14px; line-height: 1.45; }
.inquiry-table { min-width: 1180px; }
.inquiry-table td { vertical-align: top; }
.inquiry-row { cursor: pointer; transition: background 160ms ease; }
.inquiry-row:hover { background: rgba(232, 185, 35, 0.14); }
.inquiry-modal-card { width: min(620px, 100%); }
.modal-actions.single-action {
  grid-template-columns: minmax(0, 1fr);
}
#inquiriesSection.loading {
  opacity: 0.58;
  pointer-events: none;
}
#bookingFlow.loading {
  opacity: 0.58;
  pointer-events: none;
}
#contentEditorSection.loading {
  opacity: 0.58;
  pointer-events: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 25, 21, 0.46);
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 10px; font-size: 24px; }
.modal-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

@media (max-width: 900px) {
  .site-header, .nav, .section-heading, .admin-heading { align-items: flex-start; flex-direction: column; }
  .hero, .intro-grid, .split, .detail-hero, .form-section, .two-columns, .footer { grid-template-columns: 1fr; }
  .course-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-media img, .split img, .detail-hero img { height: 360px; }
}
@media (max-width: 560px) {
  .nav { width: 100%; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-copy h1, .page-hero h1, .detail-hero h1 { font-size: 40px; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--coffee);
  background: var(--paper);
  font-weight: 800;
}

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

.language-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.language-panel h2 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
}

@media (max-width: 900px) {
  .language-edit-grid {
    grid-template-columns: 1fr;
  }
}

.booking-section {
  display: grid;
  gap: 24px;
}
.booking-inline-flash {
  display: grid;
  gap: 10px;
}
.booking-inline-flash .flash {
  position: static;
  box-shadow: none;
}

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

.booking-steps span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 800;
  font-size: 13px;
}

.booking-steps .active {
  color: #fff;
  border-color: var(--coffee);
  background: var(--coffee);
}

.booking-grid {
  padding: 0;
}

.total-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}

.total-preview strong {
  color: var(--coffee);
}

.booking-card {
  max-width: 860px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(45, 30, 18, 0.06);
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
  line-height: 1.6;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.booking-actions form {
  margin: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.payment-form {
  display: grid;
  gap: 14px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-option input {
  width: auto;
}

.qr-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.fake-qr {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: 10px solid #111;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 38px 38px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 38px 38px,
    #fff;
}

.fake-qr span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #fff;
  background: var(--coffee);
  font-weight: 900;
}

.complete-card {
  text-align: left;
}

@media (max-width: 900px) {
  .booking-steps,
  .payment-layout,
  .total-preview {
    grid-template-columns: 1fr;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.swiper {
  width: 100%;
}

.classes-swiper,
.testimonials-swiper {
  padding: 4px 4px 42px;
}

.classes-swiper .swiper-slide,
.testimonials-swiper .swiper-slide {
  height: auto;
}

.classes-swiper .course-card {
  height: 100%;
}

.slider-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.slider-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--coffee);
  background: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.slider-button:hover {
  color: #fff;
  border-color: var(--coffee);
  background: var(--coffee);
}

.swiper-pagination-bullet-active {
  background: var(--coffee);
}

.testimonial-card {
  display: grid;
  align-content: space-between;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(45, 30, 18, 0.06);
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  margin-top: 22px;
  color: var(--ink);
}

.testimonial-card span {
  margin-top: 4px;
  color: var(--leaf);
  font-weight: 800;
  font-size: 13px;
}

.activity-section {
  background: #efe8dd;
}

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

.stats-grid article {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-grid strong {
  align-self: end;
  color: var(--coffee);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.activity-ticker {
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coffee);
}

.activity-ticker .swiper-slide {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  padding: 0 20px;
  color: #fff;
}

.activity-ticker p {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.live-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ed681;
  box-shadow: 0 0 0 6px rgba(126, 214, 129, 0.18);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .activity-ticker,
  .activity-ticker .swiper-slide {
    height: 92px;
  }
}

/* Tighter home rhythm */
.section {
  padding-top: clamp(34px, 4.6vw, 58px);
  padding-bottom: clamp(34px, 4.6vw, 58px);
}

.hero {
  min-height: auto;
  padding-top: clamp(34px, 5vw, 70px);
  padding-bottom: clamp(34px, 5vw, 70px);
}

.page-hero,
.detail-hero {
  padding-top: clamp(34px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 18px;
}

.classes-swiper,
.testimonials-swiper {
  padding-bottom: 30px;
}

/* Messenger-style testimonial bubbles */
.testimonial-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 156px;
  padding: 18px 18px 18px 74px;
  border: 1px solid #d8e6dc;
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 30, 18, 0.06);
}

.testimonial-card::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  content: "\201C";
  color: #fff;
  background: var(--leaf);
  font-family: Inter, Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.testimonial-card::after {
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  content: "";
  background: #fff;
  border-left: 1px solid #d8e6dc;
  border-bottom: 1px solid #d8e6dc;
  transform: rotate(45deg);
}

.testimonial-card p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.testimonial-card strong {
  margin-top: 14px;
  font-size: 14px;
}

.testimonial-card span {
  margin-top: 2px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .testimonial-card {
    min-height: 148px;
    padding-left: 68px;
  }
}

/* Compact activity stats typography */
.stats-grid {
  grid-template-columns: 0.9fr 0.9fr 1.4fr;
}

.stats-grid article {
  min-height: 104px;
  padding: 16px 18px;
}

.stats-grid span {
  font-size: 12px;
  line-height: 1.35;
}

.stats-grid strong {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Warm Heritage Brew visual direction */
:root {
  --cream: #F8F1E9;
  --paper: #FFF9F0;
  --ink: #3C2F2F;
  --muted: #76685C;
  --coffee: #4A2C1F;
  --caramel: #E8B923;
  --leaf: #8A9A5B;
  --milk: #D4B8A1;
  --line: #E7D8C9;
  --shadow: 0 24px 70px rgba(74, 44, 31, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #F8F1E9;
  font-size: 17px;
}

.site-header {
  padding: 14px clamp(18px, 5vw, 70px);
  background: rgba(248, 241, 233, 0.9);
  border-bottom: 1px solid rgba(74, 44, 31, 0.1);
}

.brand {
  color: var(--coffee);
  font-size: 17px;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  color: var(--coffee);
  background: var(--caramel);
  font-size: 14px;
}

.nav {
  gap: 18px;
  font-size: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--coffee) !important;
  background: var(--caramel);
  font-weight: 900;
}

.lang-switch {
  height: 34px;
  border-color: rgba(74, 44, 31, 0.16);
  background: rgba(255, 249, 240, 0.8);
}

.heritage-hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(90px, 12vw, 150px) clamp(20px, 6vw, 86px) clamp(66px, 9vw, 110px);
  overflow: hidden;
  color: #fff;
  background: var(--coffee);
}

.heritage-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(60, 47, 47, 0.88), rgba(74, 44, 31, 0.55) 48%, rgba(74, 44, 31, 0.18));
}

.heritage-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.heritage-hero .eyebrow {
  color: var(--caramel);
}

.heritage-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(52px, 8vw, 108px);
  letter-spacing: 0;
}

.heritage-hero .lead {
  max-width: 680px;
  color: rgba(255, 249, 240, 0.92);
  font-size: clamp(20px, 2.3vw, 27px);
}

.button {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
}

.button.primary,
.hero-cta {
  color: var(--coffee);
  background: var(--caramel);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 70px);
}

h2 {
  max-width: 900px;
  font-size: clamp(34px, 4.4vw, 60px);
}

.lead,
.page-hero p,
.detail-hero p,
.intro-grid p,
.split p {
  font-size: clamp(18px, 1.5vw, 21px);
}

.eyebrow {
  color: var(--leaf);
}

.heritage-split {
  background: linear-gradient(180deg, rgba(212, 184, 161, 0.18), rgba(248, 241, 233, 0));
}

.heritage-split img,
.detail-hero img {
  border-radius: 10px;
}

.why-section {
  background: #FFF9F0;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.centered-heading h2 {
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.why-grid article,
.journey-card {
  display: grid;
  grid-template-rows: 42px 34px 24px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 44, 31, 0.06);
}

.why-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(232, 185, 35, 0.3);
  font-weight: 900;
}

.journey-card strong {
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
}

.why-grid h3,
.course-body h3 {
  margin: 0;
  color: var(--coffee);
}

.why-grid h3 {
  font-size: 18px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-card {
  border-radius: 10px;
  background: #fff;
  border-color: rgba(74, 44, 31, 0.1);
}

.course-card img {
  height: 300px;
}

.course-body {
  padding: 22px;
}

.card-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--coffee);
  background: rgba(232, 185, 35, 0.28);
  font-weight: 900;
}

.course-card-actions,
.detail-book-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-footer .whatsapp-course-link,
.whatsapp-button {
  color: #fff;
  border-color: #1f8f4a;
  background: #1f8f4a;
}

.card-footer {
  align-items: center;
}

.card-footer .whatsapp-course-link {
  min-height: 38px;
}

.gallery-section {
  background: #F1E7DB;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 180px;
  gap: 18px;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(74, 44, 31, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 28px 64px rgba(74, 44, 31, 0.22);
}

.gallery-portrait {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-feature {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-detail {
  grid-row: span 2;
}

.gallery-process {
  aspect-ratio: 2 / 3;
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.coffee-learn-section {
  background: #FFF9F0;
}

.coffee-swiper,
.more-class-swiper,
.journey-swiper {
  padding-bottom: 38px;
}

.coffee-type-card {
  display: grid;
  grid-template-rows: 112px 56px 1fr;
  gap: 14px;
  min-height: 430px;
  padding: 24px;
  border: 1px solid rgba(74, 44, 31, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 44, 31, 0.06);
  text-align: center;
}

.coffee-type-card img {
  width: 112px;
  height: 112px;
  justify-self: center;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(232, 185, 35, 0.35);
}

.coffee-type-card h3 {
  display: grid;
  align-items: center;
  margin: 0;
  color: var(--coffee);
  font-size: 20px;
  line-height: 1.2;
}

.coffee-type-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.more-class-section {
  background: linear-gradient(180deg, rgba(212, 184, 161, 0.18), rgba(248, 241, 233, 0));
}

.more-class-swiper article {
  padding: clamp(22px, 3vw, 32px);
  min-height: 360px;
  border: 1px solid rgba(74, 44, 31, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 44, 31, 0.06);
}

.more-class-swiper h3 {
  margin: 0 0 16px;
  color: var(--coffee);
  font-size: clamp(22px, 2vw, 28px);
}

.more-class-swiper p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.testimonial-card {
  min-height: 178px;
  padding: 18px 18px 18px 86px;
  border-radius: 22px 22px 22px 8px;
}

.testimonial-card::before {
  display: none;
}

.guest-avatar {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: var(--coffee);
  font-weight: 900;
}

.guest-avatar span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}

.guest-meta strong,
.guest-meta span {
  display: block;
}

.footer.site-footer-rich {
  grid-template-columns: 0.9fr 0.8fr 1.1fr;
  gap: 28px;
  color: #FFF9F0;
  background: var(--coffee);
}

.footer-map iframe {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 10px;
  filter: sepia(0.12) saturate(0.85);
}

.footer-social {
  color: var(--caramel) !important;
  font-weight: 900;
}

.contact-widget {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  top: 50%;
  z-index: 45;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.contact-toggle,
.contact-option {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 28px rgba(35, 25, 21, 0.22);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.contact-toggle {
  background: var(--coffee);
}

.contact-options {
  display: none;
  gap: 10px;
}

.contact-widget.expanded .contact-options {
  display: grid;
}

.contact-toggle img,
.contact-option img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.whatsapp-option { background: #1f8f4a; }
.zalo-option { background: #0068ff; }
.instagram-option { background: #c13584; }
.facebook-option { background: #1877f2; }
.close-option { background: #6d6259; }

.bottom-book-now {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100vw - 36px));
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--caramel);
  box-shadow: 0 16px 38px rgba(35, 25, 21, 0.28);
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav {
    width: 100%;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .why-grid,
  .footer.site-footer-rich {
    grid-template-columns: 1fr 1fr;
  }

  .masonry-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .heritage-hero {
    min-height: 640px;
    padding-top: 110px;
  }

  .heritage-hero h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .why-grid,
  .footer.site-footer-rich,
  .masonry-gallery {
    grid-template-columns: 1fr;
  }

  .process-gallery {
    grid-template-columns: 1fr;
  }

  .why-grid article,
  .journey-card {
    grid-template-rows: auto auto auto auto;
  }

  .why-grid h3 {
    min-height: 0;
    font-size: 15px;
  }

  .masonry-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-portrait,
  .gallery-wide,
  .gallery-feature,
  .gallery-detail,
  .gallery-process {
    width: 100%;
    height: auto;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-wide {
    aspect-ratio: 4 / 3;
  }

  .gallery-item img {
    display: block;
    height: 100%;
  }

  .course-card img {
    height: 260px;
  }

  .contact-widget {
    right: 12px;
    top: auto;
    bottom: 148px;
    transform: none;
  }

  .contact-toggle,
  .contact-option {
    width: 46px;
    height: 46px;
  }

  .bottom-book-now {
    bottom: 12px;
    min-height: 52px;
  }
}

/* Reduce excess carousel card height */
.classes-swiper .swiper-wrapper,
.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

.classes-swiper .swiper-slide,
.testimonials-swiper .swiper-slide {
  height: auto;
  align-self: stretch;
}

.classes-swiper .course-card {
  height: auto;
  min-height: 0;
}

.course-card img {
  height: 230px;
}

.course-body {
  gap: 10px;
  padding: 18px;
}

.course-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.testimonial-card {
  min-height: 0;
  height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.testimonial-card p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.guest-meta strong {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .course-card img {
    height: 220px;
  }
}

/* Tighten workshop section vertical space */
#workshops {
  padding-top: clamp(34px, 4vw, 54px);
  padding-bottom: clamp(18px, 2.5vw, 34px);
}

#workshops .section-heading {
  margin-bottom: 14px;
}

#workshops .classes-swiper {
  padding-top: 0;
  padding-bottom: 20px;
}

#workshops .swiper-pagination {
  bottom: 0;
}

#workshops + .gallery-section,
#workshops + .section {
  padding-top: clamp(28px, 3.5vw, 48px);
}

.classes-swiper .swiper-wrapper {
  align-items: flex-start;
}

/* Let workshop slides shrink to their own card height */
#workshops .swiper,
#workshops .swiper-wrapper,
#workshops .swiper-slide {
  height: auto !important;
}

#workshops .swiper-slide {
  display: flex;
  align-items: flex-start;
}

#workshops .course-card {
  flex: 0 0 auto;
  width: 100%;
}

/* Let testimonial bubbles shrink to content */
.testimonials .swiper,
.testimonials .swiper-wrapper,
.testimonials .swiper-slide {
  height: auto !important;
}

.testimonials .swiper-wrapper {
  align-items: flex-start !important;
}

.testimonials .swiper-slide {
  display: block;
  align-self: flex-start !important;
}

.testimonials .testimonial-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 16px 14px 76px;
}

.testimonials .testimonial-card p {
  min-height: 0 !important;
  margin: 0;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.testimonials .guest-avatar {
  width: 44px;
  height: 44px;
  left: 16px;
  top: 14px;
}

.testimonials .guest-meta strong {
  margin-top: 8px;
}

/* Premium homepage hero */
.premium-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 96px 8vw 72px 11vw;
  overflow: hidden;
  color: #fff;
  background: #1F1309;
}

.hero-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback-image {
  z-index: 0;
  background-image: url("https://bites-brews.com/wp-content/uploads/2025/12/z7314073773353_861ad571aa8d05285cbca62081e61db4.jpg");
  background-size: cover;
  background-position: center;
}

.premium-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 19, 9, 0.56) 0%, rgba(31, 19, 9, 0.44) 46%, rgba(31, 19, 9, 0.58) 100%),
    linear-gradient(90deg, rgba(31, 19, 9, 0.74) 0%, rgba(31, 19, 9, 0.48) 46%, rgba(31, 19, 9, 0.2) 100%);
  transform: translateZ(0);
}

.premium-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin-left: 0;
}

.premium-hero h1 {
  margin: 0;
  color: #FFFFFF;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(68px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subheadline {
  margin: 24px 0 0;
  color: #F5EDE4;
  font-size: clamp(26px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-description {
  max-width: 760px;
  margin: 16px 0 0;
  color: #E8D9C7;
  font-size: 18px;
  line-height: 1.7;
}

.premium-hero .hero-actions {
  margin-top: 34px;
  gap: 16px;
}

.premium-hero .button {
  min-height: 60px;
  border-radius: 8px;
}

.premium-hero .hero-cta {
  padding: 18px 36px;
  color: #1F1309;
  background: #E8B923;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(232, 185, 35, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.premium-hero .hero-cta:hover {
  color: #1F1309;
  transform: scale(1.05);
  box-shadow: 0 24px 60px rgba(232, 185, 35, 0.38);
}

.premium-hero .hero-secondary {
  padding: 16px 30px;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.premium-hero .hero-secondary:hover {
  color: #1F1309;
  background: #FFFFFF;
  transform: translateY(-1px);
}

.trust-bar {
  display: grid;
  gap: 8px;
  margin-top: 46px;
  color: #F5EDE4;
  font-size: 15px;
}

.trust-bar span:first-child {
  color: #E8B923;
  letter-spacing: 0.08em;
}

.trust-bar strong {
  font-weight: 700;
}

@media (max-width: 760px) {
  .premium-hero {
    min-height: 100vh;
    height: 100vh;
    padding: 96px 22px 54px;
    align-items: center;
  }

  .premium-hero .hero-copy {
    max-width: 100%;
  }

  .premium-hero h1 {
    font-size: clamp(42px, 11vw, 48px);
    line-height: 1.05;
  }

  .hero-subheadline {
    font-size: clamp(20px, 5.6vw, 22px);
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.62;
  }

  .premium-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 28px;
  }

  .premium-hero .hero-cta,
  .premium-hero .hero-secondary {
    width: 100%;
    min-height: 58px;
    padding: 16px 22px;
  }

  .trust-bar {
    margin-top: 40px;
    gap: 8px;
    font-size: 14px;
  }
}

.premium-hero .hero-fallback-image {
  z-index: 0;
}

.premium-hero .hero-overlay {
  z-index: 2;
}

.premium-hero .hero-copy {
  z-index: 3;
}

/* Homepage image and fixed-grid refresh */
.premium-hero .hero-fallback-image {
  background-image: url("../images/welcome.jpg");
  background-position: 50% 62%;
}

.focal-image {
  object-position: var(--image-position, 50% 50%);
}

.coffee-learn-section {
  position: relative;
  background:
    linear-gradient(rgba(255, 249, 240, 0.42), rgba(255, 249, 240, 0.5)),
    url("../images/discover/discover_poster.png") center / cover no-repeat;
  background-attachment: fixed;
}

.coffee-learn-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 44, 31, 0.08), transparent 35%, rgba(74, 44, 31, 0.08));
  pointer-events: none;
}

.coffee-learn-section > * {
  position: relative;
  z-index: 1;
}

.coffee-learn-section .eyebrow {
  color: var(--muted);
}

.coffee-card-grid,
.journey-card-grid,
.workshop-level-grid {
  display: grid;
  gap: 24px;
}

.coffee-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coffee-card-grid .coffee-type-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.coffee-card-grid .coffee-type-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  justify-self: stretch;
  object-fit: cover;
  object-position: var(--image-position, 50% 50%);
  border: 0;
  border-radius: 0;
}

.coffee-card-grid .coffee-type-card > div {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.coffee-card-grid .coffee-type-card h3 {
  display: block;
  margin: 0;
  text-align: left;
}

.coffee-card-grid .coffee-type-card p {
  max-width: none;
  margin: 0;
  text-align: left;
}

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

.more-class-grid article {
  display: grid;
  grid-template-rows: auto 220px 1fr;
  gap: 14px;
  min-height: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(74, 44, 31, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 44, 31, 0.06);
}

.more-class-grid h3 {
  margin: 0;
  color: var(--coffee);
  font-size: clamp(22px, 2vw, 28px);
}

.more-class-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.more-class-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.journey-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 0;
}

.workshop-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workshop-level-card {
  overflow: hidden;
  border: 1px solid rgba(74, 44, 31, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 44, 31, 0.08);
}

.workshop-level-card > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: var(--image-position, 50% 50%);
}

.workshop-level-card > div {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 310px;
  padding: 24px;
}

.workshop-level-card h3,
.workshop-level-card p {
  margin: 0;
}

.workshop-level-card h3 {
  color: var(--coffee);
  font-size: 23px;
  line-height: 1.25;
}

.workshop-level-price {
  color: var(--caramel);
  font-size: 18px;
  line-height: 1.2;
}

.workshop-level-card p {
  color: var(--muted);
  line-height: 1.65;
}

.workshop-level-card .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

@media (max-width: 1050px) {
  .coffee-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .more-class-grid,
  .journey-card-grid,
  .workshop-level-grid {
    grid-template-columns: 1fr;
  }

  .workshop-level-card > div {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .coffee-learn-section {
    background:
      linear-gradient(rgba(255, 249, 240, 0.58), rgba(255, 249, 240, 0.64)),
      url("../images/discover/discover_poster.png") center / cover no-repeat;
    background-attachment: scroll;
  }

  .premium-hero .hero-fallback-image {
    background-position: 50% 58%;
  }

  .focal-image,
  .coffee-card-grid .coffee-type-card img,
  .workshop-level-card > img {
    object-position: var(--image-position-mobile, var(--image-position, 50% 50%));
  }

  .coffee-card-grid {
    grid-template-columns: 1fr;
  }

  .coffee-card-grid .coffee-type-card img {
    height: auto;
  }

  .more-class-grid article {
    grid-template-rows: auto 190px 1fr;
  }

  .more-class-image {
    height: 190px;
  }
}

/* Strong admin toolbar buttons */
.admin-actions .button {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(74, 44, 31, 0.16);
}

.admin-actions .button.secondary {
  color: #1f1309;
  border-color: #d9a80f;
  background: #e8b923;
}

.admin-actions .button.ghost {
  color: #fff;
  border-color: #4a2c1f;
  background: #4a2c1f;
}

/* Final override: course modal actions stay in one row on desktop. */
.booking-actions.modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.booking-actions.modal-actions .button,
.booking-actions.modal-actions form .button {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .booking-actions.modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Production admin visual alignment */
.admin-shell,
.admin-auth {
  font-size: 16px;
  line-height: 1.5;
}

.admin-shell .eyebrow,
.admin-auth .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.admin-heading {
  margin-bottom: 18px;
}

.admin-heading h1 {
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.12;
}

.admin-heading h2,
.admin-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.18;
}

.admin-section {
  margin-top: 32px;
}

.admin-section + .admin-section {
  margin-top: 34px;
}

.admin-table,
.inquiry-table {
  min-width: 980px;
  font-size: 16px;
  line-height: 1.45;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
}

.admin-table th {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-table td {
  color: var(--ink);
  font-weight: 650;
}

.admin-table td:first-child,
.inquiry-table td:nth-child(2) {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.inquiry-table td,
.course-row td {
  vertical-align: middle;
}

.pagination-summary,
.page-link {
  font-size: 15px;
  line-height: 1.3;
}

.section-picker select {
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}

.content-editor {
  gap: 14px;
  padding: 22px;
}

.content-editor label,
.admin-form label,
.language-panel label {
  color: var(--coffee);
  font-size: 14px;
  line-height: 1.35;
}

.content-editor textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  font-size: 15px;
  line-height: 1.45;
}

.modal-card {
  font-size: 16px;
  line-height: 1.5;
}

.modal-card h2,
.course-modal-head h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.18;
}

.modal-detail-list {
  font-size: 15px;
}

.modal-detail-list dt {
  font-size: 13px;
  line-height: 1.3;
}

.modal-detail-list dd {
  color: var(--ink);
  font-weight: 700;
}

.admin-form,
.language-panel {
  font-size: 15px;
}

@media (max-width: 900px) {
  .admin-heading.compact-heading {
    gap: 12px;
  }

  .section-picker {
    width: 100%;
    min-width: 0;
  }
}
