/* Shared editorial theme. Locale-specific portraits are selected in HTML/JS. */
:root {
  --q-dark: #151417;
  --q-ivory: #f6f3ed;
  --q-champagne: #d3be98;
  --q-ink: #29262c;
  --q-muted: #655f68;
  --q-line: #ded8ce;
  --q-primary: #623f98;
  --q-primary-light: #eee9e3;
}
html, body { font-size: 16px; }
html { scroll-padding-top: 6rem; }
body { background: var(--q-ivory); color: var(--q-ink); line-height: 1.65; }
.container { width: 100%; max-width: 1200px; padding-right: 28px; padding-left: 28px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.navbar .navbar-toggler:focus-visible,
.faq .accordion .accordion-item .accordion-header .accordion-button:focus-visible {
  outline: 3px solid #906bb9; outline-offset: 5px; box-shadow: none;
}
.navbar a:focus-visible, .navbar button:focus-visible,
.main a:focus-visible, .page-footer a:focus-visible {
  outline-color: var(--q-champagne);
}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 999px; padding: .8rem 1.7rem; font-size: 1rem; font-weight: 600; line-height: 1.4;
  transition: background .2s ease, border-color .2s ease, color .2s ease; }
.btn.btn-light { background: var(--q-champagne); border-color: var(--q-champagne); color: var(--q-dark); }
.btn.btn-light:hover, .btn.btn-light:focus, .btn.btn-light:active { background: #e6d5b8; border-color: #e6d5b8; color: var(--q-dark); }
.btn.btn-primary { background: var(--q-dark); border-color: var(--q-dark); color: var(--q-ivory); }
.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.btn:active, .navbar-brand:active { transform: none; }

/* Compact, persistent navigation; collapse before multilingual links get tight. */
.navbar { padding: 12px 0; background: rgba(21,20,23,.97); border-bottom: 1px solid rgba(246,243,237,.12); z-index: 100; }
.navbar:before { display: none; }
.home-page .navbar:not(.active) { background: transparent; border-bottom-color: transparent; }
.navbar .navbar-brand { display: inline-flex; align-items: center; min-height: 44px; margin: 0; transform: none; }
.navbar-brand img { height: 32px; width: auto; }
.navbar .navbar-nav { gap: 22px; }
.navbar .navbar-nav .nav-item { margin: 0; }
.navbar .navbar-nav .nav-item .nav-link { display: flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 500; padding: .5rem 0; color: #d9d4dc; }
.navbar .navbar-nav .nav-item .nav-link:hover, .navbar .navbar-nav .nav-item .nav-link:focus { color: var(--q-champagne); }
.navbar .nav-chat .btn { min-height: 44px; font-size: .86rem; padding: .65rem 1.1rem; white-space: nowrap; }
.navbar .lang-toggle { min-height: 44px; font-size: .9rem; color: #f6f3ed; }
.navbar .lang-menu { background: #201e23; border-color: #49424c; border-radius: 12px; box-shadow: 0 12px 32px #0003; }
.navbar .lang-menu button { min-height: 44px; font-size: .95rem; color: #e5e0e7; }
.navbar .lang-menu button.active { background: #403348; color: #fff; }
.navbar .navbar-toggler { min-height: 44px; min-width: 44px; }

/* Full-bleed photography with readable copy layered over a soft gradient. */
.main { position: relative; display: flex; justify-content: center; min-height: clamp(680px, 85svh, 860px); padding: 140px 0 80px; background: var(--q-dark); overflow: hidden; text-align: left; }
.main:after { display: none; }
.main .hero-layout { display: block; position: relative; z-index: 2; }
.hero-copy { width: 44%; max-width: 530px; min-width: 0; padding: 0; }
.main .hero-eyebrow { color: var(--q-champagne); font-size: .8rem; font-weight: 600; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; margin: 0 0 24px; }
.main h1 { width: auto; max-width: 12ch; font-size: clamp(2.8rem, 4.7vw, 4.3rem); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; margin: 0; color: var(--q-ivory); }
.main h1 span { font-weight: 400; color: var(--q-champagne); }
.main .hero-description { max-width: 42ch; color: #eee8f1; font-size: 1.08rem; font-weight: 400; line-height: 1.75; margin: 26px 0 0; }
.main .main-actions { justify-content: flex-start; align-items: flex-start; margin-top: 32px; }
.main .hero-micro { color: #d4cbd9; font-size: .8rem; font-weight: 400; margin: 16px 0 0; }
.hero-visual { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-portrait { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 15%; }
.hero-visual:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(21,20,23,.9) 0%, rgba(21,20,23,.72) 28%, rgba(21,20,23,.24) 51%, transparent 74%), linear-gradient(0deg, rgba(21,20,23,.45), transparent 50%); }

/* Product sections retain their original content with a quieter rhythm. */
.browse, .match, .secure, .faq, .blog-section, .page-block { padding: 88px 0; scroll-margin-top: 5rem; }
.browse, .secure, .page-block.bg-white { background: var(--q-ivory) !important; color: var(--q-ink); }
.match, .blog-section, .page-block.bg-light { background: #eee9e1 !important; color: var(--q-ink); }
.browse h2, .match h2, .secure h2, .faq h2, .blog-section h2, .page-block h2 {
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; color: var(--q-ink); margin: 0 0 24px;
}
.browse h2 span, .match h2 span, .secure h2 span, .blog-section h2 span, .page-block h2 span { font-weight: 400; }
.browse p, .match p, .secure p, .page-block .lead, .blog-section .sec-head p { color: var(--q-muted); font-size: 1.06rem; line-height: 1.75; font-weight: 400; margin-top: 0; }
.browse .img-fluid, .match .img-fluid, .secure .img-fluid, .page-block .img-fluid { display: block; height: auto; max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.browse .btn.btn-light, .match .btn.btn-light { background: var(--q-dark); border-color: var(--q-dark); color: var(--q-ivory); }
.browse .btn.btn-light:hover, .match .btn.btn-light:hover { background: var(--q-primary); border-color: var(--q-primary); }
.browse .mt-5, .match .mt-5, .secure .mt-5 { margin-top: 2rem !important; }
.browse-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 28px 72px; background: var(--q-ivory); }
.browse-grid img, .browse-grid .browse-grid-box { width: 100%; height: 100%; aspect-ratio: 1.2; border-radius: 10px; box-shadow: none; }
.browse-grid img { object-fit: cover; }
.browse-grid .browse-grid-box { padding: 24px; background: var(--q-dark); }
.browse-grid .browse-grid-box span { color: var(--q-champagne); font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.features { padding: 0; background: #eee9e1; }
.features .box { margin: 0; padding: 38px 12px; background: var(--q-dark); border-radius: 16px; border: 1px solid #38333d; }
.features .feature-box { height: 100%; padding: 0 23px; border-color: #39343d; }
.features .feature-box img, .value-box img { height: 36px; width: 36px; opacity: .85; }
.features .feature-box h3, .value-box h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 500; color: var(--q-ivory); margin: 22px 0 12px; }
.features .feature-box p, .value-box p { color: #bfb8c4; font-size: .95rem; line-height: 1.7; font-weight: 400; margin: 0; }
.secure { padding-top: 96px; }
.faq { background: var(--q-dark); }
.faq .col-md-6 { width: 100%; max-width: 790px; }
.faq h2 { color: var(--q-ivory); }
.faq .accordion { margin-top: 40px; }
.faq .accordion .accordion-item { margin: 0; border-bottom: 1px solid #3a353e; }
.faq .accordion .accordion-item .accordion-header .accordion-button { min-height: 64px; padding: 20px 0; font-size: 1.05rem; font-weight: 500; line-height: 1.5; color: var(--q-ivory); }
.faq .accordion .accordion-item .accordion-header .accordion-button:after { margin-left: 20px; opacity: .7; }
.faq .accordion .accordion-item .accordion-body { color: #c3bdc9; padding: 0 30px 24px 0; font-size: 1rem; line-height: 1.75; font-weight: 400; }
.faq .accordion .accordion-item .accordion-body a { color: var(--q-champagne); }
.blog-section .sec-head { margin-bottom: 40px; }
.blog-card .cover { border-radius: 12px; }
.blog-card .cover .cat { color: var(--q-ink); background: var(--q-ivory); font-weight: 600; }
.blog-card h3 { color: var(--q-ink); font-size: 1.3rem; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.blog-card p { color: var(--q-muted); font-weight: 400; line-height: 1.7; }
.blog-card .meta { color: #6e6671; font-size: .8rem; font-weight: 400; }
.blog-card:hover .cover { transform: none; }
.blog-viewall { margin-top: 44px; }

/* Secondary pages and long-form reading. */
.page-hero { padding: 150px 0 64px; background: var(--q-dark); }
.page-hero .eyebrow { font-size: .8rem; color: var(--q-champagne); letter-spacing: .1em; font-weight: 500; margin-bottom: 18px; }
.page-hero h1 { max-width: 900px; color: var(--q-ivory); font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.04em; line-height: 1.15; font-weight: 500; }
.page-hero h1 span { color: var(--q-champagne); font-weight: 400; }
.page-hero p { color: #c9c3cc; font-size: 1.1rem; font-weight: 400; line-height: 1.75; max-width: 58ch; }
.page-block.bg-primary, .page-block.bg-dark { background: #242027 !important; }
.page-block.bg-primary h2, .page-block.bg-dark h2 { color: var(--q-ivory); }
.page-block.bg-primary .lead, .page-block.bg-dark .lead { color: #d0c8d5; }
.values-box { background: var(--q-dark); border-radius: 16px; padding: 38px 10px; }
.value-box { border-color: #39343d; }
.prose, .article { max-width: 760px; }
.prose .updated { color: var(--q-muted); }
.prose p, .article p, .article li, .article .lead { font-weight: 400; color: #504952; line-height: 1.85; }
.prose h2, .article h2 { font-size: 1.7rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 500; }
.prose .disclaimer-box { border-radius: 12px; color: #514459; font-weight: 400; }
.article .cover-banner { height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.article blockquote { border-color: #ad9570; color: var(--q-ink); font-size: 1.25rem; }
.article-meta { color: #c4bdc9; font-weight: 400; }
.cat-tag { background: transparent; color: var(--q-champagne); border-color: #665a49; }
.contact-card { border: 1px solid var(--q-line); background: #fbf9f5; border-radius: 16px; box-shadow: none; }
.info-item p { color: var(--q-muted); font-weight: 400; }
.contact-form .form-control { min-height: 48px; font-weight: 400; border-color: #cdc5d0; border-radius: 8px; background: #fffdfa; }
.contact-note { color: var(--q-muted); }

/* A final invitation, then a compact shared directory. */
footer.page-footer { padding: 0 0 32px; background: var(--q-dark); color: var(--q-ivory); }
.footer-invite { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 64px 0; border-bottom: 1px solid #3b353f; }
.footer-invite > div { max-width: 650px; }
.footer-invite h2 { color: var(--q-ivory); font-size: clamp(1.9rem, 3vw, 2.65rem); font-weight: 500; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 16px; }
footer.page-footer .footer-invite p { color: #c0b8c6; font-size: 1rem; line-height: 1.75; margin: 0; max-width: 54ch; }
.footer-invite > .btn { flex: 0 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1fr .65fr; gap: 48px; padding: 52px 0 44px; }
.footer-brand .navbar-brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0 0 14px; filter: brightness(0) invert(1); }
footer.page-footer .footer-brand p { max-width: 30ch; color: #b9b1bf; font-size: .95rem; line-height: 1.75; margin: 0 0 12px; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; color: var(--q-champagne); font-size: .9rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-links h3 { color: var(--q-champagne); font-size: .83rem; font-weight: 500; margin: 8px 0 16px; line-height: 1.4; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: #ddd6e2; font-size: .9rem; line-height: 1.4; padding: 9px 0; text-decoration: none; }
.footer-links a:hover, .footer-email:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #3b353f; }
footer.page-footer .footer-bottom p { font-size: .78rem; color: #b9b1bf; margin: 0; }
footer.page-footer p.disclaimer { max-width: 100%; font-size: .75rem; color: #a59caa; line-height: 1.85; margin: 18px 0 0; }
footer.page-footer p.disclaimer a { color: #c5b5ce; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .navbar-nav { gap: 14px; }
  .navbar .navbar-nav .nav-item .nav-link, .navbar .lang-toggle { font-size: .8rem; }
  .navbar .nav-chat { display: none; }
}
@media (max-width: 991px) {
  .navbar .navbar-collapse { max-height: calc(100dvh - 69px); overflow-y: auto; }
  .navbar .navbar-nav { display: flex; align-items: stretch !important; gap: 0; padding: 16px 0 12px; }
  .navbar .navbar-nav .nav-item { margin: 0; }
  .navbar .navbar-nav .nav-item .nav-link { padding: 10px 0 !important; font-size: 1rem; }
  .navbar .lang-dd { padding-top: 10px; border-top: 1px solid #3b353f; margin-top: 8px !important; }
  .navbar .lang-toggle { width: 100%; font-size: 1rem; }
  .navbar .lang-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 8px 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .navbar .lang-dd.open .lang-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .navbar .lang-menu button { text-align: left; font-size: 1rem; color: #d9d4dc; }
  .navbar .nav-chat { padding: 12px 0 0; }
  .hero-copy { width: 46%; }
  .main h1 { font-size: 3rem; }
  .footer-grid { gap: 32px; grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  footer.page-footer .footer-brand p { max-width: 48ch; }
}
@media (max-width: 767px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .navbar { padding: 10px 0; }
  .main { min-height: 860px; justify-content: flex-end; padding: 390px 0 44px; }
  .main .hero-layout { display: block; padding: 0 22px; }
  .hero-visual { width: 100%; height: 100%; }
  .hero-portrait { object-position: 48% top; }
  .hero-visual:after { background: linear-gradient(0deg, rgba(21,20,23,.97) 0%, rgba(21,20,23,.87) 30%, rgba(21,20,23,.34) 57%, rgba(21,20,23,.08) 76%); }
  .hero-copy { width: 100%; max-width: 530px; padding: 0; }
  .main .hero-eyebrow { font-size: .75rem; margin-bottom: 18px; }
  .main h1 { font-size: clamp(2.45rem, 9vw, 3.5rem); max-width: 15ch; line-height: 1.16; }
  .main .hero-description { margin-top: 22px; font-size: 1rem; max-width: 48ch; }
  .main .main-actions { flex-direction: row; justify-content: flex-start; margin-top: 26px; }
  .main .hero-micro { font-size: .75rem; }
  .browse, .match, .secure, .faq, .blog-section, .page-block { padding: 56px 0; text-align: left; }
  .browse h2, .match h2, .secure h2, .faq h2, .blog-section h2, .page-block h2 { font-size: 2.15rem; }
  .browse .img-fluid, .match .img-fluid, .secure .img-fluid, .page-block .img-fluid { max-height: 460px; }
  .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 22px 48px; gap: 8px; }
  .browse-grid img, .browse-grid .browse-grid-box { aspect-ratio: 1; border-radius: 8px; }
  .browse-grid .browse-grid-box { padding: 18px; }
  .browse-grid .browse-grid-box span { font-size: clamp(1.15rem, 5vw, 1.8rem); }
  .features { text-align: left; }
  .features .box, .values-box { padding: 8px 24px; border-radius: 12px; }
  .features .box > .row { --bs-gutter-y: 0; }
  .features .feature-box, .value-box { padding: 28px 0; border-left: 0; border-top: 1px solid #39343d; }
  .features .feature-box.v1, .value-box.first { border-top: 0; }
  .values-box > .row { --bs-gutter-y: 0; }
  .faq .accordion { margin-top: 28px; }
  .faq .accordion .accordion-item .accordion-header .accordion-button { font-size: 1rem; }
  .blog-section .sec-head { margin-bottom: 32px; text-align: left !important; }
  .blog-section .row { row-gap: 24px; }
  .blog-card .body { padding-top: 18px; }
  .page-hero { padding: 116px 0 44px; text-align: left; }
  .page-hero h1 { font-size: 2.7rem; }
  .page-hero p { margin-left: 0; margin-right: 0; font-size: 1rem; }
  .page-block.text-center { text-align: center; }
  .article h2, .prose h2 { font-size: 1.55rem; }
  .article p, .article li, .prose p { font-size: 1rem; }
  .contact-card { padding: 24px; }
  .footer-invite { align-items: flex-start; flex-direction: column; gap: 26px; padding: 44px 0; }
  .footer-invite h2 { max-width: 20ch; font-size: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; padding: 36px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { grid-column: 1 / -1; }
  .footer-social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .footer-links h3 { margin-top: 0; margin-bottom: 10px; }
  .footer-bottom { gap: 8px; flex-direction: column; }
}
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.4; letter-spacing: -.02em; }
/* Approved option A: edge-to-edge image, with copy on the left. */
@media (min-width: 768px) {
  .main { min-height: clamp(680px, 85svh, 900px); padding: 140px 0 64px; flex-direction: column; justify-content: center; }
  .hero-visual { inset: 0; height: 100%; }
  .hero-portrait { width: 108%; max-width: none; object-position: center top; }
  .hero-copy { width: 42%; max-width: 500px; }
  .main h1 { font-size: clamp(2.8rem, 4.7vw, 4rem); line-height: 1.33; }
  .main .hero-description { max-width: 35ch; }
  .hero-visual:after { background: linear-gradient(90deg, rgba(15,14,17,.92) 0%, rgba(15,14,17,.74) 28%, rgba(15,14,17,.20) 52%, transparent 74%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
