/* ============================================================
   ปะยางนอกสถานที่ — Professional Trust Local Service
   Design: Soft Sky Blue + Gold (น้ำเงินอ่อน + ทอง)
   ============================================================ */

:root {
  /* Primary — Soft Sky Blue */
  --pri:    #5B9BD5;
  --pri-2:  #3A74B0;
  --pri-3:  #1E3A5F;
  --pri-l:  #B8D4F5;
  --pri-l2: #D6E9FF;
  --pri-l3: #EBF4FF;
  --pri-l4: #F4F9FF;

  /* Secondary — Gold */
  --gold:   #D4A017;
  --gold-2: #E8B830;
  --gold-3: #F5D06A;
  --gold-l: #FFF3C4;
  --gold-l2:#FFFAE8;
  --gold-d: #A87B0E;

  /* Accents */
  --line:   #06C755;

  /* Neutrals */
  --tx:     #1A3050;
  --tx-m:   #3F5878;
  --tx-s:   #5A7A9A;
  --bg:     #EFF6FF;
  --card:   #FFFFFF;
  --br:     #C8DEFF;

  /* Effects */
  --sh:     0 4px 18px rgba(91,155,213,.13), 0 1px 4px rgba(91,155,213,.08);
  --sh-2:   0 12px 40px rgba(91,155,213,.20), 0 2px 8px rgba(91,155,213,.10);
  --sh-g:   0 6px 22px rgba(212,160,23,.30);

  --r:      18px;
  --r-s:    12px;
  --r-l:    24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Noto Sans Thai', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  font-size: 15px;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,243,196,.40) 0%, transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(184,212,245,.35) 0%, transparent 30%),
    radial-gradient(circle, rgba(184,212,245,.30) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  padding-bottom: 86px;
}

a { color: var(--pri-2); text-decoration: none; transition: .2s; }
a:hover { color: var(--gold-d); }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--pri-l3); }
::-webkit-scrollbar-thumb { background: var(--pri-l); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--pri); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold-3);
  box-shadow: 0 2px 16px rgba(91,155,213,.10);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 50px; height: 50px;
  border-radius: 14px;
  border: 2.5px solid var(--gold-3);
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(212,160,23,.22), 0 0 0 4px var(--gold-l2);
  object-fit: contain;
}
.brand-text {
  display: flex; flex-direction: column;
  font-weight: 700; color: var(--pri-3);
}
.brand-text strong {
  font-size: 1.1rem; line-height: 1.1;
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-weight: 700;
}
.brand-text small {
  font-size: .72rem; font-weight: 500;
  color: var(--tx-s); margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2.5px; background: var(--pri-2); border-radius: 2px;
  transition: .25s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; left: 0; transform: none; }
.nav-toggle span::after  { top:  7px; left: 0; transform: none; }

.nav-menu {
  list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-menu a {
  display: inline-block;
  padding: 9px 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--pri-2);
  border-radius: 11px;
  transition: .2s;
}
.nav-menu a:hover { background: var(--pri-l3); color: var(--pri-3); }
.nav-menu .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff !important;
  box-shadow: var(--sh-g);
  font-weight: 700;
  margin-left: 6px;
}
.nav-menu .nav-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; right: 14px; left: 14px;
    flex-direction: column; align-items: stretch;
    background: #fff;
    border: 2px solid var(--pri-l);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--sh-2);
    transform: scaleY(0); transform-origin: top;
    opacity: 0; pointer-events: none;
    transition: .2s;
  }
  .nav-menu.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-menu .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: .22s;
  white-space: nowrap;
}
.btn-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff;
  box-shadow: var(--sh-g);
}
.btn-call:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(212,160,23,.45);
}
.btn-line {
  background: linear-gradient(135deg, var(--line), #04A847);
  color: #fff;
  box-shadow: 0 6px 20px rgba(6,199,85,.30);
}
.btn-line:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(6,199,85,.42);
}
.btn-ghost {
  background: #fff;
  color: var(--pri-2);
  border: 2px solid var(--pri-l);
  box-shadow: var(--sh);
}
.btn-ghost:hover {
  background: var(--pri-l3);
  border-color: var(--pri);
  transform: translateY(-2px);
  color: var(--pri-2);
}
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,243,196,.35) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(184,212,245,.40) 0%, transparent 32%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pri-3);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold), var(--gold-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  text-align: center;
  font-size: 1.08rem;
  color: var(--tx-m);
  max-width: 700px;
  margin: 0 auto 22px;
  line-height: 1.7;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 20px;
}
.hero-badge {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-radius: 50px;
  padding: 7px 15px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pri-2);
  box-shadow: var(--sh);
  display: inline-flex; align-items: center; gap: 5px;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-lead { font-size: .95rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 44px 0; }
