/*
Theme Name: Sute Architect
Theme URI: https://sutearchitect.com
Author: Sute Architect
Description: ธีมเว็บไซต์บริษัท สุธีสถาปนิก จำกัด — ผลงาน, ผลงานตีพิมพ์, แบบฟอร์มติดต่อ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sute
*/

:root {
	--ink: #161616;
	--mute: #5C5C58;
	--line: #ECECEA;
	--line-2: #CFCDC7;
	--paper: #ffffff;
	--soft: #F4F3F0;
	--red: #B3121A;
	--ph-1: #E7E5E0;
	--ph-2: #DCDAD4;
	--latin: 'Archivo', system-ui, sans-serif;
	--thai: 'IBM Plex Sans Thai', system-ui, sans-serif;
	--pad: 5vw;
	--header-h: 108px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--thai); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px var(--pad); }
.site-header .brand img { height: 52px; width: auto; }
.site-nav { display: flex; gap: 36px; font-size: 15px; }
.site-nav a.is-current { color: var(--red); }
@media (max-width: 720px) {
	.site-header { padding: 18px var(--pad); }
	.site-header .brand img { height: 40px; }
	.site-nav { gap: 18px; font-size: 14px; }
	.site-nav .hide-sm { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; min-height: 44px; border-radius: 999px; font-size: 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--ink); background: var(--soft); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2f2f2e; color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: #95101a; color: #fff; }
.btn--lg { padding: 16px 30px; min-height: 52px; font-size: 16px; font-weight: 500; }
.btn svg { flex-shrink: 0; }

/* Intro splash */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 48px var(--pad); transition: opacity .6s ease, visibility .6s; }
.intro.is-hidden { opacity: 0; visibility: hidden; }
.intro__place { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.intro__brand { display: flex; flex-direction: column; align-items: center; animation: rise 1.4s ease-out both; }
.intro__logo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: min(560px, 80vw); }
.intro__company { font-size: 14px; color: var(--mute); }
.intro__services { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; color: #3A3936; padding-top: 40px; text-align: center; }
.intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; animation: rise 1.4s ease-out .8s both; }
.intro__actions .btn { font-family: var(--latin); font-size: 13px; letter-spacing: .18em; padding: 14px 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.intro-open { overflow: hidden; }

/* Hero */
.hero { padding: 0 var(--pad); }
.hero__frame { position: relative; height: 640px; background: #3A3936; border-radius: 24px; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide a { position: absolute; inset: 0; display: block; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; left: 48px; bottom: 44px; right: 220px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 8px; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 0 14px rgba(0,0,0,.25); }
.hero__eyebrow { font-family: var(--latin); font-size: 13px; letter-spacing: .28em; color: #D9D7D1; }
.hero__name { font-size: 34px; font-weight: 500; line-height: 1.3; }
.hero__desc { font-size: 15px; color: #E4E2DC; max-width: 560px; }
.hero__dots { position: absolute; right: 40px; bottom: 40px; z-index: 2; display: flex; gap: 4px; }
.hero__dot { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero__dot span { display: block; height: 4px; width: 12px; border-radius: 2px; background: rgba(255,255,255,.45); transition: width .3s; }
.hero__dot.is-active span { width: 28px; background: #fff; }
@media (max-width: 720px) {
	.hero__frame { height: 420px; border-radius: 18px; }
	.hero__caption { left: 24px; right: 24px; bottom: 76px; }
	.hero__name { font-size: 24px; }
	.hero__dots { right: auto; left: 14px; bottom: 14px; }
}

/* About */
.about { padding: 96px var(--pad) 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.about__main { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.about__services { font-family: var(--latin); font-size: 12px; letter-spacing: .24em; color: var(--red); }
.about h1 { margin: 0; font-family: var(--latin); font-weight: 400; font-size: 30px; line-height: 1.45; }
.about__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 360px; }
.about__side p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--mute); }
.about__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .about { padding-top: 56px; } .about h1 { font-size: 22px; } }

/* Work grid */
.work { padding: 0 var(--pad) 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.chip { font-size: 14px; padding: 12px 20px; min-height: 44px; border-radius: 999px; cursor: pointer; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.masonry { column-count: 3; column-gap: 24px; }
@media (max-width: 1000px) { .masonry { column-count: 2; } }
@media (max-width: 620px) { .masonry { column-count: 1; } }
.tile { display: block; break-inside: avoid; margin-bottom: 32px; }
.tile[hidden] { display: none; }
.tile__img { border-radius: 18px; overflow: hidden; background: var(--ph-1); }
.tile__img img { width: 100%; transition: transform .6s ease; }
.tile:hover .tile__img img { transform: scale(1.02); }
.tile__ph { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: #77756F; font-size: 13px; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.tile__name { font-size: 16px; font-weight: 500; color: var(--ink); }
.tile__kind { font-family: var(--latin); font-size: 11px; letter-spacing: .2em; color: var(--mute); }
.tile__cat { font-size: 13px; color: var(--mute); padding-top: 4px; }
.empty-note { padding: 48px; border-radius: 18px; background: var(--soft); color: var(--mute); }

/* Project card (single) */
.project { padding: 40px var(--pad) 120px; }
.pcard { background: var(--paper); border-radius: 28px; box-shadow: 0 2px 6px rgba(22,22,22,.06), 0 18px 48px rgba(22,22,22,.12); display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 72px; }
.pcard__media { position: relative; flex: 2 1 640px; background: var(--ph-1); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.pcard__media .pcard__img { max-width: 100%; max-height: 82vh; width: auto; height: auto; display: block; margin: 0 auto; }
.pcard__info { position: absolute; left: 28px; top: 26px; right: 96px; display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.5); text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 0 12px rgba(0,0,0,.18); pointer-events: none; z-index: 2; }
.pcard__kind { font-family: var(--latin); font-size: 11px; letter-spacing: .22em; }
.pcard__info h1 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.pcard__desc { font-size: 13px; line-height: 1.6; max-width: 520px; }
.pcard__desc p { margin: 0; }
.round-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 3; }
.round-btn:hover { color: var(--ink); background: #fff; }
.pcard__close { right: 20px; top: 20px; width: 44px; height: 44px; }
.pcard__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pcard__next { right: 18px; top: 50%; transform: translateY(-50%); }
.pcard__bar { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 14px; z-index: 3; }
.pcard__count { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: rgba(22,22,22,.72); color: #fff; font-family: var(--latin); font-size: 12px; letter-spacing: .12em; }
.pcard__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.pcard__thumb { width: 56px; height: 42px; flex-shrink: 0; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid rgba(255,255,255,.35); background: #D6D3CC; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard__thumb.is-on { border-color: #fff; }
.pcard__side { flex: 1 1 300px; display: flex; flex-direction: column; }
.pcard__side h2 { margin: 0; padding: 24px 24px 14px; font-size: 16px; font-weight: 500; }
.side-grid { flex: 1 1 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.side-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--ph-2); }
.side-tile img { width: 100%; height: 100%; object-fit: cover; }
.side-tile span { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 0 10px rgba(0,0,0,.25); }
.pcard__cta { padding: 18px 24px 24px; }
.pcard__cta .btn { width: 100%; }
.section-title { font-size: 20px; font-weight: 500; margin: 0 0 28px; }
@media (max-width: 720px) { .pcard__media { min-height: 240px; } .pcard { border-radius: 20px; } }

/* Publications */
.press { padding: 96px var(--pad) 120px; background: var(--soft); display: flex; flex-direction: column; gap: 72px; }
.press__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.press__head h1 { margin: 0; font-size: 44px; font-weight: 400; }
.press__head p { margin: 0; max-width: 380px; font-size: 15px; line-height: 1.8; color: var(--mute); }
.press h2 { margin: 0 0 28px; font-size: 18px; font-weight: 500; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.book { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.book__cover { width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--ph-2); box-shadow: 0 10px 24px rgba(22,22,22,.10); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__title { font-size: 16px; font-weight: 500; }
.book__sub { font-size: 13px; color: var(--mute); }
.webs { display: flex; flex-direction: column; gap: 12px; }
.web { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 28px; min-height: 44px; background: var(--paper); border-radius: 16px; }
.web__left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.web__site { font-family: var(--latin); font-weight: 700; font-size: 15px; letter-spacing: .04em; min-width: 180px; color: var(--ink); }
.web__title { font-size: 15px; color: #3A3936; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(17,17,16,.96); display: none; align-items: center; justify-content: center; padding: 72px 80px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox .round-btn { position: fixed; }
.lightbox__close { right: 24px; top: 24px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); color: #D9D7D1; font-family: var(--latin); font-size: 13px; letter-spacing: .14em; }

/* Contact page */
.contact { padding: 80px var(--pad) 112px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact__main { flex: 2 1 560px; display: flex; flex-direction: column; gap: 40px; max-width: 820px; }
.contact__head { display: flex; flex-direction: column; gap: 12px; }
.contact__head h1 { margin: 0; font-size: 44px; font-weight: 400; }
.contact__head p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--mute); }
.form { display: flex; flex-direction: column; gap: 34px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label, .field legend { font-size: 15px; font-weight: 500; padding: 0; }
.field__hint { font-size: 13px; font-weight: 400; color: var(--mute); }
.req { color: var(--red); }
.input { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; min-height: 50px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); color: var(--ink); }
.input:focus { border-color: var(--ink); outline: none; }
textarea.input { resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { font-size: 14px; padding: 12px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; background: var(--paper); border: 1px solid var(--line-2); display: inline-flex; align-items: center; }
.chips input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 3px; }
.field__err { font-size: 13px; color: var(--red); min-height: 0; }
.form__alert { padding: 16px 20px; border-radius: 14px; background: #FBEDEE; color: var(--red); font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.thanks { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 24px; background: var(--soft); }
.thanks__icon { width: 56px; height: 56px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.thanks__title { font-size: 28px; }
.thanks p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--mute); }
.direct { flex: 1 1 300px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: var(--soft); }
.direct__title { font-size: 18px; font-weight: 500; }
.direct__note { font-size: 14px; line-height: 1.7; color: var(--mute); padding-bottom: 6px; }
.direct__btn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 52px; border-radius: 14px; background: var(--paper); border: 1px solid #E4E2DC; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; width: 100%; }
.direct__addr { font-size: 13px; line-height: 1.7; color: var(--mute); padding-top: 8px; }
@media (max-width: 900px) { .direct { position: static; } }

/* LINE QR */
.qr { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 16px; background: var(--paper); border: 1px solid #E4E2DC; color: var(--ink); }
.qr.is-open { display: flex; }
.qr__img { width: 180px; height: 180px; border-radius: 12px; background: #EEEDE9; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 12px; color: #77756F; }
.qr__img img { width: 100%; height: 100%; object-fit: contain; }
.qr__btn { width: 100%; display: flex; align-items: center; justify-content: center; padding: 11px 16px; min-height: 44px; border-radius: 999px; background: #06C755; color: #fff; font-size: 14px; }
.qr__btn:hover { color: #fff; background: #05b04b; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 96px var(--pad) 48px; display: flex; flex-direction: column; gap: 56px; }
.site-footer a { color: #fff; }
.footer__top { display: flex; flex-direction: column; gap: 36px; }
.footer__lead { font-size: 32px; line-height: 1.4; }
.footer__cta { align-self: flex-start; background: #fff; color: var(--ink); border-color: #fff; }
.site-footer .footer__cta { color: var(--ink); }
.footer__cta:hover { background: #E4E2DC; }
.footer__links { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; min-height: 48px; border-radius: 999px; border: 1px solid #4A4945; background: transparent; color: #fff; font-size: 14px; cursor: pointer; }
.pill:hover, .pill[aria-expanded="true"] { background: #2A2926; color: #fff; }
.footer__links .qr { position: absolute; left: 0; bottom: calc(100% + 14px); width: 240px; z-index: 5; box-shadow: 0 18px 48px rgba(0,0,0,.35); border: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid #3A3936; padding-top: 28px; font-size: 13px; line-height: 1.8; color: #9A9892; }
.footer__mark { font-family: var(--latin); letter-spacing: .24em; }
.footer--slim { padding: 32px var(--pad); flex-direction: row; justify-content: space-between; font-size: 13px; color: #9A9892; gap: 16px; flex-wrap: wrap; }

/* Generic page */
.page-wrap { padding: 80px var(--pad) 120px; max-width: 860px; }
.page-wrap h1 { font-size: 40px; font-weight: 400; margin: 0 0 32px; }
.page-wrap .entry { font-size: 16px; line-height: 1.9; }
