/* ===== STARK 1998 — โทนสีขาวสะอาด ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e6e8ec;
  --text: #1c2230;
  --muted: #5d6576;
  --accent: #e8661c;        /* ส้มแบบคานชั้นวาง */
  --accent-dark: #c9540f;
  --gold: #b8892b;          /* ทองจากโลโก้ */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 34, 48, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans Thai", "Sarabun", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Prompt", sans-serif; line-height: 1.3; font-weight: 600; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text strong { display: block; font-family: "Prompt", sans-serif; font-size: 1.25rem; letter-spacing: .5px; line-height: 1.1; }
.brand-text strong span { color: var(--accent); }
.brand-text small { color: var(--muted); font-size: .78rem; }

.menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.menu a { font-weight: 500; color: var(--muted); transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--text); }
.menu a.active { box-shadow: inset 0 -2px 0 var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent);
  background: #fdf0e7; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.75rem, 3.6vw + 0.6rem, 3.2rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.hero .nationwide {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Prompt", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--text);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 8px 20px 8px 12px; margin-bottom: 20px; max-width: none;
}
.hero .nationwide svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -22px; bottom: -22px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .92rem;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 50%; background: #fdf0e7; display: grid; place-items: center; color: var(--accent); }
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge strong { display: block; font-family: "Prompt", sans-serif; }
.hero-badge small { color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 88px 0; scroll-margin-top: 60px; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* บริการ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: box-shadow .25s, transform .25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service .icon { width: 46px; height: 46px; border-radius: 12px; background: #fdf0e7; color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: .95rem; }

/* แกลเลอรี */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: zoom-in; background: var(--bg-soft);
}
.gallery img { width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  color: #fff; font-size: .9rem; opacity: 0; transition: opacity .3s;
}
.gallery figure:hover figcaption { opacity: 1; }

.gallery-empty { column-span: all; text-align: center; color: var(--muted); padding: 32px 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(255, 255, 255, .97); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1100px, 100%); border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); }
.lb-btn {
  position: absolute; background: #fff; border: 1px solid var(--line); width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; font-size: 1.4rem; color: var(--text); display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--text); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ที่อยู่ */
.address-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.info-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.info-card .sub { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fdf0e7; color: var(--accent); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list small { display: block; color: var(--muted); font-size: .82rem; }
.info-list a:hover { color: var(--accent); }
.map-link { margin-top: 24px; width: 100%; }
.map-link:hover { border-color: var(--accent); color: var(--accent); }
.map-frame {border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* CTA */
.cta {
  border: 1px solid var(--line); border-radius: 22px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff 60%, #fdf0e7);
}
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { color: var(--muted); }

/* ===== หน้าติดต่อ ===== */
.page-head { padding: 64px 0 24px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 600px; margin-inline: auto; }

.contact-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: .93rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d93a3a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .9rem; color: var(--muted); transition: .2s;
}
.chips input:checked + span { border-color: var(--accent); color: var(--accent); background: #fdf0e7; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: #eaf7ee; color: #1f7a3d; }
.form-status.err { display: block; background: #fdecec; color: #b42a2a; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.side-stack { display: grid; gap: 20px; }
.quick-call {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
}
.quick-call:hover { background: var(--accent-dark); }
.quick-call .ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.quick-call .ic svg { width: 22px; height: 22px; }
.quick-call small { display: block; opacity: .85; }
.quick-call strong { font-family: "Prompt", sans-serif; font-size: 1.35rem; letter-spacing: .5px; }
.side-photo { border-radius: var(--radius); overflow: hidden; }
.side-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-grid p { color: var(--muted); font-size: .9rem; }
.copyright { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 24px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
/* จอใหญ่ (1600px+) */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  body { font-size: 17px; }
}
/* แท็บเล็ตแนวนอน / โน้ตบุ๊กเล็ก */
@media (max-width: 1100px) {
  .menu { gap: 20px; }
}
@media (max-width: 980px) {
  .hero-grid, .address-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; bottom: -18px; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 4px; }
  .menu a.active { box-shadow: none; color: var(--accent); }
  .menu .btn { margin-top: 8px; width: 100%; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 24px; }
  .cta { padding: 32px 24px; }
  .brand-text small { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .gallery figcaption { opacity: 1; font-size: .78rem; padding: 24px 10px 8px; }
  .page-head { padding: 40px 0 8px; }
}
/* มือถือเล็ก (≤ 480px) */
@media (max-width: 480px) {
  .nav { height: 64px; }
  .menu { top: 64px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.1rem; }
  .hero { padding: 28px 0 48px; }
  .hero-grid { gap: 36px; }
  .hero p { font-size: 1rem; }
  .hero .nationwide { font-size: 1.02rem; padding: 7px 16px 7px 10px; }
  .hero-actions .btn, .cta .btn, .form-card .btn { width: 100%; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -28px 12px 0; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .form-card, .info-card { padding: 20px 16px; }
  .quick-call { padding: 18px 16px; }
  .quick-call strong { font-size: 1.2rem; }
  .map-frame, .map-frame iframe { min-height: 300px; }
}
/* มือถือเล็กมาก (≤ 360px) */
@media (max-width: 360px) {
  .gallery { columns: 1; }
  .brand-text strong { font-size: 1rem; }
}
/* มือถือแนวนอน (จอเตี้ย) */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox img { max-height: 70vh; }
  .lightbox-caption { bottom: 6px; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
}
