/* Fyre Ministries Thailand — typography-led, photo-ready
   Palette sampled from the brand assets:
     #203D4A  wordmark slate      #241D50  Thai-flag indigo
     #FF6260  logo flame          #ED1A24  Thai-flag red
   Built 2026-08-04. Static conversion of the WordPress/Divi site. */

:root {
  --ink: #16212a;
  --ink-soft: #4c5a64;
  --ink-mute: #7d8a93;
  --slate: #203d4a;
  --slate-deep: #162c37;
  --indigo: #241d50;
  --flame: #ff6260;
  --flame-deep: #e04a48;
  --flame-soft: #fff0ef;
  --cream: #fbfaf8;
  --cream-deep: #f3f1ed;
  --card: #ffffff;
  --line: #e2ddd5;
  --shadow: 0 1px 2px rgba(22, 33, 42, .04), 0 8px 24px rgba(22, 33, 42, .07);

  --serif: "Source Serif 4", "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: 92px; }

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(--slate); text-decoration-color: rgba(255, 98, 96, .5); text-underline-offset: 3px; }
a:hover { color: var(--flame-deep); }

.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.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.22rem, 2.3vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--sans); font-size: .73rem; font-weight: 680;
  letter-spacing: .16em; text-transform: uppercase; color: var(--flame-deep); margin: 0 0 .9rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 24px; }
.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(--slate); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  font-size: .82rem; color: var(--ink-soft); text-decoration: none; background: var(--card);
}
.lang-switch:hover { border-color: var(--flame); color: var(--flame-deep); }

.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: 980px) {
  .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; }
}

/* ---------- 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: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ----------
   Deliberately typography-led: the only wide photo on the site is a poorly
   composited stock image (visible seam, northern-hemisphere setting), so it is
   NOT used full-bleed. Real photography drops into .photo-slot instead. */
.hero { background: var(--slate-deep); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 30rem at 78% -10%, rgba(255, 98, 96, .30), transparent 62%),
    radial-gradient(46rem 26rem at 6% 108%, rgba(36, 29, 80, .78), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; padding-top: clamp(66px, 10vw, 116px); padding-bottom: clamp(66px, 10vw, 116px); max-width: 920px; }
.hero .eyebrow { color: var(--flame); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); }
.hero .keywords {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255, 255, 255, .66); margin: 0 0 1.5rem;
}
.hero p.lede { color: rgba(255, 255, 255, .9); max-width: 660px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 7.5vw, 92px) 0; }
.section-alt { background: var(--cream-deep); }
.section-head { max-width: 730px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; font-size: 1.18rem; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--flame-soft); color: var(--flame-deep);
  font-family: var(--sans); font-size: .95rem; font-weight: 700; margin-bottom: 15px;
  font-variant-numeric: lining-nums;
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 29px; margin-bottom: .78em; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: .52em;
  width: 7px; height: 12px; border: solid var(--flame); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ticks strong { color: var(--ink); font-weight: 640; }

.photo-slot {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--cream-deep); border: 1px dashed 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: .77rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.figure-caption { font-size: .84rem; color: var(--ink-mute); margin-top: 10px; }

/* ---------- involvement / contact panel ---------- */
.panel { background: var(--slate-deep); color: #fff; border-radius: 16px; padding: clamp(32px, 5vw, 54px); position: relative; overflow: hidden; }
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40rem 22rem at 88% -20%, rgba(255, 98, 96, .26), transparent 60%);
}
.panel > * { position: relative; z-index: 2; }
.panel h2 { color: #fff; }
.panel p { color: rgba(255, 255, 255, .86); }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contact-item-label { font-size: .71rem; letter-spacing: .15em; text-transform: uppercase; color: var(--flame); margin-bottom: 6px; }
.contact-item-value { font-size: 1.04rem; color: #fff; }
.contact-item-value a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.contact-item-value a:hover { color: var(--flame); }
.needs-detail { color: rgba(255, 255, 255, .62); 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: 19px 40px 19px 0; position: relative;
  font-family: var(--sans); font-weight: 580; font-size: 1.01rem; 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(--flame); 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(--flame-deep); }
.faq-answer { padding: 0 40px 21px 0; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- archive ---------- */
.page-head { padding-top: clamp(42px, 6vw, 70px); }
.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(--flame-deep); }
.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: 12px;
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: .18s ease;
}
.post-card:hover { border-color: var(--flame); transform: translateY(-2px); }
.post-card h3 { font-size: 1.14rem; margin-bottom: .5em; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--flame-deep); }
.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: .67rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--flame-soft); color: var(--flame-deep); padding: 3px 9px; border-radius: 999px; font-weight: 650;
}

.pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: center; margin: 50px 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: 8px; background: var(--card);
  font-size: .9rem; text-decoration: none; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--flame); color: var(--flame-deep); }
.pagination .current { background: var(--slate); border-color: var(--slate); color: #fff; font-weight: 600; }
.pagination .gap { border: none; background: none; color: var(--ink-mute); min-width: 20px; padding: 0; }

/* ---------- article ---------- */
.article { padding: 32px 0 clamp(54px, 7.5vw, 86px); }
.article-body { max-width: var(--narrow); }
.article-body h2 { margin-top: 1.9em; font-size: clamp(1.42rem, 2.8vw, 1.9rem); }
.article-body h3 { margin-top: 1.6em; font-size: clamp(1.16rem, 2.1vw, 1.36rem); }
.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(--flame); color: var(--ink-soft); font-style: italic;
}
.article-body strong { font-weight: 640; color: var(--ink); }
/* Some posts print a bare URL as the link text. Unbroken, those push the page
   wider than the viewport on mobile, so long words and URLs must be breakable. */
.article-body { overflow-wrap: break-word; }
.article-body a { overflow-wrap: anywhere; word-break: break-word; }

.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 11px; 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: .81rem; 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: 46px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-deep); color: rgba(255, 255, 255, .72); padding: 58px 0 28px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; font-weight: 650; }
.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(--flame); }
.footer-mark { height: 62px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-bottom {
  margin-top: 42px; padding-top: 21px; border-top: 1px solid rgba(255, 255, 255, .14);
  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(66px, 11vw, 130px); padding-bottom: clamp(66px, 11vw, 130px); text-align: center; }
.err .code { font-family: var(--serif); font-size: clamp(3.6rem, 13vw, 7.5rem); color: var(--flame); line-height: 1; margin-bottom: .1em; }
.err ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--slate); 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; }
}
