/* ==========================================================
   BANGKOK OPTIMAL LABS
   1 tokens · 2 base · 3 buttons · 4 header · 5 hero
   6 promises · 7 sections · 8 catalogue CTA · 9 process
   10 reports · 11 faq · 12 closer · 13 footer · 14 sticky
   15 legal pages · 16 responsive
   ========================================================== */

/* 1. TOKENS: single dark theme by design (navy and gold brand) */
:root {
  --navy-900: #070f20;
  --navy-800: #0a1428;
  --navy-700: #0f1d38;
  --navy-600: #15284a;
  --line: rgba(214, 178, 94, 0.18);
  --line-soft: rgba(236, 228, 210, 0.08);
  --gold: #d6b25e;
  --gold-hi: #f0dca0;
  --gold-lo: #a8853c;
  --cream: #efe9dc;
  --mute: #9aa3b5;
  --wa: #25d366;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
p { margin: 0; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); }
.lede { color: var(--mute); max-width: 58ch; margin-top: 16px; font-size: 17px; }
.small { color: var(--mute); font-size: 14px; margin-top: 12px; }

/* 3. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: #052814; }
.btn--ghost { border-color: var(--gold); color: var(--gold-hi); }
.btn--ghost:hover { background: rgba(214, 178, 94, 0.1); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* 4. HEADER */
[data-header] {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 40, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 24px; font-weight: 600;
}
.logo__words { display: flex; flex-direction: column; line-height: 1; }
.logo__main { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--cream); }
.logo__main em { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: var(--gold); }
.logo__sub { font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--mute); margin-top: 5px; }
.head__nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; color: var(--mute); }
.head__nav a:hover { color: var(--gold-hi); }
.head__end { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--gold-hi); transition: transform 0.2s ease, opacity 0.2s ease; }
.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. HERO */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(214, 178, 94, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); margin-top: 22px; }
.hero__lede { color: #c3c8d4; font-size: 18px; max-width: 50ch; margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { color: var(--mute); font-size: 14px; margin-top: 18px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.hero__badge {
  position: absolute; left: -26px; bottom: 40px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 22px; border-radius: 16px;
  background: rgba(15, 29, 56, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.hero__badge-k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.hero__badge-v { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 40px; font-weight: 600; color: var(--gold); line-height: 1; }

/* 6. PROMISES */
.promises { background: var(--navy-900); border-block: 1px solid var(--line-soft); }
.promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise { padding: 34px 28px; border-left: 1px solid var(--line-soft); }
.promise:first-child { border-left: 0; padding-left: 0; }
.promise__n { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; color: var(--gold); font-size: 22px; }
.promise h2 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin-top: 8px; }
.promise p { color: var(--mute); font-size: 14.5px; margin-top: 6px; }

/* 7. SECTIONS */
.section { padding-block: 104px; }
.section--panel { background: var(--navy-700); }
.section h2 { font-size: clamp(36px, 4.6vw, 56px); margin-top: 14px; }
.section__head { max-width: 720px; margin-bottom: 52px; }

/* 8. CATALOGUE CTA */
.catalogue {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 24px;
  background: radial-gradient(70% 90% at 85% 50%, rgba(214, 178, 94, 0.12), transparent 65%), linear-gradient(160deg, var(--navy-600), var(--navy-700));
  border: 1px solid var(--line);
}
.catalogue__list { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.catalogue__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(7, 15, 32, 0.35);
}
.catalogue__list strong { font-weight: 700; color: var(--cream); }
.catalogue__list span { color: var(--mute); font-size: 14px; }
.catalogue__media { margin: 0; position: relative; }
.catalogue__media img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.catalogue__media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 12px;
  background: rgba(7, 15, 32, 0.88); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold); line-height: 1.1;
}
.catalogue__media figcaption span {
  display: block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
}

/* 9. PROCESS + shared split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev > .split__media { order: -1; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 36px 0 36px; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.steps__n {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 26px; font-weight: 600;
  font-variant-numeric: lining-nums; line-height: 1;
}
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { color: var(--mute); margin-top: 4px; font-size: 15.5px; }

/* 10. REPORTS */
.checks { list-style: none; padding: 0; margin: 30px 0 34px; border-top: 1px solid var(--line-soft); }
.checks li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.checks strong { color: var(--gold-hi); font-weight: 700; }
.checks span { color: var(--mute); text-align: right; }

