@charset "UTF-8";

/* ==========================================
   1. VARIABLES (ตั้งค่าโทนสีเหลืองและฟอนต์)
========================================== */
:root {
  --theme-yellow: #FACC15;       /* สีเหลืองสว่าง (สีหลัก) */
  --theme-yellow-dark: #CA8A04;  /* สีเหลืองเข้ม (ข้อความเน้น/Hover) */
  --theme-black: #111111;        /* สีพื้นหลังเข้ม */
  --theme-dark: #1f2937;         /* สีพื้นหลังเทาเข้ม */
  --theme-warm: #fefce8;         /* สีพื้นหลังครีม/เหลืองอ่อน */
  --theme-light: #f8fafc;        /* สีเทาอ่อน */
  --theme-white: #ffffff;        
  --text-main: #1f2937;          /* สีข้อความหลัก */
  --text-muted: #64748b;         /* สีข้อความรอง */
  --line-color: #06c755;         /* สีเขียวปุ่ม LINE */
  --font-heading: 'Prompt', sans-serif;
  --font-body: 'Sarabun', 'Prompt', sans-serif;
}

/* ==========================================
   2. RESET & BASE
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--theme-white);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}
a {
  text-decoration: none;
  transition: all 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 80px 0;
}
.section-dark {
  background-color: var(--theme-dark);
  color: var(--theme-white);
}
.section-warm {
  background-color: var(--theme-warm);
}
.section-light {
  background-color: var(--theme-light);
}

/* ==========================================
   3. TYPOGRAPHY & COMPONENTS
========================================== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.eyebrow {
  display: inline-block;
  color: var(--theme-yellow-dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 15px;
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-title p {
  color: #cbd5e1;
}
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--theme-yellow);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold {
  background-color: var(--theme-yellow);
  color: #000;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}
.btn-gold:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}
.btn-line {
  background-color: var(--line-color);
  color: var(--theme-white);
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
  background-color: #05a044;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--theme-yellow-dark);
  color: var(--theme-yellow-dark);
}
.btn-outline:hover {
  background-color: var(--theme-yellow);
  color: #000;
  border-color: var(--theme-yellow);
}

/* ==========================================
   4. HEADER & TOPBAR
========================================== */
.topbar {
  background-color: var(--theme-yellow);
  color: #000;
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-heading);
  font-weight: 500;
}
.topbar a {
  color: #000;
  font-weight: 700;
}
.site-header {
  background-color: var(--theme-black);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  background-color: var(--theme-yellow);
  color: #000;
  font-size: 18px;
  font-weight: 900;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.brand-text {
  color: var(--theme-white);
  display: flex;
  flex-direction: column;
}
.brand-text strong {
  font-size: 18px;
  color: var(--theme-yellow);
}
.brand-text small {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
}
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}
.menu a {
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
}
.menu a:hover {
  color: var(--theme-yellow);
}
.nav-cta {
  display: flex;
  gap: 10px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--theme-yellow);
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================
   5. HERO SECTION
========================================== */
.hero {
  background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.95)), url('https://rtdai.co.th/pig/ccf0.jpg') center/cover;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--theme-white);
  padding: 100px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
}
.hero .accent {
  color: var(--theme-yellow);
}
.hero h2 {
  font-size: 18px;
  font-weight: 400;
  color: #cbd5e1;
  margin-bottom: 40px;
  line-height: 1.8;
  font-family: var(--font-body);
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}
.hero-stat strong {
  display: block;
  font-size: 32px;
  color: var(--theme-yellow);
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat span {
  font-size: 13px;
  color: #94a3b8;
}
.hero-cta {
  display: flex;
  gap: 15px;
}
.hero-img img {
  width: 100%;
  border-radius: 20px;
  border: 3px solid var(--theme-yellow);
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.2);
}

