/* Fyre Function Centre — typography-led, photo-ready
   Built 2026-08-04. Static conversion of the WordPress/Divi site. */

:root {
  --ink: #1e1a15;
  --ink-soft: #554e44;
  --ink-mute: #857b6d;
  --cream: #fbf8f3;
  --cream-deep: #f4eee4;
  --card: #ffffff;
  --green: #2c4a3b;
  --green-dark: #1c3126;
  --green-soft: #e8efea;
  --gold: #a8763e;
  --gold-light: #d9bc8c;
  --line: #e6ddcd;
  --shadow: 0 1px 2px rgba(30, 26, 21, .04), 0 8px 24px rgba(30, 26, 21, .06);

  --serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:lang(th), .lang-th { font-family: "Noto Sans Thai", var(--sans); line-height: 1.85; }
:lang(th) h1, :lang(th) h2, :lang(th) h3, .lang-th h1, .lang-th h2, .lang-th h3 {
  font-family: "Noto Serif Thai", var(--serif);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.12rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.16rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.brand-sub { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .92rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: .82rem; color: var(--ink-soft); text-decoration: none; background: var(--card);
}
.lang-switch:hover { border-color: var(--gold-light); color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav .lang-switch { margin-top: 12px; align-self: flex-start; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--green-dark); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,49,38,.72) 0%, rgba(28,49,38,.86) 100%);
}
/* padding-block only: .wrap supplies the horizontal padding and must not be overridden */
.hero-inner { position: relative; z-index: 2; padding-top: clamp(70px, 11vw, 132px); padding-bottom: clamp(70px, 11vw, 132px); max-width: 908px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.hero .keywords {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.68); margin: 0 0 1.5rem;
}
.hero p.lede { color: rgba(255,255,255,.9); max-width: 620px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--cream-deep); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}

/* feature ticks (source copy used ✔) */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .8em; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: .55em;
  width: 7px; height: 12px; border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transform-origin: center;
}
.ticks strong { color: var(--ink); font-weight: 620; }

/* photo-ready slots: styled placeholders that become real images on file swap */
.photo-slot {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--green-soft); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-label {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
.figure-caption { font-size: .84rem; color: var(--ink-mute); margin-top: 10px; }

/* ---------- booking steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 8px;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.step h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 650; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- contact ---------- */
.contact-panel {
  background: var(--green-dark); color: #fff; border-radius: 18px;
  padding: clamp(34px, 5vw, 56px);
}
.contact-panel h2 { color: #fff; }
.contact-panel p { color: rgba(255,255,255,.85); }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-list dt, .contact-item-label {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 6px;
}
.contact-item-value { font-size: 1.06rem; color: #fff; }
.contact-item-value a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.contact-item-value a:hover { color: var(--gold-light); }
.needs-detail { color: var(--gold-light); font-style: italic; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--narrow); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--sans); font-weight: 580; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--green); }
.faq-answer { padding: 0 40px 22px 0; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- article cards / archive ---------- */
.page-head { padding-top: clamp(44px, 6vw, 74px); }
.breadcrumb { font-size: .85rem; color: var(--ink-mute); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 7px; color: var(--line); }

.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: .18s ease;
}
.post-card:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.post-card h3 { font-size: 1.16rem; margin-bottom: .5em; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--green); }
.post-card p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 1em; }
.post-meta { margin-top: auto; font-size: .8rem; color: var(--ink-mute); display: flex; gap: 12px; align-items: center; }
.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--green-soft); color: var(--green); padding: 3px 9px; border-radius: 999px; font-weight: 600;
}

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: center; margin: 52px 0 0; }
.pagination a, .pagination span {
  min-width: 41px; height: 41px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  font-size: .9rem; text-decoration: none; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--gold-light); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pagination .gap { border: none; background: none; color: var(--ink-mute); min-width: 20px; padding: 0; }

/* ---------- article body ---------- */
.article { padding: 34px 0 clamp(56px, 8vw, 90px); }
.article-body { max-width: var(--narrow); }
.article-body h2 { margin-top: 1.9em; font-size: clamp(1.45rem, 2.9vw, 1.95rem); }
.article-body h3 { margin-top: 1.6em; font-size: clamp(1.18rem, 2.2vw, 1.4rem); }
.article-body h4 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold-light); color: var(--ink-soft); font-style: italic;
}
.article-body strong { font-weight: 640; color: var(--ink); }
.article-body a { color: var(--green); }

.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { background: var(--cream-deep); font-weight: 650; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.table-scroll tr:last-child td { border-bottom: none; }

.article-foot { max-width: var(--narrow); margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 62px 0 30px; margin-top: 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 15px; font-weight: 650; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.5); }
.site-footer p { font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.5);
}

/* ---------- 404 ---------- */
.err { padding-top: clamp(70px, 12vw, 140px); padding-bottom: clamp(70px, 12vw, 140px); text-align: center; }
.err .code { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--gold-light); line-height: 1; margin-bottom: .1em; }
.err ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
  padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
