/* ==========================================================================
   RC รับซื้อคอมถึงบ้าน — แลนดิ้งเพจ 999
   โทน: กรมท่า (น่าเชื่อถือ) + ทอง (อบอุ่น เป็นกันเอง)
   ========================================================================== */

:root {
  --navy-900: #071528;
  --navy-800: #0a1c34;
  --navy-700: #0d2a52;
  --navy-600: #143a6e;
  --navy-line: #1c3f70;

  --gold-400: #f2d688;
  --gold-500: #e9c250;
  --gold-600: #c99c2c;

  --ink: #16202e;
  --ink-soft: #4a5a6e;
  --paper: #fbf8f2;
  --paper-card: #ffffff;
  --paper-warm: #f4eee2;

  --line-green: #06c755;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(10, 28, 52, .06), 0 6px 18px rgba(10, 28, 52, .07);
  --shadow-card-hover: 0 2px 4px rgba(10, 28, 52, .08), 0 14px 30px rgba(10, 28, 52, .12);

  --wrap: 1120px;
  --bar-h: 68px; /* ความสูงแถบปุ่มลอยบนมือถือ */
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

.section { padding-block: 64px; }
.section--tight { padding-block: 52px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  color: var(--gold-600); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }

.section-title { font-size: 28px; margin-bottom: 12px; }
.section-lead { font-size: 17px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 32px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, .3); }
.btn--line:hover { background: #05b34c; box-shadow: 0 10px 26px rgba(6, 199, 85, .38); transform: translateY(-2px); }

.btn--call { background: var(--gold-500); color: #2a1f05; box-shadow: 0 6px 18px rgba(201, 156, 44, .3); }
.btn--call:hover { background: var(--gold-400); transform: translateY(-2px); }

.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(233, 194, 80, .5); }
.btn--ghost:hover { background: rgba(233, 194, 80, .14); border-color: var(--gold-500); transform: translateY(-2px); }

/* ==========================================================================
   แถบหัวเว็บ
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 21, 40, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(233, 194, 80, .18);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }

.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(160deg, #14345f, #0a1c34);
  border: 1px solid rgba(233, 194, 80, .45);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 19px; letter-spacing: .5px;
  color: var(--gold-500);
}
.brand__name { color: #fff; font-weight: 700; font-size: 17px; line-height: 1.25; }
.brand__sub { display: none; color: #86a9d4; font-size: 14px; letter-spacing: .08em; line-height: 1.5; }
@media (min-width: 600px) { .brand__sub { display: inline; } }

.nav { display: none; gap: 26px; }
.nav a { color: #cbdcf2; text-decoration: none; font-size: 15.5px; font-weight: 500; padding-block: 6px; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.topbar .btn { min-height: 42px; padding: 0 18px; font-size: 15.5px; display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .topbar .btn { display: inline-flex; }
}

/* ==========================================================================
   แบนเนอร์ (hero) — ชนขอบจอทุกด้าน
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* ฉากหลังบรรยากาศ เอามาจากโปสเตอร์ เบลอหนักเพื่อไม่ให้แย่งสายตา */
.hero__ambient {
  position: absolute; inset: -12%;
  background-image: url("img/poster-navy-gold-sm.webp");
  background-size: cover; background-position: center;
  filter: blur(46px) saturate(1.15) brightness(.62);
  opacity: .55;
  z-index: -2;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 85% at 18% 10%, rgba(20, 58, 110, .55), transparent 62%),
    linear-gradient(180deg, rgba(7, 21, 40, .78) 0%, rgba(7, 21, 40, .88) 55%, var(--navy-900) 100%);
}
.hero__inner {
  display: grid; gap: 26px;
  padding-block: 30px 44px;
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: rgba(233, 194, 80, .12);
  border: 1px solid rgba(233, 194, 80, .38);
  color: var(--gold-400);
  font-size: 14.5px; font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 { font-size: 31px; margin-bottom: 14px; letter-spacing: -0.02em; }
.hero h1 .hl {
  color: var(--gold-500);
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: 17px; color: #c3d6ef; margin: 0 0 22px; max-width: 46ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 168px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.hero__trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; color: #b7cceb;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 13px; border-radius: 999px;
}
.hero__trust svg { color: var(--gold-500); }

/* โปสเตอร์ของลูกค้า — สัดส่วนจริง 1:1 ไม่ครอปแม้แต่นิดเดียว */
.hero__poster { position: relative; margin-inline: auto; width: 100%; max-width: 430px; }
.hero__poster img {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}
.hero__poster::after {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border-radius: 30px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(233, 194, 80, .3), transparent 70%);
  filter: blur(26px);
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 52px; padding-block: 68px 82px; }
  .hero h1 { font-size: 50px; }
  .hero__lead { font-size: 19px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__poster { max-width: 460px; }
}
@media (min-width: 1100px) { .hero h1 { font-size: 58px; } }

/* ==========================================================================
   จุดเด่น
   ========================================================================== */
.points { background: var(--paper-warm); }
.points__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.point {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.point:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.point__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(160deg, #14345f, #0a1c34);
  color: var(--gold-500);
}
.point h3 { font-size: 17.5px; margin-bottom: 6px; }
.point p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

@media (min-width: 768px) { .points__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ==========================================================================
   ขั้นตอน
   ========================================================================== */
.steps__grid { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 24px 20px 22px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--gold-500);
}
.step__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-700); color: var(--gold-500);
  font-weight: 700; font-size: 15px;
  margin-bottom: 13px;
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

