/* Wat Kham — site/assets/styles.css */

/* ───────────────────────── Reset & base ─────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:       #c9a84c;
  --gold-light: #e4cc7a;
  --gold-dark:  #a07b2e;
  --red:        #8b2f2f;
  --red-deep:   #5c1a1a;
  --cream:      #faf5eb;
  --cream-dark: #f0e8d8;
  --ink:        #2c2118;
  --ink-light:  #5a4a3a;
  --white:      #ffffff;
  --shadow:     rgba(44, 33, 24, .12);

  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body:    "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-thai:    "Sarabun", "Noto Sans Thai", sans-serif;

  --max-width:  960px;
  --section-py: 5rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a   { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───────────────────────── Typography ───────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem;    margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .75rem; }

/* ───────────────────────── Layout helpers ────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-py) 0;
}

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

.section--dark {
  background: var(--red-deep);
  color: var(--cream);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--gold-light);
}
.section--dark a {
  color: var(--gold-light);
}

.text-center { text-align: center; }

/* ───────────────────────── Decorative divider ───────────────── */
.ornament {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 1.5rem 0;
  letter-spacing: .75rem;
  user-select: none;
}

/* ───────────────────────── Header / nav ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--gold-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: .05em;
}
.site-header__logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav a {
  color: var(--cream-dark);
  font-size: .9rem;
}
.site-nav a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* ───────────────────────── Hero ─────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    linear-gradient(
      170deg,
      var(--red-deep) 0%,
      #3d1515 50%,
      var(--ink) 100%
    );
  color: var(--cream);
}

.hero h1 {
  color: var(--gold-light);
  margin-bottom: .5rem;
}

.hero__thai {
  font-family: var(--font-thai);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: .1em;
}

.hero__tagline {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  color: var(--cream-dark);
}

/* ───────────────────────── CTA button ───────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: .5rem;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-light);
}

.btn--outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn--outline:hover {
  background: rgba(201, 168, 76, .12);
}

/* ───────────────────────── Feature cards ─────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: .75rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.feature-card p {
  color: var(--ink-light);
  font-size: .95rem;
}

/* ───────────────────────── Two-column split ──────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

/* ───────────────────────── Audience blocks ───────────────────── */
.audience-block {
  background: var(--white);
  border-radius: .75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.audience-block h3 {
  color: var(--red);
}

.audience-block ul {
  padding-left: 1.25rem;
  color: var(--ink-light);
}
.audience-block li {
  margin-bottom: .35rem;
}

/* ───────────────────────── How-it-works steps ───────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.step p {
  color: var(--ink-light);
  font-size: .95rem;
}

/* ───────────────────────── Footer ────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--ink-light);
  padding: 2.5rem 0;
  font-size: .85rem;
  text-align: center;
}
.site-footer a { color: var(--gold); }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

/* ───────────────────────── Interior pages ────────────────────── */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background:
    linear-gradient(
      170deg,
      var(--red-deep) 0%,
      #3d1515 60%,
      var(--ink) 100%
    );
  color: var(--cream);
}
.page-hero h1 {
  color: var(--gold-light);
  font-size: 2.25rem;
}

.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: var(--red);
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

.prose p,
.prose li {
  color: var(--ink-light);
  margin-bottom: .75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.prose strong {
  color: var(--ink);
}

/* highlight box for contact info etc. */
.callout {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 .5rem .5rem 0;
  margin: 1.5rem 0;
}

.callout p {
  margin-bottom: .35rem;
}

/* ───────────────────────── FAQ accordion ─────────────────────── */
.faq details {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.faq details[open] summary::before {
  content: "\2212"; /* minus */
}

.faq details p {
  margin-top: .5rem;
  padding-left: 1.5rem;
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 600px) {
  :root { --section-py: 3.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero__tagline { font-size: 1.1rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: .8rem; }
}