.section-deco {
  display: block; text-align: center;
  font-size: 1.4rem; margin-bottom: 8px;
  letter-spacing: 6px;
  color: var(--gold-2);
}
.section-title {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pri-3);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.section-sub {
  text-align: center;
  color: var(--tx-s);
  font-size: .98rem;
  margin-bottom: 28px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   PROMO GALLERY (5 images linking to LINE)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery a {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  border: 2px solid var(--pri-l);
  box-shadow: var(--sh);
  transition: .25s;
  background: #fff;
}
.gallery a:hover {
  transform: translateY(-4px);
  border-color: var(--gold-3);
  box-shadow: var(--sh-2);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SERVICES (Symptom cards)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-radius: var(--r);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--sh);
  transition: .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--gold-l2), transparent 70%);
  border-radius: 50%;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-3);
  box-shadow: var(--sh-2);
}
.service-card .ic {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(91,155,213,.25));
}
.service-card h3 {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pri-3);
  margin-bottom: 5px;
  position: relative;
}
.service-card p {
  font-size: .85rem;
  color: var(--tx-s);
  line-height: 1.55;
  margin: 0;
  position: relative;
}

/* ============================================================
   AREAS / ROADS
   ============================================================ */
.area-card {
  background: linear-gradient(135deg, #fff 0%, var(--pri-l4) 100%);
  border: 2px solid var(--pri-l);
  border-radius: var(--r-l);
  padding: 26px 24px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--gold-l2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.area-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.area-ic {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-g);
}
.area-head h2 {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 1.25rem;
  color: var(--pri-3);
  margin-bottom: 2px;
  font-weight: 700;
}
.area-head p {
  font-size: .88rem;
  color: var(--tx-s);
  margin: 0;
}
.road-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.road-chip {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  color: var(--pri-2);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: .86rem;
  font-weight: 600;
  transition: .2s;
}
.road-chip:hover {
  background: linear-gradient(135deg, var(--gold-l2), var(--gold-l));
  border-color: var(--gold-3);
  color: var(--gold-d);
  transform: translateY(-2px);
}
.areas-note {
  margin-top: 14px;
  font-size: .83rem;
  color: var(--tx-s);
  font-style: italic;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.why-item {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-radius: var(--r);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--sh);
  transition: .25s;
}
.why-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-3);
  box-shadow: var(--sh-2);
}
.why-ic {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pri-l3), var(--pri-l));
  font-size: 1.7rem;
}
.why-item h3 {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 1rem;
  color: var(--pri-3);
  margin-bottom: 5px;
}
.why-item p {
  font-size: .87rem;
  color: var(--tx-s);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.steps li {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  position: relative;
  font-size: .95rem;
  color: var(--tx-m);
  line-height: 1.6;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Mali', sans-serif;
  font-weight: 700;
  box-shadow: var(--sh-g);
}
.steps li strong { color: var(--pri-3); }

/* ============================================================
   REVIEWS (6 image cards → LINE)
   ============================================================ */
.reviews-section {
  background: linear-gradient(135deg, #EEF7FF, #FFF9EE);
  border-radius: var(--r-l);
  padding: 36px 24px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.review-card {
  background: #fff;
  border-radius: var(--r);
  border: 1.5px solid var(--pri-l);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: .25s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-3);
  box-shadow: var(--sh-2);
}
.review-card a { display: block; color: inherit; text-decoration: none; }
.review-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.review-body { padding: 14px 16px; }
.review-stars { color: var(--gold); font-size: .95rem; margin-bottom: 5px; }
.review-text { font-size: .88rem; color: var(--tx); line-height: 1.55; font-style: italic; }
.review-author { font-size: .8rem; color: var(--tx-s); margin-top: 8px; font-weight: 600; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pri-2) 0%, var(--pri-3) 100%);
  border-radius: var(--r-l);
  padding: 38px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,160,23,.22) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184,212,245,.18) 0%, transparent 40%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-family: 'Mali', 'Sarabun', sans-serif;
  font-size: 1.55rem;
  margin-bottom: 6px;
  color: #fff;
}
.cta-banner p {
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
}

