:root {
  --navy: #1E293B;
  --navy-light: #334155;
  --blue: #EA580C;
  --blue-light: #F97316;
  --blue-dark: #C2410C;
  --sky: #FB923C;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --max: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans Thai", "Inter", sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }

.container {
  width: min(var(--max), 90%);
  margin: 0 auto;
}

.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--gray-50); }

/* -- Header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}

.logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover { color: var(--blue); }

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  padding: 14px 32px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  padding: 14px 32px;
  color: var(--blue);
  background: transparent;
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.06);
}

.btn-white {
  padding: 14px 32px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-mini {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
}

.btn-mini:hover { background: var(--blue-dark); }

.btn-cta-orange {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: #EA580C;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  animation: pulse-orange 2s infinite;
}

.btn-cta-orange:hover {
  background: #ea580c;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.btn-line {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: #06C755;
  border-radius: 6px;
}

.btn-line:hover { background: #05a948; }

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }
  50% { box-shadow: 0 2px 16px rgba(249, 115, 22, 0.5); }
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -- Typography -- */
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-dark .eyebrow { color: var(--sky); }

h1, h2, h3, h4 { line-height: 1.3; }

h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
}

.section-dark .section-desc { color: rgba(255, 255, 255, 0.7); }

/* -- Hero -- */
.hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(37, 99, 235, 0.05), transparent 60%),
    var(--white);
}

.hero-inner { max-width: 720px; }

.hero-copy {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.9;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

/* -- Services Grid -- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--blue);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--gray-50);
}

.service-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--gray-900); }
.service-card p { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.7; }

.card-price {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
}

.card-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
}

/* -- About Grid -- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p { color: var(--gray-600); margin-bottom: 16px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-feat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}

.about-feat h4 { font-size: 15px; margin-bottom: 4px; color: var(--navy); }
.about-feat p { font-size: 13px; color: var(--gray-500); margin: 0; }

/* -- Flow -- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-step { text-align: center; padding: 24px 16px; }

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-dark .flow-num { background: rgba(255, 255, 255, 0.15); color: var(--sky); }
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--gray-500); margin: 0; }
.section-dark .flow-step p { color: rgba(255, 255, 255, 0.65); }

/* -- CTA Section -- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy), #1a3a7a);
  color: var(--white);
  text-align: center;
}

.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255, 255, 255, 0.75); margin-bottom: 32px; font-size: 16px; }

/* -- Service Page Hero -- */
.service-hero {
  padding: 100px 0 60px;
  background: var(--navy);
  color: var(--white);
}

.service-hero .eyebrow { color: var(--sky); }
.service-hero h1 { color: var(--white); }
.service-hero p { color: rgba(255, 255, 255, 0.75); font-size: 17px; max-width: 600px; margin-bottom: 28px; }

.service-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* -- Features Grid -- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* -- Subsidy Banner -- */
.subsidy-banner {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.subsidy-banner p { margin: 0; font-size: 15px; color: var(--gray-700); }
.subsidy-banner strong { color: var(--blue); }

/* -- Footer -- */
.footer {
  padding: 48px 0 32px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot-logo {
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.foot-logo small { display: block; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.footer p { font-size: 14px; margin-top: 0; }
.foot-title { color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy { font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* -- Breadcrumb -- */
.breadcrumb { padding: 12px 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.breadcrumb a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* -- Contact Form -- */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-required { color: #ef4444; font-size: 12px; margin-left: 4px; }

/* -- About Page -- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mission-text p { color: rgba(255, 255, 255, 0.7); font-size: 16px; margin-bottom: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* -- Reveal Animation -- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* -- Responsive -- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .service-hero { padding: 80px 0 48px; }
  .header { position: relative; }
  .nav { display: none; }

  .services-grid,
  .features-grid,
  .flow-grid,
  .values-grid,
  .about-features,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-stats { flex-direction: row; gap: 24px; flex-wrap: wrap; }
  .hero .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .subsidy-banner { flex-direction: column; text-align: center; }
}

/* -- Hamburger -- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav.open { display: flex; }
}

/* -- FAQ -- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 40px 20px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { content: "\2212"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p { padding: 0 0 20px; font-size: 15px; color: var(--gray-600); line-height: 1.8; margin: 0; }

/* -- Fixed CTA Bar -- */
.fixed-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  gap: 8px;
}

.fixed-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.fixed-cta-bar .cta-mail { background: var(--blue); color: var(--white); }
.fixed-cta-bar .cta-line { background: #06C755; color: var(--white); }

@media (max-width: 768px) {
  .fixed-cta-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* -- Scroll Popup -- */
.scroll-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.scroll-popup-overlay.show { display: flex; }

.scroll-popup {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.scroll-popup h3 { font-size: 22px; margin-bottom: 8px; color: var(--navy); }
.scroll-popup p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.scroll-popup .popup-cta { display: flex; flex-direction: column; gap: 10px; }

.scroll-popup .popup-cta a {
  display: block;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
}

.scroll-popup .popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
}

.scroll-popup .popup-close:hover { color: var(--gray-800); }

/* -- LINE Floating Button -- */
.line-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  animation: line-pulse 2s infinite;
}

.line-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(6, 199, 85, 0.5);
}

.line-float svg { flex-shrink: 0; }

@keyframes line-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(6, 199, 85, 0.6); }
}

@media (max-width: 768px) {
  .line-float { bottom: 80px; right: 16px; padding: 12px; border-radius: 50%; }
  .line-float span { display: none; }
}
