:root {
  --ink: #090b12;
  --ink-soft: #242832;
  --ivory: #f7f4ec;
  --paper: #ffffff;
  --thai-red: #a51931;
  --saffron: #f2b544;
  --cyan: #12bff3;
  --leaf: #16785c;
  --line: #d9d6cd;
  --muted: #686b70;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Inter, Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 244, 236, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 132px; height: 48px; object-fit: contain; object-position: left center; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); font-size: 12px; font-weight: 900; color: var(--thai-red); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 14px; font-weight: 800; text-decoration: none; }
nav .language { border: 1px solid var(--ink); padding: 8px 10px; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--ink);
  color: white;
}
.portrait-stage { position: absolute; inset: 0; background: #12151d; }
.portrait-stage::after { content: ""; position: absolute; inset: 0; background: rgba(9,11,18,.62); }
.portrait-placeholder { position: absolute; right: clamp(5%, 11vw, 16%); bottom: 0; width: min(44vw, 540px); height: 86%; background: #222630; overflow: hidden; }
.portrait-head { position: absolute; left: 34%; top: 10%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: #b78967; }
.portrait-body { position: absolute; left: 12%; bottom: -12%; width: 76%; height: 70%; border-radius: 44% 44% 0 0; background: #8f2436; }
.thai-bars { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(42vw, 520px); display: grid; grid-template-columns: 3fr 1fr 1fr; height: 8px; }
.thai-bars i:nth-child(1) { background: var(--thai-red); }
.thai-bars i:nth-child(2) { background: var(--saffron); }
.thai-bars i:nth-child(3) { background: var(--cyan); }
.hero-copy { position: relative; z-index: 3; width: min(760px, 56vw); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 82px 0 54px; }
.eyebrow { margin: 0 0 16px; color: var(--cyan); font-size: 12px; font-weight: 950; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(48px, 6vw, 84px); line-height: .98; font-weight: 950; }
.lead { max-width: 680px; color: #e2e4ea; font-size: clamp(19px, 2.2vw, 30px); line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 900; }
.button.primary { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.button.secondary { color: white; background: transparent; border-color: #777d8b; }
.button.light { color: var(--ink); background: white; border-color: white; }
.button.is-disabled { opacity: .55; }
.trust-row { display: flex; gap: 26px; margin-top: 48px; flex-wrap: wrap; }
.trust-row span { min-width: 110px; display: grid; gap: 2px; color: #bfc4cf; font-size: 12px; }
.trust-row strong { color: white; font-size: 18px; }

.service-band, .offers-band, .process-band { padding: 90px max(24px, calc((100vw - var(--max)) / 2)); }
.service-band { background: var(--paper); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .guide-copy h2, .contact-band h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 68px); line-height: 1.04; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.6; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 32px; background: var(--ink); color: white; border-radius: 4px; }
.service-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card:nth-child(2) .service-icon, .service-card:nth-child(5) .service-icon { color: var(--ink); background: var(--saffron); }
.service-card:nth-child(3) .service-icon, .service-card:nth-child(6) .service-icon { color: var(--ink); background: var(--cyan); }
.service-card h3 { margin-bottom: 12px; font-size: 22px; }
.service-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.guide-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 90px max(24px, calc((100vw - var(--max)) / 2)); background: var(--saffron); }
.guide-copy .eyebrow { color: var(--thai-red); }
.guide-copy > p:last-child { font-size: 18px; line-height: 1.6; }
.guide-tool { background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; padding: 26px; }
.need-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.need-button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; }
.need-button:hover, .need-button.active { border-color: var(--ink); background: var(--ink); color: white; }
.guide-result { min-height: 188px; display: grid; align-content: start; gap: 12px; margin-top: 20px; padding: 24px; background: var(--ivory); border-left: 5px solid var(--cyan); }
.guide-result small { color: var(--thai-red); font-weight: 900; }
.guide-result strong { font-size: 24px; }
.guide-result p { min-height: 48px; margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.guide-result .button { justify-self: start; }

.offers-band { background: var(--ivory); }
.offer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.offer-card { position: relative; min-height: 520px; display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.offer-card.featured { background: var(--ink); color: white; border-color: var(--ink); }
.offer-card.is-recommended { outline: 4px solid var(--cyan); outline-offset: 3px; }
.offer-topline { min-height: 26px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.featured .offer-topline { color: #c7ccd7; }
.offer-topline strong { color: var(--cyan); }
.offer-card h3 { min-height: 58px; margin: 16px 0 10px; font-size: 23px; }
.offer-card > p { min-height: 112px; color: var(--muted); line-height: 1.55; }
.featured > p { color: #c7ccd7; }
.price { margin: 10px 0 22px; font-size: 42px; line-height: 1; font-weight: 950; }
.price small { font-size: 18px; vertical-align: top; }
.price em { margin-left: 4px; color: var(--muted); font-size: 12px; font-style: normal; }
.offer-card ul { flex: 1; margin: 0 0 22px; padding-left: 18px; }
.offer-card li { margin: 9px 0; line-height: 1.4; }
.text-link { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); text-decoration: none; font-weight: 900; }
.featured .text-link { border-color: #333944; }
.text-link span { color: var(--cyan); }

.process-band { background: white; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-list li { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-list span { display: block; margin-bottom: 54px; color: var(--thai-red); font-weight: 950; }
.process-list strong { display: block; margin-bottom: 10px; font-size: 22px; }
.process-list p { color: var(--muted); line-height: 1.55; }

.contact-band { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); background: var(--thai-red); color: white; }
.contact-band .eyebrow { color: var(--saffron); }
.contact-band > p:not(.eyebrow) { max-width: 680px; color: #f6d9df; font-size: 19px; line-height: 1.6; }
.contact-band .button { margin-top: 16px; }
.mail-link { display: inline-block; margin-left: 22px; color: white; font-weight: 800; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #c5c9d2; font-size: 13px; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 100px 24px; }
.legal-page h1 { font-size: clamp(50px, 7vw, 88px); }
.legal-page p { font-size: 18px; line-height: 1.7; }

@media (max-width: 1050px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-card { min-height: 460px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { min-height: 62px; padding: 7px 16px; }
  .brand img { width: 100px; height: 42px; }
  .brand span { display: none; }
  nav { gap: 8px; }
  nav a:not(.language) { display: none; }
  .hero { min-height: calc(100svh - 102px); }
  .portrait-stage::after { background: rgba(9,11,18,.68); }
  .portrait-placeholder { right: 0; top: 0; width: 100%; height: 48%; }
  .hero-copy { align-self: end; width: auto; margin-left: 0; padding: 220px 20px 22px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .lead { font-size: 18px; }
  .trust-row { margin-top: 24px; gap: 16px; }
  .service-band, .offers-band, .process-band { padding: 68px 20px; }
  .service-grid, .offer-grid, .process-list { grid-template-columns: 1fr; }
  .service-card { min-height: 210px; }
  .guide-band { grid-template-columns: 1fr; gap: 24px; padding: 68px 20px; }
  .guide-tool { padding: 16px; }
  .offer-card { min-height: auto; }
  .offer-card > p, .offer-card h3 { min-height: 0; }
  .contact-band { padding: 72px 20px; }
  .mail-link { display: block; margin: 22px 0 0; }
  footer { flex-direction: column; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
