/**
 * Filename: theme.css
 * Build path: _build/wordpress-package/wp-content/themes/pss-th/assets/css/theme.css
 * Created by OpenAI Codex on 2026-08-22 02:58:11 +07:00.
 * Modified by OpenAI Codex on 2026-08-26 for the production LINE QR contact CTA.
 */
:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #fff;
  --max-wide: 80rem;
  --max-narrow: 56rem;
  --radius: .75rem;
  --radius-large: 1rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, .1);
  --font-sans: "Kanit", "Noto Sans Thai", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--slate-50); color: var(--slate-800); font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { color: var(--blue-950); line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.container { width: min(calc(100% - 3rem), var(--max-wide)); margin-inline: auto; }
.container--narrow { max-width: var(--max-narrow); }
.section { padding-block: 3rem; }
.section--tint { background: rgba(219, 234, 254, .38); border-block: 1px solid #dbeafe; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 1000; background: var(--white); padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand > a { color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--blue-950); color: var(--white); font-weight: 800; }
.custom-logo { width: auto; max-height: 3.5rem; }
.brand-copy { border-left: 2px solid var(--slate-200); padding-left: 1rem; display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--blue-950); font-size: 1.15rem; letter-spacing: .08em; }
.brand-copy em { color: var(--orange-500); font-size: .72rem; font-style: normal; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.brand-copy small { color: var(--blue-900); font-size: .68rem; margin-top: .35rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--slate-600); font-size: .9rem; font-weight: 500; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--blue-600); }
.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; color: var(--blue-950); background: var(--white); border: 1px solid var(--slate-200); border-radius: .65rem; }
.nav-toggle svg, .button svg, .text-link svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1.25rem; border: 0; border-radius: .55rem; background: var(--blue-900); color: var(--white); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); }
.button:hover { background: var(--blue-950); color: var(--white); }
.button--small { padding: .55rem 1.1rem; border-radius: 999px; font-size: .78rem; }
.button--accent { background: var(--orange-500); }
.button--accent:hover { background: var(--orange-600); }
.button--light { background: var(--white); color: var(--blue-950); }
.button--light:hover { background: var(--slate-100); color: var(--blue-950); }
.page-hero { padding-block: 3.5rem; background: linear-gradient(135deg, var(--blue-950), var(--blue-900)); color: var(--white); }
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 42rem; color: #bfdbfe; margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .78rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--slate-400); }
.breadcrumb a { color: #bfdbfe; }
.breadcrumb span { color: var(--white); }
.card-grid { display: grid; gap: 1.5rem; }
.card { overflow: hidden; background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--slate-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.media-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--slate-100), var(--slate-200)); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.2rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-body p { color: var(--slate-500); font-size: .9rem; }
.eyebrow { color: var(--blue-600); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: .15rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.feature-media { margin: 0 0 2rem; overflow: hidden; border-radius: var(--radius-large); box-shadow: var(--shadow-sm); }
.prose { font-size: 1.05rem; }
.prose > * { max-width: 100%; }
.prose a { overflow-wrap: anywhere; }
.project-layout { display: grid; gap: 2rem; }
.project-facts { align-self: start; padding: 1.5rem; background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project-facts div + div { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--slate-100); }
.project-facts p { margin: .25rem 0 0; color: var(--slate-600); }
.project-gallery { margin-top: 3rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-grid a { overflow: hidden; border-radius: .65rem; background: var(--slate-100); }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-video { margin-top: 2rem; }
.gallery-dialog { width: min(92vw, 72rem); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: transparent; }
.gallery-dialog::backdrop { background: rgba(15, 23, 42, .9); }
.gallery-dialog img { max-width: 100%; max-height: 88vh; margin: auto; object-fit: contain; }
.gallery-dialog-close { position: absolute; top: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--white); color: var(--blue-950); font-size: 1.6rem; cursor: pointer; }
.related-content { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--slate-200); }
.contact-cta { padding-block: 3rem; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; overflow: hidden; border-radius: var(--radius-large); color: var(--white); background: var(--blue-950); box-shadow: var(--shadow-md); }
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: #bfdbfe; margin: 0; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; flex-shrink: 0; }
.contact-line-qr { display: grid; justify-items: center; gap: .45rem; margin: 0; }
.contact-line-qr img { width: clamp(8.75rem, 14vw, 10rem); height: auto; padding: .35rem; border-radius: .7rem; background: var(--white); box-shadow: var(--shadow-sm); }
.contact-line-qr figcaption { color: #bfdbfe; font-size: .78rem; font-weight: 600; text-align: center; }
.site-footer { padding-block: 1.5rem; color: var(--slate-400); background: var(--slate-900); border-top: 1px solid var(--slate-800); font-size: .8rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.footer-inner a { color: var(--slate-400); }
/* Modified by ChatGPT on 2026-08-22 06:07 +07:00: align WordPress footer with the static home footer. */
.site-footer .footer-inner {
  justify-content: center;
  text-align: center;
}
.site-footer .footer-inner p {
  width: 100%;
  text-align: center;
}
.pagination { margin-top: 2rem; }
.nav-links { display: flex; gap: .5rem; justify-content: center; }
.page-numbers { padding: .45rem .75rem; border-radius: .4rem; background: var(--white); border: 1px solid var(--slate-200); text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--blue-900); border-color: var(--blue-900); }
.empty-state { text-align: center; }
.video-filters { display: flex; gap: .65rem; padding: .25rem 0 1.5rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.video-filter { flex: 0 0 auto; padding: .55rem 1rem; border: 1px solid var(--slate-200); border-radius: 999px; background: var(--white); color: var(--slate-600); font-size: .85rem; font-weight: 600; text-decoration: none; }
.video-filter:hover, .video-filter.is-active { border-color: var(--blue-900); background: var(--blue-900); color: var(--white); }
.project-video-card__media { position: relative; }
.project-video-placeholder { display: grid; place-items: center; color: var(--slate-400); font-size: 2.5rem; }
.project-video-play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding-left: .2rem; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(23, 37, 84, .88); color: var(--white); box-shadow: var(--shadow-md); }
.project-video-player { display: flex; width: 100%; align-items: flex-start; justify-content: center; }
.project-video-player video { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; border-radius: var(--radius-large); box-shadow: var(--shadow-md); }
.project-video-categories { margin: 1.5rem 0 .75rem; color: var(--slate-600); }
.project-video-description { margin-top: 1.5rem; }
.video-fallback { display: grid; min-height: 18rem; place-items: center; padding: 2rem; border-radius: var(--radius-large); background: var(--slate-100); color: var(--slate-600); text-align: center; }
.project-video-grid .empty-state { grid-column: 1 / -1; }
.project-archive-switch-wrap { padding-block: 1.25rem; background: var(--white); border-bottom: 1px solid var(--slate-200); }
.project-archive-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 30rem); gap: .5rem; margin-inline: auto; padding: .35rem; border: 1px solid var(--slate-200); border-radius: .8rem; background: var(--slate-100); }
.project-archive-switch__item { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .55rem .8rem; border-radius: .55rem; color: var(--slate-600); font-size: .92rem; font-weight: 700; text-align: center; text-decoration: none; }
.project-archive-switch__item:hover { color: var(--blue-900); background: rgba(255, 255, 255, .7); }
.project-archive-switch__item.is-active { color: var(--white); background: var(--blue-900); box-shadow: var(--shadow-sm); }
.project-archive-switch__item.is-active:hover { color: var(--white); background: var(--blue-950); }
@media (min-width: 48rem) {
  .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-layout { grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) { .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Modified by ChatGPT on 2026-08-22: align WordPress desktop header with static HTML header. */
@media (min-width: 62rem) {
  .header-inner {
    justify-content: space-between;
  }

  .primary-nav {
    margin-left: 0;
  }

  .primary-nav ul {
    gap: 2rem;
  }

  .brand,
  .header-phone {
    flex-shrink: 0;
  }
}
@media (max-width: 61.99rem) {
  .container { width: min(calc(100% - 2rem), var(--max-wide)); }
  .header-inner { min-height: 4.75rem; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy em { font-size: .6rem; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem; background: var(--white); border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-md); }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { display: block; padding: .85rem 1rem; border-radius: .5rem; }
  .primary-nav a:hover { background: var(--slate-50); }
  .page-hero { padding-block: 2.5rem; }
  .section { padding-block: 2.25rem; }
  .contact-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex: 1 1 12rem; }
  .contact-line-qr { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
