@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #e8eaec;
  --ink-mid: #b8bec3;
  --muted: #8a9299;
  --bg: #121416;
  --bg-soft: #1a1d21;
  --white: #f5f3f0;
  --line: rgba(255, 255, 255, 0.08);
  --orange: #e85d04;
  --orange-deep: #c44d03;
  --orange-soft: #f4a261;
  --orange-glow: rgba(232, 93, 4, 0.15);
  --charcoal: #121416;
  --font: 'IBM Plex Sans Thai', sans-serif;
  --heading: 'Noto Serif Thai', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --demo-h: 48px;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 50;
  --z-demo: 60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, var(--orange-glow), transparent 50%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* —— Demo bar —— */
.demo-bar {
  position: sticky; top: 0; z-index: var(--z-demo);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 1.25rem; background: #0a0b0d; color: #fff; font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--orange-soft); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px; font-size: 0.78rem; font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.demo-bar a:hover { background: rgba(255,255,255,0.06); }
.demo-bar a.is-primary { background: var(--orange); border-color: var(--orange); color: #fff; }

/* —— Header —— */
.site-header {
  position: sticky; top: var(--demo-h); z-index: var(--z-header);
  background: rgba(18, 20, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 0.4rem;
  color: var(--white);
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.85rem; font-weight: 500;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-mid); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 0.5rem 1rem; border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--orange-deep); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.35rem; font-weight: 600; font-size: 0.95rem;
  border-radius: 2px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link {
  font-weight: 600; color: var(--orange);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--orange); }

/* —— Hero —— */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: hero-ken 20s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 20, 22, 0.72) 0%, rgba(18, 20, 22, 0.52) 45%, rgba(18, 20, 22, 0.35) 100%),
    linear-gradient(to top, rgba(18, 20, 22, 0.55), transparent 42%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 5.5rem 0 3.5rem;
  max-width: 42rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  margin-right: auto;
  width: min(100% - 2.5rem, 42rem);
  animation: hero-rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1.1rem; display: flex; align-items: baseline; gap: 0.45rem;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-soft);
}
.hero h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.hero h1 em {
  display: block; margin-top: 0.55rem;
  font-style: normal; color: rgba(244, 162, 97, 0.95); font-weight: 600;
  font-size: 0.88em;
}
.hero__lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 34rem; margin-bottom: 1.5rem;
}
.hero__proof {
  margin-top: 1.75rem; font-size: 0.92rem; color: rgba(255,255,255,0.7);
}
.hero__proof strong { color: #fff; font-weight: 600; }

@keyframes hero-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--accent {
  background: var(--orange);
  color: #fff;
  background-image:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
}
.section__head { margin-bottom: 2.25rem; max-width: 36rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 0.55rem;
  color: var(--white);
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); font-weight: 500; margin-bottom: 0.55rem;
}
.eyebrow.light { color: rgba(255,255,255,0.85); }

/* —— Services —— */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(232, 93, 4, 0.25);
  border-color: rgba(232, 93, 4, 0.35);
}
.service-card__tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
}
.service-card h3 {
  font-family: var(--heading); font-size: 1.1rem; line-height: 1.35;
  color: var(--white);
}
.service-card p:not(.service-card__price) {
  font-size: 0.92rem; color: var(--muted); flex: 1;
}
.service-card__price {
  font-size: 1.2rem; font-weight: 700; color: var(--white);
  margin-top: 0.35rem;
}

/* —— USP —— */
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.usp {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--orange);
}
.usp h3 {
  font-family: var(--heading); font-size: 1.05rem; margin-bottom: 0.45rem;
  color: var(--white);
}
.usp p { font-size: 0.92rem; color: var(--muted); }

/* —— Process —— */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.process li { position: relative; padding-top: 0.5rem; }
.process__num {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--orange);
  display: block; margin-bottom: 0.65rem;
}
.process h3 {
  font-family: var(--heading); font-size: 1.05rem; margin-bottom: 0.4rem;
  color: var(--white);
}
.process p { font-size: 0.92rem; color: var(--muted); }

/* —— Packages —— */
.pkg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.pkg-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(232, 93, 4, 0.2);
}
.pkg-card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 0 32px -12px var(--orange-glow);
}
.pkg-card__tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
}
.pkg-card h3 {
  font-family: var(--heading); font-size: 1.15rem;
  color: var(--white);
}
.pkg-card > p:not(.pkg-card__price) {
  font-size: 0.92rem; color: var(--muted);
}
.pkg-card__price {
  font-size: 1.45rem; font-weight: 700; color: var(--white);
  margin: 0.25rem 0;
}
.pkg-card__list {
  display: grid; gap: 0.35rem; margin: 0.35rem 0 0.5rem;
}
.pkg-card__list li {
  position: relative; padding-left: 1.1rem;
  font-size: 0.88rem; color: var(--ink-mid);
}
.pkg-card__list li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--orange);
}

/* —— Reviews —— */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.quotes blockquote {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
}
.quotes blockquote p {
  font-family: var(--heading); font-size: 1.05rem; line-height: 1.55;
  margin-bottom: 0.75rem; color: var(--ink-mid);
}
.quotes footer { font-size: 0.88rem; color: var(--muted); }

/* —— FAQ —— */
.faq { max-width: 40rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 600; font-size: 1rem; color: var(--white);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); font-weight: 500;
  color: var(--orange); font-size: 1.1rem;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: 0 0 1.15rem; color: var(--muted); font-size: 0.95rem;
}

/* —— Book —— */
.book-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.book-split h2 {
  font-family: var(--heading); font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.35; margin-bottom: 0.65rem;
}
.book-split > div > p { color: rgba(255,255,255,0.88); margin-bottom: 0.5rem; }
.book-ids { font-size: 0.95rem; margin-top: 1rem !important; }
.book-ids strong { color: #fff; }
.book-form {
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--line);
  padding: 1.65rem 1.45rem; display: grid; gap: 0.9rem;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5);
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-mid); }
.field input, .field select, .field textarea {
  padding: 0.7rem 0.85rem; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
}

/* —— Footer —— */
.site-footer {
  background: #0a0b0d; color: rgba(255,255,255,0.72); padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand { color: #fff; margin-bottom: 0.5rem; }
.site-footer .brand small { color: var(--orange-soft); }
.footer__lede { font-size: 0.9rem; max-width: 18rem; }
.footer__grid h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-soft); margin-bottom: 0.75rem; font-weight: 500;
}
.footer__grid a { display: block; font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer__grid a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.34s; }
.reveal.is-in.reveal-stagger > * {
  opacity: 1; transform: none;
}
.reveal-stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
  .hero__inner { animation: none; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .service-grid, .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .book-split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .hero { min-height: min(88vh, 720px); align-items: flex-end; }
  .hero__inner { padding: 4rem 0 2.75rem; }
  .hero__media::after {
    background:
      linear-gradient(105deg, rgba(18, 20, 22, 0.78) 0%, rgba(18, 20, 22, 0.58) 50%, rgba(18, 20, 22, 0.42) 100%),
      linear-gradient(to top, rgba(18, 20, 22, 0.6), transparent 38%);
  }
  .service-grid, .pkg-grid, .usp-grid, .process { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .btn-row .btn { flex: 1 1 auto; }
}
