/* ── ธีม "ขาว–ดำ" ─────────────────────────────
   เปลี่ยนสีทั้งเว็บได้จากตรงนี้ที่เดียว
   ส่วนอื่นของไฟล์ไม่มีสีฮาร์ดโค้ดไว้เลย */
:root {
  --bg: #ffffff;
  --bg-2: #f2f2f2;
  --surface: rgba(0, 0, 0, 0.03);
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --accent-2: #9a7b4f;
  --accent-soft: rgba(17, 17, 17, 0.06);
  --line: rgba(17, 17, 17, 0.14);
  --font-body: 'Prompt', system-ui, sans-serif;
  --font-display: 'Kanit', system-ui, sans-serif;
  --radius: 0.75rem;
}

/* ── พื้นฐาน ────────────────────────────────────────────
   ส่วนนี้เป็นโครงร่วมของทุกหน้า ปกติไม่ต้องแก้
   อยากเปลี่ยนหน้าตา ให้ไปแก้ตัวแปรสีข้างบนก่อน */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 11vw, 4.75rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.35rem); }

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow { max-width: 42rem; }

.sec { padding-block: clamp(3.5rem, 12vw, 7rem); }

.center { text-align: center; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lead { color: var(--muted); font-size: 1.02rem; }

.muted { color: var(--muted); }

/* เส้นคั่นเล็ก ๆ คั่นระหว่างหัวข้อ */
.rule {
  width: 4.5rem;
  height: 1px;
  border: 0;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 5vw, 2.25rem);
  backdrop-filter: blur(6px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* กล่องรูปแบบชั่วคราว — ตอนมีรูปจริงแล้วให้ใส่
   background-image: url('assets/ชื่อไฟล์.jpg'); ทับได้เลย */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 15%, var(--accent-soft), transparent 60%),
    radial-gradient(100% 80% at 85% 80%, var(--accent-soft), transparent 55%),
    var(--bg-2);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.photo::after {
  content: "";
  display: block;
  padding-top: var(--ratio, 125%);
}

/* ค่อย ๆ ลอยขึ้นตอนเลื่อนถึง
   ซ่อนเฉพาะตอนที่สคริปต์ทำงานได้ (html.js) ไม่งั้นถ้าสคริปต์พังเนื้อหาจะหายทั้งหน้า */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ช่องกับดักบอท — คนใช้งานจริงมองไม่เห็นและกดไม่โดน */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  padding: 3rem 1.25rem 3.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ── หัวร้าน ────────────────────────────────────────── */
.hero {
  padding-block: clamp(3.5rem, 14vw, 7rem);
  background:
    radial-gradient(75% 60% at 85% 10%, var(--accent-soft), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero-inner { max-width: 44rem; }

.hero .lead { margin-top: 1.25rem; }

.hero .btns { justify-content: flex-start; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.alt { background: var(--bg-2); }

/* ── การ์ด ──────────────────────────────────────────── */
.cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cards .card { position: relative; }

.featured { border-color: var(--accent); }

.tag {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.price {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
}

blockquote { margin: 0; }

blockquote p { font-size: 1rem; line-height: 1.9; }

blockquote footer { margin-top: 1rem; font-size: 0.85rem; }

/* ── ผลงาน ──────────────────────────────────────────── */
.shots {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

.shot { cursor: zoom-in; transition: transform 0.35s ease; }

.shot:hover { transform: scale(1.02); }

/* ── ติดต่อ ─────────────────────────────────────────── */
.contact { margin-top: 2rem; }

.contact dl { margin: 0; display: grid; gap: 0.85rem; }

.contact dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact dl > div:last-child { border-bottom: 0; padding-bottom: 0; }

.contact dt { color: var(--muted); font-size: 0.9rem; }

.contact dd { margin: 0; }

.contact a { color: var(--accent); }

/* ── แถบปุ่มลอยบนมือถือ ─────────────────────────────── */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body { padding-bottom: 5rem; }

@media (min-width: 48rem) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* ── กล่องดูรูปเต็มจอ ───────────────────────────────── */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--bg) 92%, black);
}

.viewer.open { display: grid; }

.viewer-stage {
  width: min(92vw, 46rem);
  height: min(70svh, 38rem);
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
}

.viewer-stage img { width: 100%; height: 100%; object-fit: cover; }

.viewer-caption { color: var(--muted); font-size: 0.9rem; text-align: center; }

.viewer-close,
.viewer-nav {
  position: absolute;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.viewer-close { top: 1.25rem; right: 1.25rem; }
.viewer-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.viewer-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