/* ============================================================
   AREA INDEX (homepage list of all 116 areas)
   ============================================================ */
.area-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.area-link {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-radius: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--pri-2);
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--sh);
  transition: .2s;
}
.area-link:hover {
  background: linear-gradient(135deg, var(--gold-l2), var(--gold-l));
  border-color: var(--gold-3);
  color: var(--gold-d);
  transform: translateY(-2px);
}
.area-link .num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  font-family: 'Mali', sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--pri-3) 0%, #102438 100%);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 2.5px solid var(--gold-3);
  background: #fff; padding: 3px;
  object-fit: contain;
}
.footer-brand strong {
  display: block;
  font-family: 'Mali', sans-serif;
  font-size: 1.15rem;
  color: #fff;
}
.footer-brand small {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}
.site-footer h4 {
  font-family: 'Mali', sans-serif;
  color: var(--gold-3);
  font-size: 1rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}
.site-footer ul a:hover { color: var(--gold-3); }
.footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   STICKY BOTTOM CALL BAR
   ============================================================ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, #fff 100%);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--gold-3);
  padding: 10px 14px;
  display: flex; gap: 10px;
  box-shadow: 0 -8px 32px rgba(91,155,213,.18);
}
.sticky-bar::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold), var(--gold-2));
  background-size: 200% 100%;
  animation: shineBar 3s linear infinite;
}
@keyframes shineBar { to { background-position: -200% 0; } }
.sticky-bar .btn {
  flex: 1;
  padding: 13px;
  font-size: 1rem;
  border-radius: 14px;
  position: relative;
}
.sticky-bar .btn-call {
  font-weight: 700;
  font-size: 1.02rem;
  animation: callPulse 2.5s ease-in-out infinite;
}
@keyframes callPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.025); }
}
.sticky-bar .btn-line { flex: 0 0 auto; padding: 13px 18px; }
@media (min-width: 900px) {
  .sticky-bar {
    max-width: 380px;
    margin: 0 auto;
    bottom: 18px;
    border-radius: 24px;
    border: 2px solid var(--gold-3);
    box-shadow: 0 16px 48px rgba(91,155,213,.30), 0 4px 12px rgba(212,160,23,.20);
  }
}

/* ============================================================
   AREA-DETAIL PAGE HERO
   ============================================================ */
.detail-hero {
  position: relative;
  padding: 38px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--pri-l3) 0%, transparent 100%);
}
.breadcrumb {
  font-size: .86rem;
  color: var(--tx-s);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--pri-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-d); }

/* ============================================================
   PAGINATION (prev/next at area-detail bottom)
   ============================================================ */
.pager {
  display: flex; justify-content: space-between;
  gap: 12px; margin-top: 30px;
  flex-wrap: wrap;
}
.pager a {
  background: #fff;
  border: 1.5px solid var(--pri-l);
  border-radius: var(--r);
  padding: 14px 20px;
  text-decoration: none;
  color: var(--pri-2);
  font-weight: 600;
  flex: 1; min-width: 0;
  box-shadow: var(--sh);
  transition: .2s;
}
.pager a:hover {
  background: linear-gradient(135deg, var(--gold-l2), var(--gold-l));
  border-color: var(--gold-3);
  transform: translateY(-2px);
  color: var(--gold-d);
}
.pager .small {
  display: block;
  font-size: .76rem;
  color: var(--tx-s);
  font-weight: 500;
  margin-bottom: 2px;
}
.pager .pager-next { text-align: right; }
