/* ============================================
   webnambut — เว็บขายบริการทำเว็บ 4,900
   โทน: น้ำเงินเข้ม tech-professional
   ============================================ */
:root {
  --brand: #2743c7;
  --brand-dark: #16247a;
  --brand-tint: #eef1fd;
  --line-green: #06c755;
  --ink: #1c2030;
  --ink-soft: #575e73;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(22, 36, 122, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h2 { font-size: 1.9rem; font-weight: 800; line-height: 1.4; margin-bottom: 0.8rem; }
h3 { font-size: 1.1rem; font-weight: 700; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-big { font-size: 1.15rem; padding: 0.95rem 2.4rem; }

/* ---------- แถบบน ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eaf3;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.logo { font-weight: 800; font-size: 1.2rem; color: var(--brand-dark); flex: 1; }
.logo em { font-style: normal; color: var(--line-green); }

.topnav { display: flex; gap: 1.3rem; }
.topnav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--brand); }
.topbar-cta { padding: 0.45rem 1.2rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, var(--brand-dark) 0%, var(--brand) 85%);
  color: #fff;
  text-align: center;
  padding: 5rem 0 4.5rem;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}

.price-tag {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 0.1em 0.45em;
  margin-top: 0.3em;
}

.lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 1.2rem auto 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-solid { background: #fff; color: var(--brand-dark); }

.hero-hook {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Pain ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.pain {
  background: var(--bg);
  border: 1px solid #e8eaf3;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.pain-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.pain h3 { margin-bottom: 0.4rem; }
.pain p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- ผลงาน ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.work {
  display: block;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.work:hover { transform: translateY(-4px); }
.work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.work-label {
  display: block;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.work-cta { display: block; color: var(--brand); font-weight: 700; margin-top: 0.2rem; }

.work-next {
  border: 2px dashed #c3c9e2;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.work-next-inner { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.work-next strong { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- แพ็กเกจ + ขั้นตอน ---------- */
.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.checklist { list-style: none; margin-top: 1.4rem; }

.checklist li {
  position: relative;
  padding: 0 0 0.8rem 2rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.steps { list-style: none; counter-reset: s; margin-top: 1.4rem; }

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.3rem 3rem;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong { color: var(--ink); }

/* ---------- ราคา ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg);
  border: 1px solid #e8eaf3;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.price-main { border: 2px solid var(--brand); text-align: center; }
.price-label { font-weight: 700; color: var(--ink-soft); margin-bottom: 0.4rem; }

.price-num {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.price-num span { font-size: 1.8rem; }

.price-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.7rem; }
.price-main .btn { margin-top: 1.4rem; }

.addons { list-style: none; margin-top: 0.8rem; }

.addons li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef0f7;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.addons strong { color: var(--brand); white-space: nowrap; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid #e8eaf3;
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-top: 0.8rem;
  background: var(--bg);
}

details[open] { box-shadow: var(--shadow); }

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--brand);
}

details[open] summary::after { content: "−"; }
details p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- CTA ปิดท้าย ---------- */
.cta-final {
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 90%);
  color: #fff;
  padding: 4.5rem 0;
}

.cta-final p { color: rgba(255, 255, 255, 0.85); margin: 0.6rem 0 1.8rem; }

/* ---------- Footer ---------- */
.footer {
  background: #10173f;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.6rem 0;
  font-size: 0.9rem;
  text-align: center;
  /* กันปุ่มลอยบังข้อความบนมือถือ */
  padding-bottom: 5.5rem;
}

.footer a { color: #fff; }

/* ---------- ปุ่มลอย ---------- */
.float-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.float-line { background: var(--line-green); }

/* ---------- Responsive ---------- */
@media (min-width: 761px) {
  .float-actions { display: none; }
  .footer { padding-bottom: 1.6rem; }
}

@media (max-width: 860px) {
  .package-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topnav, .topbar-cta { display: none; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
}
