:root {
  --bg: #140808;
  --bg2: #1f0c0c;
  --card: #241010;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8f0ea;
  --muted: #c9b6a8;
  --orange: #ff7a2f;
  --orange2: #ffb36a;
  --red: #d62839;
  --red2: #8b1530;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, "Noto Sans Thai", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 122, 47, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(214, 40, 57, 0.2), transparent 50%),
    linear-gradient(180deg, #120606 0%, #1a0909 40%, #120606 100%);
  min-height: 100vh;
}

a {
  color: var(--orange2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 8, 8, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(90deg, var(--orange2), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.35rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange2);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a.is-active {
  border-color: rgba(255, 122, 47, 0.45);
  background: linear-gradient(90deg, rgba(255, 122, 47, 0.15), rgba(214, 40, 57, 0.12));
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    top: 64px;
    width: min(92vw, 360px);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(24, 10, 10, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
}

.hero {
  padding: 36px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 122, 47, 0.12), rgba(214, 40, 57, 0.1));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.25;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #1a0505;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.banner-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.section {
  padding: 28px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 179, 106, 0.35);
  color: var(--orange2);
}

.prose {
  line-height: 1.85;
  color: #efe4db;
}

.prose p {
  margin: 0 0 14px;
}

.prose h2,
.prose h3 {
  margin: 22px 0 12px;
  line-height: 1.35;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  font-weight: 700;
}

.kw {
  font-weight: 800;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .reviews {
    grid-template-columns: 1fr;
  }
}

.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.stars {
  color: #ffb703;
  letter-spacing: 2px;
  font-size: 1rem;
}

.name {
  font-weight: 800;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-brand {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.copyright {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

label {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 179, 106, 0.35);
  background: rgba(255, 122, 47, 0.06);
  color: var(--muted);
}

.article-hero {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--orange2);
}

/* ─── Page hero banner ─── */
.page-hero {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 21/7;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  background: linear-gradient(0deg, rgba(20, 8, 8, 0.92) 0%, rgba(20, 8, 8, 0.5) 40%, transparent 100%);
}

.page-hero-overlay h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.page-hero-overlay .muted {
  margin: 6px 0 0;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ─── Banner slider (homepage) ─── */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.banner-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.banner-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 179, 106, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.banner-dot.is-active {
  background: var(--orange2);
}

/* ─── Section banner strip ─── */
.section-banner {
  margin: 8px 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.section-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 21/7;
  object-fit: cover;
}