/* 11. FAQ */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line-soft); }
.faq__list details:first-child { border-top: 1px solid var(--line-soft); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 30px; color: var(--gold); transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { color: var(--mute); padding-bottom: 22px; max-width: 62ch; }

/* 12. CLOSER */
.closer {
  text-align: center; padding-block: 110px;
  background: radial-gradient(50% 80% at 50% 100%, rgba(214, 178, 94, 0.16), transparent 70%), var(--navy-900);
  border-top: 1px solid var(--line-soft);
}
.closer h2 { font-size: clamp(36px, 5vw, 62px); margin-top: 14px; }
.closer .hero__ctas { justify-content: center; }

/* 13. FOOTER */
[data-footer] { background: var(--navy-900); border-top: 1px solid var(--line-soft); }
.foot { padding-block: 48px 110px; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links { display: flex; gap: 0 26px; flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.foot__links a:hover { color: var(--gold-hi); }
.foot__disc { color: var(--mute); font-size: 13px; max-width: 80ch; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.foot__copy { color: #6c7590; font-size: 12px; margin-top: 12px; }

/* 14. MOBILE STICKY BAR (shown under 760px) */
.sticky { display: none; }

/* 15. LEGAL PAGES */
.page { padding-block: 80px 110px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(42px, 6vw, 64px); margin-top: 14px; }
.page p { color: #c3c8d4; margin-top: 18px; }
.page p.eyebrow { color: var(--gold); margin-top: 0; }
.page h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin-top: 36px; color: var(--gold-hi); }
.page .btn { margin-top: 30px; }
.page__back { display: block; width: fit-content; color: var(--mute); font-size: 14px; margin-bottom: 30px; }
.page__back:hover { color: var(--gold-hi); }
.contact-card {
  margin-top: 30px; padding: 28px; border-radius: var(--radius);
  background: var(--navy-700); border: 1px solid var(--line);
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; }
.contact-card dt { color: var(--mute); font-size: 14px; }
.contact-card dd { margin: 0; font-weight: 600; }

/* 16. RESPONSIVE */
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .head { position: relative; }
  .head__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: var(--navy-900); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .is-open .head__nav { display: flex; }
  .head__nav a { padding: 14px 0; font-size: 17px; color: var(--cream); border-bottom: 1px solid var(--line-soft); }
  .head__nav a:last-child { border-bottom: 0; }
  .catalogue { grid-template-columns: 1fr 0.8fr; padding: 40px; gap: 36px; }
  .promises__grid { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 860px) {
  .hero__grid, .split, .faq, .catalogue { grid-template-columns: 1fr; gap: 40px; }
  .catalogue__media { max-width: 340px; }
  .hero__grid { padding-block: 44px 64px; }
  .hero__media { max-width: 460px; }
  .hero__badge { left: 16px; bottom: 16px; }
  .split--rev > .split__media { order: 0; }
  .section { padding-block: 76px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .head .btn span { display: none; }
  .head .btn { padding: 0; width: 44px; }
  .head__nav { padding-inline: 16px; }
  .catalogue { padding: 28px 20px; }
  .catalogue__list { grid-template-columns: 1fr; }
  .promises__grid { grid-template-columns: 1fr; }
  .promise, .promise:first-child, .promise:nth-child(3) { border-left: 0; padding: 22px 0; }
  .promise + .promise { border-top: 1px solid var(--line-soft); }
  .checks li { flex-direction: column; gap: 2px; }
  .checks span { text-align: left; }
  .sticky {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 15, 32, 0.95); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .sticky .btn { min-height: 48px; padding: 0 12px; font-size: 14px; }
}
@media (max-width: 380px) {
  .logo { gap: 10px; }
  .logo__mark { width: 36px; height: 36px; font-size: 20px; }
  .logo__main { font-size: 15px; white-space: nowrap; }
  .logo__main em { font-size: 18px; }
  .head__end { gap: 8px; }
  .sticky { gap: 8px; padding-inline: 12px; }
  .sticky .btn { font-size: 13px; gap: 6px; white-space: nowrap; }
  .sticky .btn svg { width: 18px; height: 18px; }
}
