:root {
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --teal-bg: #F0FDFA;
  --navy: #1E3A5F;
  --navy-light: #2D4A7A;
  --white: #FFFFFF;
  --gray: #F3F4F6;
  --gray-light: #F9FAFB;
  --gray-dark: #E5E7EB;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  --font: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal-bg);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.hide-mobile {
  display: inline;
}

section {
  padding: 88px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--teal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link img {
  height: 48px;
  width: auto;
  display: block;
}

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

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav a:hover {
  color: var(--teal);
  background: var(--teal-bg);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--gray);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.hero {
  padding: 72px 0 88px;
  background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 50%, #F8FAFC 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, #CCFBF1, #F0FDFA);
  color: var(--teal-dark);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  width: fit-content;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-eng {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.trust-bar {
  background: var(--white);
  padding: 48px 0;
}

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

.trust-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.trust-card--blue {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.trust-card--blue:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.trust-card--green {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
}

.trust-card--green:hover {
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.trust-card--teal {
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
}

.trust-card--teal:hover {
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.trust-card--purple {
  background: linear-gradient(135deg, #FAF5FF, #EDE9FE);
}

.trust-card--purple:hover {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.trust-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trust-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
}

.trust-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.trust-status {
  color: #059669;
}

.about {
  background: var(--gray-light);
}

.about-wrapper {
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card:nth-child(1) {
  border-color: #FDE68A;
}

.service-card:nth-child(1)::before {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.service-card:nth-child(2) {
  border-color: #A7F3D0;
}

.service-card:nth-child(2)::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.service-card:nth-child(3) {
  border-color: #93C5FD;
}

.service-card:nth-child(3)::before {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.service-card:nth-child(4) {
  border-color: #C4B5FD;
}

.service-card:nth-child(4)::before {
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.service-icon--amber {
  background: #FEF3C7;
}

.service-icon--green {
  background: #D1FAE5;
}

.service-icon--blue {
  background: #DBEAFE;
}

.service-icon--purple {
  background: #EDE9FE;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.location {
  background: var(--gray-light);
}

.location-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.location-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.location-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.location-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 24px;
}

.location-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.location-desc:last-of-type {
  margin-bottom: 28px;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--teal-bg);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.12);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.location-pin {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.location-map {
  background: #E2E8F0;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.location-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  max-height: 380px;
}

.company-info {
  background: var(--white);
}

.info-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-header {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding: 20px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-body {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--gray-dark);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  padding: 16px 24px;
  background: var(--gray-light);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text);
  border-right: 1px solid var(--gray-dark);
}

.info-value {
  padding: 16px 24px;
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.6;
}

.badge-active {
  display: inline-flex;
  align-items: center;
  padding: 3px 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 6px;
}

.contact {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-box {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-info-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-bg);
  border-radius: var(--radius-sm);
}

.contact-detail-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-detail-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-card {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-dark);
}

.map-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #E2E8F0;
  margin-bottom: 12px;
}

.map-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-form {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.required {
  color: #EF4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-dark);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: all var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.footer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #E2E8F0;
  padding: 60px 0 32px;
  border-top: 3px solid var(--teal);
}

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

.footer-brand img {
  height: 44px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.925rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F1F5F9;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: #94A3B8;
  margin-bottom: 10px;
  font-size: 0.925rem;
  transition: all var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--teal-light);
  padding-left: 4px;
}

.footer-note {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.6;
  margin-top: 20px;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  text-align: center;
  color: #64748B;
  font-size: 0.85rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--gray);
  color: var(--text);
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-right: 32px;
}

.modal-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-visual img {
    max-width: 400px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-body {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 280px;
    order: -1;
  }

  .location-map img {
    max-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 2px solid var(--teal);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-eng {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-grid {
    gap: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .location-info {
    padding: 32px 28px;
  }

  .location-info h2 {
    font-size: 1.65rem;
  }

  .location-map {
    min-height: 220px;
  }

  .location-map img {
    max-height: 220px;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .info-label {
    border-right: none;
    border-bottom: 1px solid var(--gray-dark);
    padding: 14px 20px 8px;
  }

  .info-value {
    padding: 8px 20px 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .modal {
    padding: 32px 24px;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 32px 24px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-info-box {
    padding: 28px 20px;
  }

  .hide-mobile {
    display: none;
  }
}
