@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-warm: #fff8f2;
  --text: #111111;
  --muted: #555555;
  --border: #e5e7eb;
  --accent: #a31616;
  --accent-hover: #801515;
  --line: #06c755;
  --line-hover: #05a647;
  --facebook: #1877f2;
  --facebook-hover: #0f5fc4;
  --gold: #c98b2b;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

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

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

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 72%);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #f1d4c5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.18s ease;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

.button.line {
  color: #fff;
  background: var(--line);
}

.button.line:hover {
  color: #fff;
  background: var(--line-hover);
}

.button.facebook {
  color: #fff;
  background: var(--facebook);
}

.button.facebook:hover {
  color: #fff;
  background: var(--facebook-hover);
}

.button.secondary {
  background: #fff;
  border-color: var(--border);
}

.button.secondary:hover {
  color: var(--accent);
  border-color: #d7a396;
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(17, 17, 17, 0.08);
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card .caption {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 600px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.card p,
.article-card p,
.product-note p {
  margin-top: 8px;
  color: var(--muted);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.article-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card .body {
  padding: 22px;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.product-band {
  padding: 36px;
  border: 1px solid #f0d8c5;
  border-radius: 8px;
  background: var(--surface-warm);
}

.product-band .price {
  margin-top: 14px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.product-card img,
.product-placeholder {
  aspect-ratio: 4 / 5;
}

.product-card img {
  object-fit: cover;
  object-position: center;
}

.product-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--accent);
  background: #fff4ea;
  border-bottom: 1px solid #f0d8c5;
  font-weight: 700;
  text-align: center;
}

.product-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-card .body p {
  margin-top: 8px;
  color: var(--muted);
}

.product-card .actions {
  margin-top: auto;
  padding-top: 20px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 48px;
  align-items: start;
}

.article {
  padding: 48px 0 72px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.article h2 {
  margin-top: 42px;
  font-size: 28px;
}

.article h3 {
  margin-top: 28px;
}

.article p,
.article li {
  color: #333;
  font-size: 17px;
}

.article p {
  margin-top: 16px;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.article li + li {
  margin-top: 8px;
}

.article img {
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.article figure {
  margin: 28px 0 32px;
}

.article figure img {
  margin: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin-top: 10px;
  color: var(--muted);
}

.footer {
  padding: 42px 0;
  color: #f5f5f5;
  background: #171717;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.footer a,
.footer p {
  color: #d7d7d7;
}

.footer strong {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split-grid,
  .article-layout,
  .grid.two,
  .grid.three,
  .product-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 10px;
  }

  .sidebar {
    position: static;
  }
}