/* ==========================================
   6. TRUST STRIP
========================================== */
.trust-strip {
  background-color: var(--theme-yellow);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item .ico {
  font-size: 36px;
  margin-bottom: 10px;
}
.trust-item h4 {
  color: #000;
  font-size: 18px;
  margin-bottom: 5px;
}
.trust-item p {
  color: #333;
  font-size: 14px;
}

/* ==========================================
   7. SERVICES GRID
========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--theme-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--theme-yellow);
}
.service-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.service-body {
  padding: 30px 25px;
  position: relative;
}
.service-num {
  position: absolute;
  top: -20px;
  right: 25px;
  width: 40px;
  height: 40px;
  background-color: var(--theme-yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 8px;
  font-family: var(--font-heading);
}
.service-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--theme-dark);
}
.service-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.service-body .more {
  color: var(--theme-yellow-dark);
  font-weight: 700;
  font-size: 15px;
}

/* ==========================================
   8. PROCESS
========================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.process-step {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #374151;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--theme-yellow);
  color: var(--theme-yellow);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}
.process-step h3 {
  color: var(--theme-yellow);
  margin-bottom: 10px;
}

/* ==========================================
   9. PROMO SECTION
========================================== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.promo-img img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.promo-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.promo-content .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.promo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 40px;
}
.promo-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.promo-feature .check {
  color: var(--theme-yellow-dark);
  font-weight: bold;
  font-size: 18px;
}

/* ==========================================
   10. GALLERY
========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(250, 204, 21, 0.95);
  color: #000;
  font-weight: 700;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-cap {
  transform: translateY(0);
}

/* ==========================================
   11. CALCULATOR
========================================== */
.calc-wrap {
  background: var(--theme-white);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.calc-wrap h3 {
  color: #000;
  font-size: 24px;
  margin-bottom: 5px;
  text-align: center;
}
.calc-wrap .sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}
.field input, .field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--theme-yellow-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
}
.calc-result {
  margin-top: 30px;
  padding: 20px;
  background: var(--theme-warm);
  border: 2px solid var(--theme-yellow-dark);
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--theme-yellow-dark);
}

/* ==========================================
   12. KNOWLEDGE & ARTICLES
========================================== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.knowledge-card {
  background: var(--theme-white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-top: 4px solid var(--theme-yellow);
}
.knowledge-card .ico {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--theme-yellow-dark);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.article-card {
  background: var(--theme-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.article-img img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-body {
  padding: 25px;
}
.article-tag {
  display: inline-block;
  background: var(--theme-yellow);
  color: #000;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}
.article-body h3 a {
  color: #000;
}
.article-body h3 a:hover {
  color: var(--theme-yellow-dark);
}

/* ==========================================
   13. REVIEWS & FAQ
========================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--theme-white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.review-stars {
  color: var(--theme-yellow-dark);
  font-size: 20px;
  margin-bottom: 15px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}
.review-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.review-name strong { display: block; }
.review-name span { font-size: 13px; color: var(--text-muted); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: var(--theme-dark);
  border: 1px solid #374151;
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  color: var(--theme-yellow-dark);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  padding: 0 20px 20px;
  color: #cbd5e1;
}

/* ==========================================
   14. PROVINCES (พื้นที่บริการ)
========================================== */
.fs-loc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.fs-loc-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--theme-yellow-dark);
  border-radius: 50px;
  font-size: 14px;
  color: var(--theme-yellow-dark);
  background-color: transparent;
  font-weight: 600;
}
.fs-loc-pill:hover {
  background-color: var(--theme-yellow);
  color: #000;
  border-color: var(--theme-yellow);
}

/* ==========================================
   15. CTA BANNER & FOOTER
========================================== */
.cta-banner {
  text-align: center;
  padding: 80px 20px;
}
.cta-banner h2 { margin-bottom: 15px; }
.cta-banner p { margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.site-footer {
  background-color: var(--theme-black);
  color: #94a3b8;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  color: var(--theme-yellow);
  font-size: 24px;
  margin-bottom: 20px;
}
.footer-grid h4 {
  color: var(--theme-yellow);
  font-size: 18px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--theme-yellow); }
.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-contact-item .ico {
  color: var(--theme-yellow-dark);
  font-size: 20px;
}
.footer-contact-item a { color: #fff; font-weight: 600; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  font-size: 14px;
}

/* ==========================================
   16. MOBILE FLOAT CTA
========================================== */
.float-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--theme-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 9999;
}
.float-cta .btn { flex: 1; text-align: center; }

/* ==========================================
   17. RESPONSIVE (MOBILE)
========================================== */
@media (max-width: 992px) {
  .hero-grid, .promo-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { text-align: center; padding: 60px 0; }
  .hero-stats, .hero-cta { justify-content: center; }
  .float-cta { display: flex; gap: 10px; }
  body { padding-bottom: 70px; } /* เผื่อที่ให้ Float CTA */
}
@media (max-width: 480px) {
  .footer-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 15px; }
  .btn { width: 100%; justify-content: center; }
}