@media (min-width: 640px) { .steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ==========================================================================
   บริการ
   ========================================================================== */
.services { background: var(--navy-900); color: #fff; position: relative; }
.services .section-title { color: #fff; }
.services .section-lead { color: #a9c3e2; }
.services .eyebrow { color: var(--gold-500); }

.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service {
  background: linear-gradient(165deg, rgba(20, 58, 110, .55), rgba(10, 28, 52, .75));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 194, 80, .55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.service__icon { color: var(--gold-500); margin-bottom: 14px; }
.service h3 { font-size: 17.5px; margin-bottom: 7px; color: #fff; }
.service p { margin: 0; font-size: 15.5px; color: #a9c3e2; line-height: 1.65; }

@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* รายการของที่รับซื้อ */
.accepts { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--navy-line); }
.accepts h3 { font-size: 18px; color: #fff; margin-bottom: 16px; }
.accepts ul { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.accepts li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: #cfe0f5;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; padding: 7px 15px;
}
.accepts li svg { color: var(--gold-500); flex: none; }

/* ==========================================================================
   เกี่ยวกับร้าน
   ========================================================================== */
.about__inner { display: grid; gap: 30px; align-items: center; }
.about p { color: var(--ink-soft); margin: 0 0 16px; }
.about p:last-of-type { margin-bottom: 0; }
.about__figure { margin: 0; max-width: 460px; margin-inline: auto; width: 100%; }
.about__figure img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.about__note {
  margin-top: 22px; padding: 16px 18px;
  background: var(--paper-warm); border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
  font-size: 15.5px; color: var(--ink);
}
@media (min-width: 860px) {
  .about__inner { grid-template-columns: 1fr .85fr; gap: 56px; }
  .about__figure { order: 2; }
}

/* ==========================================================================
   แกลเลอรี — โปสเตอร์จัตุรัส 1:1 ตามไฟล์จริง ไม่ครอป ไม่มีกรอบ
   ========================================================================== */
.gallery { background: var(--paper-warm); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery__item {
  padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit;
  border-radius: var(--radius-sm); overflow: hidden;
  transition: transform .2s ease;
}
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.gallery__item:hover { transform: translateY(-3px); }
.gallery__item:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; }

@media (min-width: 480px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ไลท์บ็อกซ์ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(5, 13, 25, .93);
  padding: 20px;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(94vw, 720px); max-height: 86vh;
  width: auto; height: auto;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* ==========================================================================
   คำถามที่พบบ่อย
   ========================================================================== */
.faq__list { display: grid; gap: 10px; max-width: 780px; }
.faq__item {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600; font-size: 16.5px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   ติดต่อ
   ========================================================================== */
.contact { background: var(--navy-900); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-lead { color: #a9c3e2; }
.contact .eyebrow { color: var(--gold-500); }

.contact__grid { display: grid; gap: 14px; }
.contact__card {
  background: linear-gradient(165deg, rgba(20, 58, 110, .5), rgba(10, 28, 52, .7));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact__card h3 { font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; }
.contact__card h3 svg { color: var(--gold-500); flex: none; }
.contact__card p { margin: 0; color: #a9c3e2; font-size: 15.5px; }
.contact__card .big {
  display: inline-flex; align-items: center; min-height: 46px;
  font-size: 25px; font-weight: 700; color: var(--gold-500); letter-spacing: .5px; text-decoration: none;
}
.contact__card .big:hover { color: var(--gold-400); }
.contact__card .btn { margin-top: auto; }
.contact__hours { display: grid; gap: 4px; }
.contact__hours div { display: flex; justify-content: space-between; gap: 16px; color: #cfe0f5; font-size: 15.5px; }

@media (min-width: 720px) { .contact__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   ท้ายหน้า
   ========================================================================== */
.footer {
  background: #050f1e; color: #8fa9c8;
  padding-block: 38px;
  font-size: 15px;
  padding-bottom: calc(38px + var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
.footer__inner { display: grid; gap: 20px; }
.footer .brand__name { font-size: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 10px; list-style: none; margin: 0; padding: 0; }
.footer__links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding-inline: 6px;
  text-decoration: none; color: #8fa9c8;
}
.footer__links a:hover { color: var(--gold-500); }
.footer__legal { border-top: 1px solid #12263f; padding-top: 18px; font-size: 14px; color: #6d87a5; line-height: 1.7; }
.footer__tel { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-500); text-decoration: none; }

@media (min-width: 860px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
  .footer { padding-bottom: 38px; }
}

/* ==========================================================================
   ปุ่มลอยล่างจอ (มือถือ)
   ========================================================================== */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 21, 40, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(233, 194, 80, .22);
}
.callbar .btn { min-height: 50px; font-size: 16px; padding: 0 14px; }
@media (min-width: 860px) { .callbar { display: none; } }

/* ==========================================================================
   อนิเมชัน — ปรากฏตอนเลื่อนถึง เล่นครั้งเดียว
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover, .point:hover, .service:hover, .gallery__item:hover { transform: none; }
}

/* เข้าถึงได้ */
:where(a, button, summary):focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--gold-500); color: #2a1f05; padding: 10px 18px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
