/* ===== Design tokens ===== */
:root {
  --red: #c0392b;
  --red-dark: #96271b;
  --gold: #e6a817;
  --green: #2e7d5b;
  --ink: #2a211d;
  --ink-soft: #5b504a;
  --cream: #fbf6ee;
  --cream-2: #f4e9d8;
  --card: #ffffff;
  --line: #ece2d2;
  --shadow: 0 12px 30px rgba(72, 43, 20, 0.10);
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: "Kanit", "Nunito Sans", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 0.6rem;
}

.section { padding: 84px 0; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
  font-family: "Nunito Sans", sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 1rem;
}
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { font-size: 1.5rem; }
.brand-name { font-size: 1.25rem; margin: 0; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-weight: 700; color: var(--ink-soft); }
.nav-links a:hover { color: var(--red); }
.nav-cta { background: var(--red); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(230, 168, 23, 0.25), transparent 60%),
    linear-gradient(180deg, #fff7ea 0%, var(--cream) 100%);
  padding: 90px 0 70px;
}
.hero-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-price-strip {
  display: inline-flex; align-items: center; gap: 22px;
  background: var(--card); border: 1px solid var(--line);
  padding: 16px 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-price-strip strong { font-family: "Kanit", sans-serif; font-size: 1.7rem; color: var(--red); display: block; }
.hero-price-strip span { font-size: 0.9rem; color: var(--ink-soft); }
.hero-price-strip .divider { width: 1px; height: 40px; background: var(--line); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.photo-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--red));
  display: grid; place-items: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
}
.about-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.about-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 8px; }
.about-points li { color: var(--ink-soft); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== Courses ===== */
.courses { background: #fff7ea; }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.course-card.featured { border-color: var(--red); transform: translateY(-6px); }
.course-tag {
  align-self: flex-start; font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; color: #fff;
}
.course-tag.beginner { background: var(--green); }
.course-tag.intermediate { background: var(--gold); color: var(--ink); }
.course-tag.advanced { background: var(--red); }
.course-card ul { padding-left: 18px; margin: 0 0 1rem; color: var(--ink-soft); }
.course-card li { margin-bottom: 4px; }
.course-price { font-family: "Kanit", sans-serif; font-size: 1.9rem; color: var(--red); font-weight: 700; margin: auto 0 14px; }
.course-price span { font-size: 0.9rem; color: var(--ink-soft); font-weight: 400; }

.byo-banner {
  margin-top: 32px; background: var(--card); border: 2px dashed var(--gold);
  border-radius: var(--radius); padding: 26px 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.byo-banner h3 { margin-bottom: 4px; }
.byo-banner p { margin: 0; color: var(--ink-soft); }
.byo-icon { font-size: 3rem; }
.byo-banner .btn { margin-left: auto; }

/* ===== Grocery ===== */
.grocery-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center; }
.grocery-points { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 10px; }
.grocery-points li { color: var(--ink-soft); }
.grocery-price-card {
  background: linear-gradient(160deg, var(--green), #1f5a40);
  color: #fff; border-radius: var(--radius); padding: 32px; text-align: center;
  box-shadow: var(--shadow);
}
.grocery-price-label { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.8rem; opacity: 0.9; margin: 0; }
.grocery-price-amount { font-family: "Kanit", sans-serif; font-size: 3rem; font-weight: 700; margin: 8px 0; }
.grocery-price-amount span { font-size: 1rem; font-weight: 400; opacity: 0.9; }
.grocery-price-note { font-size: 0.95rem; opacity: 0.92; margin: 0; }

/* ===== Reviews (slider) ===== */
.review-slider { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; }
.review-cards {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.review-cards::-webkit-scrollbar { display: none; }
.review-card {
  margin: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.review-nav {
  flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 5;
  display: grid; place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.review-nav:hover { background: var(--red); color: #fff; }
.review-nav:disabled { opacity: 0.35; cursor: default; }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; text-align: center; }
.review-card blockquote {
  margin: 0 0 20px; padding: 0; border: 0;
  color: var(--ink); font-size: 1.02rem; line-height: 1.65;
}
.review-card blockquote::before { content: "\201C"; color: var(--red); font-weight: 700; }
.review-card blockquote::after { content: "\201D"; color: var(--red); font-weight: 700; }
.review-card figcaption {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line);
  text-align: right;
}
.review-person strong { font-weight: 800; color: var(--red); }

/* ===== Booking / Contact ===== */
.booking { background: #fff7ea; }
.contact-card {
  max-width: 460px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow); text-align: center;
}
.contact-icon { font-size: 3rem; line-height: 1; }
.contact-label {
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800;
  font-size: 0.8rem; color: var(--red); margin: 12px 0 4px;
}
.contact-number {
  display: inline-block; font-family: "Kanit", sans-serif; font-weight: 700;
  font-size: 2.2rem; color: var(--ink); margin: 0 0 8px;
}
.contact-number:hover { color: var(--red); }
.contact-note { color: var(--ink-soft); margin: 0 0 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #f0e9df; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-note { margin: 4px 0 0; opacity: 0.85; }
.footer-copy { font-size: 0.85rem; opacity: 0.6; margin: 6px 0 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; gap: 0;
    padding: 8px 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .about-grid, .grocery-grid, .course-cards { grid-template-columns: 1fr; }
  .review-slider { gap: 8px; }
  .review-card { flex: 0 0 100%; }
  .review-nav { width: 40px; height: 40px; }
  .course-card.featured { transform: none; }
  .byo-banner .btn { margin-left: 0; }
}
