/* =========================================================
   LUMINOS78 — inner-page components (loads after luminos78.css)
   ========================================================= */

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- navigation ---------- */
.site-nav a[aria-current="page"] { color: var(--lm-text); }
.nav-cta-mobile, .nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 6px; width: 42px; height: 42px; flex: none;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 1px; background: #fff; transition: transform .35s var(--ease); }
  .site-header.nav-open { background: rgba(11, 15, 25, .97); }
  .site-header.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 28px; background: rgba(11, 15, 25, .97); border-bottom: 1px solid var(--lm-line);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--lm-line); font-size: 16px; color: var(--lm-text); }
  .site-header .site-nav .nav-cta-mobile { display: block; margin-top: 22px; border: 0; padding: 14px 0; text-align: center; border-radius: 999px; background: var(--lm-gradient); font-family: var(--font-th); }
}
@media (max-width: 600px) { .header-cta { display: none; } .header-right { gap: 12px; } }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 64svh; padding-block: clamp(150px, 18vw, 220px) clamp(56px, 7vw, 100px);
}
.page-hero--plain { min-height: 0; padding-bottom: 32px; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* taller than the box and top-anchored so photo watermarks at the bottom are cropped */
.page-hero-bg img { width: 100%; height: 118%; object-fit: cover; object-position: center top; filter: brightness(.6); }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--lm-bg) 0%, rgba(11, 15, 25, .25) 55%, rgba(11, 15, 25, .6) 100%),
              linear-gradient(90deg, rgba(11, 15, 25, .8), rgba(11, 15, 25, 0) 70%);
}
.page-hero-inner { width: 100%; }
.page-hero h1, .page-hero .display-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; max-width: 15ch; text-wrap: balance; }
/* SEO: Thai keyword <h1> sits above the English display title */
.page-hero .page-kicker { margin: 0 0 16px; max-width: 40ch; font-family: var(--font-th); font-weight: 400; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; letter-spacing: .02em; color: var(--lm-text-soft); }
.channels a { color: var(--lm-text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .3s; }
.channels a:hover { border-color: #fff; }
.site-footer li a[data-track] { color: var(--lm-text-soft); }
.page-hero .hero-script { margin-top: 12px; }
.page-hero .lead { margin-top: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--lm-text-muted); }
.breadcrumb a { color: var(--lm-text-muted); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--lm-text); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; opacity: .5; }

.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- intro + feature blocks ---------- */
.intro { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro .lead { margin-top: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature--flip .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature h2 { margin: 0; font-family: var(--font-th); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; }
.feature .en { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--lm-text-muted); }
.feature p { margin: 16px 0 0; font-family: var(--font-th); color: var(--lm-text-soft); line-height: 1.8; max-width: 52ch; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; font-family: var(--font-th); color: var(--lm-text-soft); line-height: 1.65; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; border-radius: 2px; background: var(--lm-gradient); }

/* ---------- chips, cards, facts ---------- */
.systems { display: flex; flex-wrap: wrap; gap: 12px; }
.systems span { padding: 10px 18px; border: 1px solid var(--lm-line); border-radius: 999px; font-size: 14px; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--lm-surface); border: 1px solid var(--lm-line); border-radius: var(--radius); padding: 28px; }
.card .en { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--lm-text-muted); }
.card h3 { margin: 0 0 10px; font-family: var(--font-th); font-weight: 400; font-size: 19px; line-height: 1.45; }
.card p { margin: 0; font-family: var(--font-th); font-size: 15px; line-height: 1.75; color: var(--lm-text-soft); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--lm-line); }
.facts li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--lm-line); }
.facts b { display: block; margin-bottom: 6px; font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--lm-text-muted); }
.facts span { font-family: var(--font-th); }
.note { display: inline-block; font-family: var(--font-th); font-size: 13px; color: var(--lm-text-muted); border: 1px dashed rgba(255, 255, 255, .35); border-radius: 10px; padding: 10px 14px; }
.prose { max-width: 72ch; font-family: var(--font-th); color: var(--lm-text-soft); line-height: 1.8; }
.prose h2, .prose h3 { color: var(--lm-text); font-weight: 400; }

/* ---------- gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { display: block; padding: 0; border: 0; background: none; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:first-child img { aspect-ratio: auto; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--lm-text); }
.lightbox::backdrop { background: rgba(5, 7, 13, .94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 80px; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { font-family: var(--font-th); font-size: 14px; color: var(--lm-text-muted); text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(11, 15, 25, .6); color: #fff; font-size: 18px; cursor: pointer; transition: background .3s; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { font: 13px var(--font-en); letter-spacing: .06em; color: var(--lm-text-soft); background: transparent; border: 1px solid var(--lm-line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: rgba(255, 255, 255, .5); }
.filter[aria-pressed="true"] { background: #fff; color: #0B0F19; border-color: #fff; }
.project--button { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: zoom-in; }
.project .count { display: block; margin-top: 10px; font-size: 12px; color: var(--lm-text-muted); }
.project[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--lm-line); }
.faq details { border-bottom: 1px solid var(--lm-line); }
.faq summary { position: relative; padding: 24px 44px 24px 0; list-style: none; cursor: pointer; font-family: var(--font-th); font-size: 18px; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 200; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 70ch; font-family: var(--font-th); line-height: 1.8; color: var(--lm-text-soft); }

/* ---------- CTA band + space nav ---------- */
.cta-band { text-align: center; background: radial-gradient(50% 70% at 50% 100%, rgba(168, 85, 247, .22), transparent 70%); }
.cta-band .h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 36px; }
.space-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--lm-line); }
.space-nav a { text-decoration: none; font-family: var(--font-th); font-size: 17px; }
.space-nav a:last-child { text-align: right; }
.space-nav small { display: block; margin-bottom: 4px; font-family: var(--font-en); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--lm-text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro, .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .lightbox-inner { padding: 64px 16px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 600px) {
  .page-hero { min-height: 56svh; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; grid-row: auto; }
  .gallery-item:first-child img { aspect-ratio: 4 / 3; }
  .space-nav { flex-direction: column; }
  .space-nav a:last-child { text-align: left; }
}
