:root {
  --primary: #0a7b4b;
  --primary-dark: #065c37;
  --primary-light: #0e945a;
  --accent: #f5a623;
  --accent-dark: #d98c0f;
  --dark: #15251c;
  --gray-800: #2c3e35;
  --gray-600: #5a6b62;
  --gray-400: #93a39a;
  --light: #f4f9f6;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(10, 123, 75, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 123, 75, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Sarabun", "Kanit", "Tahoma", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--primary-dark);
  color: #d7fbeb;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #eaffe9; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-left span { margin-right: 18px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(21, 37, 28, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 52px; height: auto; }
.logo .brand-name { font-weight: 700; font-size: 20px; color: var(--primary-dark); line-height: 1.2; }
.logo .brand-sub { font-size: 13px; color: var(--gray-600); }
.quick-contact { display: flex; align-items: center; gap: 14px; }
.quick-contact .qc-item { text-align: right; font-size: 13px; color: var(--gray-600); }
.quick-contact .qc-item strong { display: block; font-size: 16px; color: var(--primary-dark); }

/* ============ NAVIGATION (Desktop) ============ */
.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; flex-shrink: 0; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: var(--primary); background: var(--light); }
.main-nav .has-sub > a::after { content: "\2304"; margin-left: 6px; font-size: 12px; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 999;
  padding: 6px 0;
}
.main-nav > ul > li:hover .submenu { display: block; }
.submenu a { display: block; padding: 10px 18px; font-size: 15px; color: var(--gray-800); }
.submenu a:hover { background: var(--light); color: var(--primary); }
.btn-line-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn-line-nav:hover { background: #05b54d; color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--primary-dark); margin: 5px 0; border-radius: 3px; }

/* ============ MOBILE NAV DRAWER ============ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.open { right: 0; }
.mobile-nav .mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav .mn-close { background: none; border: none; font-size: 28px; color: var(--gray-800); cursor: pointer; line-height: 1; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid #eef3f0; }
.mobile-nav ul li a { display: block; padding: 13px 6px; font-weight: 600; color: var(--gray-800); font-size: 16px; }
.mobile-nav ul li a:hover { color: var(--primary); }
.mobile-nav .mn-sub { padding-left: 16px; }
.mobile-nav .mn-sub li a { font-weight: 400; font-size: 15px; color: var(--gray-600); }
.mobile-nav .mn-cta { margin-top: 18px; display: block; text-align: center; }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(10,123,75,0.35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #3a2a00; box-shadow: 0 6px 18px rgba(245,166,35,0.4); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 6px 18px rgba(6,199,85,0.4); }
.btn-line:hover { background: #05b54d; color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--light); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: 40px; line-height: 1.35; margin-bottom: 18px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: #d7fbeb; max-width: 620px; margin-bottom: 28px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 18px;
}
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.hero-feature { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.hero-feature .hf-icon { font-size: 20px; }
.hero-card {
  background: #fff; border-radius: var(--radius); padding: 30px; color: var(--gray-800);
  box-shadow: var(--shadow-lg); text-align: center;
}
.hero-card .hc-img { width: 90px; margin: 0 auto 14px; }
.hero-card h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 6px; }
.hero-card .hc-price { font-size: 26px; font-weight: 800; color: var(--accent-dark); }
.hero-card p { font-size: 15px; color: var(--gray-600); margin-bottom: 16px; }

/* ============ SECTIONS ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--primary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }
.section-head h2 { font-size: 32px; color: var(--dark); margin: 8px 0 12px; line-height: 1.3; }
.section-head p { color: var(--gray-600); font-size: 17px; }

/* ============ FEATURE BOXES ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-box {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--primary); transition: transform 0.2s ease;
}
.feature-box:hover { transform: translateY(-6px); }
.feature-box .fb-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.feature-box h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 8px; }
.feature-box p { font-size: 15px; color: var(--gray-600); }

/* ============ SERVICE GRID ============ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card .sc-icon { width: 64px; height: 64px; margin: 0 auto; display: block; }
.service-card .sc-body { padding: 26px; flex: 1; }
.service-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; line-height: 1.4; }
.service-card p { font-size: 15px; color: var(--gray-600); }
.service-card .sc-foot { padding: 16px 26px; border-top: 1px solid #eef3f0; }
.service-card .sc-foot a { font-weight: 700; font-size: 15px; }

/* ============ BANNER ============ */
.banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner img { width: 100%; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 40px; color: var(--primary); font-weight: 800; }
.stat-item p { color: var(--gray-600); font-weight: 600; }
.stat-item { background: #fff; border-radius: var(--radius); padding: 30px 16px; box-shadow: var(--shadow); }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.testi-item { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.testi-item img { width: 100%; border-radius: var(--radius-sm); }
.testi-item .ti-name { font-weight: 700; color: var(--primary-dark); margin-top: 12px; font-size: 15px; }

/* ============ CONTACT INFO BOXES ============ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.contact-card .cc-icon { font-size: 34px; margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: var(--gray-600); margin-bottom: 6px; word-break: break-word; }
.contact-card a.btn { margin-top: 8px; font-size: 14px; padding: 10px 20px; }

/* ============ BREADCRUMB ============ */
.breadcrumb { background: var(--light); padding: 14px 0; font-size: 14px; border-bottom: 1px solid #e8efece; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); font-weight: 600; }

/* ============ PAGE CONTENT ============ */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0; }
.page-hero h1 { font-size: 34px; margin-bottom: 6px; }
.page-hero p { color: #d7fbeb; }

.content-block { padding: 60px 0; }
.content-article { max-width: 860px; margin: 0 auto; }
.content-article h2 { color: var(--primary-dark); font-size: 26px; margin: 30px 0 14px; }
.content-article h3 { color: var(--dark); font-size: 21px; margin: 24px 0 10px; }
.content-article p { margin-bottom: 16px; color: var(--gray-800); }
.content-article ul, .content-article ol { margin: 0 0 18px 24px; color: var(--gray-800); }
.content-article li { margin-bottom: 8px; }
.content-article img.center-img { margin: 20px auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-article blockquote { border-left: 4px solid var(--primary); background: var(--light); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; font-style: italic; }
.content-article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.content-article th, .content-article td { border: 1px solid #e0e8e4; padding: 10px 14px; text-align: left; }
.content-article th { background: var(--light); color: var(--primary-dark); }
.content-article .cta-box { background: var(--light); border-radius: var(--radius); padding: 26px; text-align: center; margin: 28px 0; }
.content-article .cta-box h3 { margin-top: 0; }

/* ============ ARTICLE LIST ============ */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.article-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.article-card .ac-body { padding: 24px; flex: 1; }
.article-card .ac-cat { font-size: 13px; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.article-card h3 { font-size: 19px; color: var(--dark); margin: 8px 0 10px; line-height: 1.45; }
.article-card h3 a { color: var(--dark); }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { font-size: 15px; color: var(--gray-600); }
.article-card .ac-more { margin-top: auto; padding: 16px 24px; border-top: 1px solid #eef3f0; }

/* ============ HOW TO ORDER STEPS ============ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-box { position: relative; background: #fff; border-radius: var(--radius); padding: 34px 26px 26px; box-shadow: var(--shadow); }
.step-box::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 44px; height: 44px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(245,166,35,0.4);
}
.step-box h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 8px; }
.step-box p { font-size: 15px; color: var(--gray-600); }

/* ============ PAYMENT ============ */
.pay-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; }
.pay-card .pay-bank { text-align: center; font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.pay-card table { width: 100%; margin: 16px 0; }
.pay-card td { padding: 10px; border-bottom: 1px solid #eef3f0; font-size: 16px; }
.pay-card td:first-child { color: var(--gray-600); font-weight: 600; width: 38%; }
.pay-card td:last-child { color: var(--dark); }

/* ============ CONTACT PAGE ============ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.contact-form h2 { color: var(--primary-dark); margin-bottom: 18px; font-size: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; color: var(--gray-800); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #dce6e1; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--gray-800); background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-info-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.contact-info-box h3 { color: var(--primary-dark); margin-bottom: 12px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.contact-info-box p { font-size: 15px; color: var(--gray-600); margin-bottom: 6px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark); color: #c9d6cf; padding: 56px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-grid .fg-brand img { width: 46px; margin-bottom: 10px; }
.footer-grid .fg-brand p { color: #a9bcb2; font-size: 14px; margin-top: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { color: #c9d6cf; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-contact p { margin-bottom: 8px; color: #c9d6cf; }
.footer-contact strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #8ba197; }
.footer-bottom a { color: #a9bcb2; margin-left: 14px; }
.footer-bottom a:hover { color: var(--accent); }

/* ============ FLOATING BUTTONS ============ */
.float-buttons { position: fixed; bottom: 24px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 1500; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.float-btn:hover { transform: scale(1.08); }
.float-line { background: #06c755; }
.float-tel { background: var(--primary); }
.float-btn svg { fill: #fff; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6,199,85,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(6,199,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); }
}

/* ============ BOTTOM MOBILE BAR ============ */
.bottom-mobile-bar { display: none; }

/* ============ SCROLL TOP ============ */
.scroll-top { position: fixed; bottom: 24px; left: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-lg); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* ============ FAQ ============ */
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 700; color: var(--primary-dark); cursor: pointer; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--gray-600); font-size: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .quick-contact { display: none; }
  .logo .brand-sub { display: none; }
  .main-nav { gap: 8px; }
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li > a { padding: 8px 8px; font-size: 14px; }
  .btn-line-nav { padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar .tb-right { display: none; }
  .quick-contact { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand-name { font-size: 17px !important; }
  .hero h1 { font-size: 29px; }
  .hero p.lead { font-size: 17px; }
  .section { padding: 50px 0; }
  .services, .features, .testi-grid, .contact-cards, .steps { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .page-hero h1 { font-size: 26px; }
  .float-buttons { bottom: 86px; }
  .scroll-top { bottom: 86px; }
  .bottom-mobile-bar {
    display: grid;
    position: fixed; bottom: 0; left: 0; right: 0;
    grid-template-columns: repeat(4, 1fr);
    background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
    z-index: 1600;
  }
  .bottom-mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: 11px; color: var(--gray-600); font-weight: 600; }
  .bottom-mobile-bar a.active { color: var(--primary); }
  .bottom-mobile-bar a .bm-icon { font-size: 20px; line-height: 1; }
  body { padding-bottom: 64px; }
  .hero { padding: 44px 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-item h3 { font-size: 32px; }
}