/* SVLM Thailand — black / orange / sand editorial identity */
:root {
  --orange: #ff8a32;
  --orange-ink: #8a4a10;        /* link colour on light backgrounds (AA) */
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e1dc;
  --white: #ffffff;
  --sand: #f6f4f1;
  --stone: #e2ded8;
  --peach: #fdeee3;
  --peach-field: #fff8f3;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, "Noto Sans Thai", "Leelawadee UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--orange); color: var(--black); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Type */
.display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.045em; color: var(--ink); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 2.2rem; color: var(--ink); }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin-bottom: 2.2rem; }
.subhead { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.55; letter-spacing: -0.01em; margin-bottom: 1.2rem; }
.prose p, .muted { color: var(--muted); }
.dot { color: var(--orange); }

/* Links & buttons */
.text-link { display: inline-block; font-weight: 700; text-decoration: none; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.text-link:hover { color: var(--orange-ink); border-color: var(--orange); }
.orange-link { color: var(--orange); text-decoration: none; font-weight: 500; }
.orange-link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 1.1em 2em; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn-orange { background: var(--orange); color: var(--black); }
.btn-orange:hover { background: #ffa05a; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #333; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-ink); text-decoration: underline; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: inherit; }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.logo-word { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.05em; }
.logo-sub { font-size: .8rem; font-weight: 500; letter-spacing: .32em; margin-top: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; border-bottom: 1px solid #2a2a2a; }
.header-inner { display: flex; align-items: center; height: 112px; gap: 32px; }
.primary-nav { margin-left: auto; margin-right: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 44px; }
.primary-nav a { color: #fff; text-decoration: none; font-size: 1.1rem; padding: 8px 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { border-color: var(--orange); }
.header-actions { display: flex; gap: 4px; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .header-inner { height: 84px; }
  .logo-word { font-size: 2rem; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .primary-nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--black); border-top: 1px solid #2a2a2a; display: none; margin: 0; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .primary-nav a { display: block; padding: 16px 0; border-bottom: 1px solid #2a2a2a; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; min-height: min(88vh, 820px); display: flex; align-items: center;
  background: linear-gradient(180deg, #2c6d8f 0%, #4b7f98 30%, #8aa3ad 55%, #5c6b70 75%, #2b3134 100%); }
.hero.has-photo { background: #222 url(hero.jpg) center/cover no-repeat; }
.hero.has-photo .hero-art { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 35%, rgba(10,10,10,.25) 70%, rgba(10,10,10,.15) 100%); }
.hero-art { position: absolute; inset: 0; }
.hero-clouds { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.c-far { fill: #6f7c82; } .c-mid { fill: #46525a; } .c-near { fill: #2a3034; } .c-windows { fill: #8fa3ad; opacity: .5; }
.hero-content { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 120px; width: 100%; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1.02; letter-spacing: -0.06em; margin-bottom: 2.6rem; }
.hero-lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.65; margin-bottom: 2.6rem; color: #f1f1f1; }
@media (max-width: 700px) { .hero { min-height: 0; } .hero-content { padding-top: 72px; padding-bottom: 88px; } }

/* Sections */
.section { padding: 128px 0; }
.section-white { background: #fff; }
.section-sand { background: var(--sand); }
.section-dark { background: #1a1a1a; color: #fff; }
.section-dark .display { color: #fff; }
.section-peach { background: var(--peach); }
@media (max-width: 700px) { .section { padding: 72px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-top { align-items: start; margin-bottom: 48px; }
.side-note { color: var(--muted); font-size: 1.15rem; max-width: 26ch; justify-self: end; margin-top: -40px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .side-note { justify-self: start; margin-top: 0; max-width: none; } }

/* Division grid */
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.division-card { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 38px 32px; display: flex; flex-direction: column; min-height: 420px; }
.division-card.filler { background: var(--stone); }
.division-num { font-size: .9rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 40px; }
.division-card h3 { font-size: 1.85rem; letter-spacing: -0.02em; margin-bottom: 26px; }
.division-card .desc { color: var(--muted); margin-bottom: 26px; }
.unit-list { list-style: none; margin: 0 0 32px; padding: 0; }
.unit-list li { border-top: 1px solid var(--line); }
.unit-list button { width: 100%; text-align: left; font: inherit; font-size: 1.2rem; color: var(--ink); background: none; border: 0; padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.unit-list button:hover { color: var(--orange-ink); }
.unit-list button::after { content: "›"; color: var(--muted); }
.unit-list li.plain { font-size: 1.2rem; padding: 14px 0; }
.explore { margin-top: auto; }
.explore h4 { margin: 0 0 18px; font-size: 1rem; font-weight: 700; }
.explore-links { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.explore-links a { color: var(--orange-ink); text-decoration: none; font-size: 1.1rem; padding-bottom: 6px; border-bottom: 1px solid #c79a6c; }
.explore-links a:hover { border-color: var(--orange-ink); }
.explore .pending { color: var(--muted); font-size: 1rem; }
@media (max-width: 1000px) { .division-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .division-grid { grid-template-columns: 1fr; } .division-card { min-height: 0; padding: 32px 22px; } .division-card.filler { display: none; } }

/* Approach */
.steps { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 76px; }
.steps li { border-top: 1px solid #4a4a4a; padding-top: 36px; }
.step-num { color: var(--orange); font-size: 1.05rem; }
.steps h3 { font-size: 1.75rem; margin: 46px 0 22px; }
.steps p { color: #d9d9d9; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; } .steps h3 { margin-top: 24px; } }

/* Accordion */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 28px 0; font-size: 1.6rem; letter-spacing: -0.01em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 28px; color: var(--muted); }
.accordion .acc-body ul { margin: 0 0 16px; padding-left: 20px; }

/* Thinking */
.thinking-grid-wrap { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 44px; }
.filter-btn { font: inherit; font-size: 1.05rem; padding: 12px 18px; border: 1px solid #cfcac3; background: transparent; color: var(--ink); cursor: pointer; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.thinking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.article-card { background: #fff; display: flex; flex-direction: column; }
.article-art { height: 212px; display: grid; place-items: center; font-size: 5rem; letter-spacing: -0.06em; color: #7a3a10; }
.art-1 { background: #ffd8b8; } .art-2 { background: #f2b480; } .art-3 { background: #ffe6d4; } .art-4 { background: #f8ccaa; } .art-5 { background: #eeba8e; }
.article-body { padding: 40px 36px 36px; display: flex; flex-direction: column; flex: 1; }
.article-tag { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.article-card h3 { font-size: 1.85rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 22px; }
.article-card p { color: var(--muted); }
.article-card .read { align-self: flex-start; margin-top: auto; font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 0 0 8px; cursor: pointer; color: var(--ink); }
.article-card .read:hover { color: var(--orange-ink); border-color: var(--orange); }
.empty { color: var(--muted); }
@media (max-width: 1000px) { .thinking-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .thinking-grid { grid-template-columns: 1fr; } .article-art { height: 150px; font-size: 3.6rem; } .article-body { padding: 28px 22px; } }

/* Connect */
.connect-lead { font-size: 1.2rem; margin: 40px 0 48px; color: var(--ink); max-width: 34ch; }
.contact-big { font-size: 1.6rem; margin-bottom: .6em; }
.contact-big a { text-decoration: none; }
.contact-big a:hover { color: var(--orange-ink); }
.contact-form { padding-top: 8px; }
.field { margin-bottom: 26px; min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 14px; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 16px 18px; border: 1px solid #c9c4be; border-radius: 0; background: var(--peach-field); color: var(--ink);
}
select { font-weight: 700; appearance: auto; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255,138,50,.5); border-color: var(--ink); }
[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .92rem; margin: 8px 0 0; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--black); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-status { margin-top: 22px; }
.form-status:empty { display: none; }
.form-status.ok { background: #fff; border-left: 4px solid #1e7a45; padding: 16px 18px; }
.form-status.err { background: #fff; border-left: 4px solid #b3261e; padding: 16px 18px; }

/* Footer */
.site-footer { background: var(--black); color: #fff; padding: 64px 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer a.orange-link { color: var(--orange); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 72px; border-bottom: 1px solid #333; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-title { font-size: 1.1rem; color: #cfcfcf; margin-bottom: 20px; font-weight: 400; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; font-size: 1.1rem; }
.footer-btn { color: #fff; text-decoration: none; font-size: 1.1rem; }
.footer-btn:hover { color: var(--orange); }
.footer-block { padding: 40px 0 56px; border-bottom: 1px solid #333; }
.footer-h { font-size: 1.9rem; margin-bottom: 24px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.app-item h3 { font-size: 1.3rem; margin-bottom: 18px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 16px 8px 12px; border: 1px solid #a6a6a6; border-radius: 9px; background: #000; color: #fff; text-decoration: none; line-height: 1.1; }
.site-footer a.store-badge:hover { color: #fff; border-color: var(--orange); }
.store-badge.is-soon { opacity: .5; cursor: default; }
.store-icon svg { width: 26px; height: 28px; }
.store-text { display: flex; flex-direction: column; }
.store-text small { font-size: .7rem; letter-spacing: .02em; }
.store-text b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.footer-note { color: #cfcfcf; font-size: .95rem; margin: 26px 0 26px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 32px 0 40px; color: #cfcfcf; font-size: .95rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-top, .footer-cols, .app-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* Floating contact */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--black); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.chat-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.chat-fab:hover { background: var(--orange); }

/* Dialogs */
.modal { border: 0; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(0,0,0,.35); color: var(--ink); }
.modal::backdrop { background: rgba(10,10,10,.7); }
.modal-inner { position: relative; padding: 44px; overflow-y: auto; max-height: calc(100vh - 48px); }
.modal .kicker { margin-bottom: 1rem; }
.modal h2 { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.15; padding-right: 44px; margin-bottom: 1.2rem; }
.modal h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4em 0 .4em; }
.modal ul { padding-left: 20px; color: var(--muted); }
.modal .sub-service { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.modal .sub-service h3 { margin-top: 0; }
.modal .sub-service p { margin: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-footer { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.modal-footer .btn { padding: .9em 1.5em; font-size: .98rem; }
.modal .note { font-size: .92rem; font-style: italic; }
@media (max-width: 540px) { .modal-inner { padding: 32px 20px; } }
.modal-search { width: min(780px, calc(100vw - 32px)); }
.search-count { color: var(--muted); font-size: .95rem; margin: 14px 0; }
.search-results { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.search-results button { width: 100%; text-align: left; font: inherit; background: var(--sand); border: 1px solid transparent; padding: 14px 16px; cursor: pointer; color: var(--ink); }
.search-results button:hover, .search-results button:focus-visible { border-color: var(--ink); background: #fff; }
.r-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-ink); }
.r-title { display: block; font-weight: 700; }
.r-text { display: block; font-size: .92rem; color: var(--muted); }
