/* =============================================
   ช่างดี / changd.work — Main Stylesheet
   Minimal · Conversion-Focused · Mobile-First
   ============================================= */

:root {
  --primary: #1a2744;
  --primary-light: #2a3a6a;
  --accent: #2563EB;
  --cta-green: #25D366;
  --cta-green-dark: #1ebe58;
  --cta-orange: #FF6B2B;
  --cta-orange-dark: #e05a1f;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--font); }

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; }
p { color: var(--text-muted); }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--primary); margin-bottom: 8px; }
.section-title p { max-width: 560px; margin: 0 auto; }

/* ── Badge ── */
.badge {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   HEADER — Home
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--cta-orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo span { opacity: 0.7; font-size: 0.75rem; font-weight: 400; display: block; }

.header-cta { display: flex; gap: 8px; align-items: center; }
.btn-tel {
  background: var(--cta-orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-line {
  background: var(--cta-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-tel:hover { background: var(--cta-orange-dark); }
.btn-line:hover { background: var(--cta-green-dark); }

/* ══════════════════════════════════════
   HEADER — Service Pages
   ══════════════════════════════════════ */
.service-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.service-header-top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-header-nav {
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.service-header-nav::-webkit-scrollbar { display: none; }
.service-header-nav ul {
  display: flex;
  gap: 4px;
  padding: 8px 20px;
  white-space: nowrap;
}
.service-header-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.service-header-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.back-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 4px;
}
.back-link:hover { color: #fff; }

/* ══════════════════════════════════════
   HOME HERO
   ══════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-inner { position: relative; }
.home-hero h1 { color: #fff; margin-bottom: 16px; }
.home-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--cta-orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--cta-orange-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--cta-green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-secondary:hover { background: var(--cta-green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════
   SERVICE CARDS (Home)
   ══════════════════════════════════════ */
.services-section { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s;
  display: block;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.service-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.service-card p { font-size: 0.88rem; margin-bottom: 16px; }
.service-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* icon bg colors */
.ic-blue   { background: rgba(37,99,235,0.1);  color: #2563EB; }
.ic-green  { background: rgba(22,163,74,0.1);   color: #16a34a; }
.ic-orange { background: rgba(234,88,12,0.1);   color: #ea580c; }
.ic-purple { background: rgba(124,58,237,0.1);  color: #7c3aed; }
.ic-teal   { background: rgba(13,148,136,0.1);  color: #0d9488; }
.ic-red    { background: rgba(220,38,38,0.1);   color: #dc2626; }

/* ══════════════════════════════════════
   SERVICE HERO
   ══════════════════════════════════════ */
.service-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 50px;
  color: #fff;
}
.service-hero h1 { color: #fff; margin-bottom: 14px; }
.service-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin-bottom: 28px; }
.service-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
}
.trust-item .icon { font-size: 1.1rem; }

/* ══════════════════════════════════════
   PAIN POINTS
   ══════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pain-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pain-item .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pain-item h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.pain-item p { font-size: 0.82rem; }

/* ══════════════════════════════════════
   SERVICES LIST
   ══════════════════════════════════════ */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}
.service-item .icon { font-size: 1.6rem; flex-shrink: 0; }
.service-item h3 { color: var(--primary); margin-bottom: 4px; font-size: 0.95rem; }
.service-item p { font-size: 0.82rem; }

/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card .price-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.price-card .price-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.price-card .price-unit { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.price-note {
  text-align: center;
  margin-top: 20px;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.88rem;
  color: var(--primary);
}

/* ══════════════════════════════════════
   PROCESS
   ══════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.process-step h3 { color: var(--primary); margin-bottom: 6px; font-size: 0.95rem; }
.process-step p { font-size: 0.82rem; }

/* ══════════════════════════════════════
   WHY US
   ══════════════════════════════════════ */
.why-section { background: var(--primary); color: #fff; }
.why-section .section-title h2 { color: #fff; }
.why-section .section-title p { color: rgba(255,255,255,0.7); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.why-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.why-item .icon { font-size: 2rem; margin-bottom: 12px; }
.why-item h3 { color: #fff; margin-bottom: 6px; font-size: 1rem; }
.why-item p { color: rgba(255,255,255,0.65); font-size: 0.84rem; }

/* ══════════════════════════════════════
   REVIEWS
   ══════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 0.95rem; margin-bottom: 12px; }
.review-text { font-size: 0.9rem; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border);
}
.reviewer-name { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.reviewer-detail { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-soft); }
.faq-arrow { flex-shrink: 0; font-size: 0.75rem; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ══════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════ */
.contact-section { background: var(--bg-soft); }
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 90px; }
.file-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-submit {
  width: 100%;
  background: var(--cta-green);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--cta-green-dark); }
.form-or {
  text-align: center;
  margin: 20px 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}
.form-or::before, .form-or::after {
  content: '';
  position: absolute;
  top: 50%; width: 40%;
  height: 1px;
  background: var(--border);
}
.form-or::before { left: 0; }
.form-or::after { right: 0; }
.direct-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.direct-contact a {
  flex: 1; min-width: 130px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dc-tel { background: #fff3ee; color: var(--cta-orange); border: 1.5px solid #ffcbb0; }
.dc-tel:hover { background: var(--cta-orange); color: #fff; }
.dc-line { background: #e8fdf0; color: #16a34a; border: 1.5px solid #86efac; }
.dc-line:hover { background: var(--cta-green); color: #fff; }

/* ══════════════════════════════════════
   FINAL CTA BANNER
   ══════════════════════════════════════ */
.final-cta {
  background: linear-gradient(135deg, var(--cta-orange) 0%, #ff8c42 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta p { color: rgba(255,255,255,0.88); margin-bottom: 28px; }
.final-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--cta-orange);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { background: #fff3ee; }
.btn-white-line { background: var(--cta-green); color: #fff; padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-white-line:hover { background: var(--cta-green-dark); }

/* ══════════════════════════════════════
   FLOATING / STICKY BOTTOM BAR (Mobile)
   ══════════════════════════════════════ */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 10px 16px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.floating-cta-inner { display: flex; gap: 8px; }
.floating-cta a {
  flex: 1;
  padding: 11px 6px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  line-height: 1.2;
}
.floating-cta a .ficon { font-size: 1.1rem; }
.fc-tel { background: var(--cta-orange); color: #fff; }
.fc-line { background: var(--cta-green); color: #fff; }
.fc-form { background: var(--primary); color: #fff; }

/* Desktop floating buttons */
.desktop-float {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.desktop-float a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-hover);
  transition: transform 0.2s;
}
.desktop-float a:hover { transform: scale(1.1); }
.df-tel { background: var(--cta-orange); color: #fff; }
.df-line { background: var(--cta-green); color: #fff; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 24px;
  text-align: center;
  font-size: 0.88rem;
}
footer .logo { justify-content: center; margin-bottom: 16px; }
footer .footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
footer .footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
footer .footer-links a:hover { color: #fff; }
footer .copyright { color: rgba(255,255,255,0.4); font-size: 0.78rem; }

/* ══════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }

/* Spacer for mobile sticky bar */
.mobile-spacer { display: none; height: 74px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 24px 20px; }
  .floating-cta { display: block; }
  .desktop-float { display: none; }
  .mobile-spacer { display: block; }
  .service-hero { padding: 40px 0 36px; }
  .section { padding: 44px 0; }
  .header-cta .btn-line { display: none; }
}
@media (max-width: 480px) {
  .home-hero { padding: 50px 0 44px; }
  .hero-cta-row .btn-secondary { display: none; }
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;600;700&display=swap');
