@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --primary-bg: #f0fdfa;
  --surface-dark: #0f172a;
  --text-base: #475569;
  --text-heading: #0f172a;
  --border-light: #f1f5f9;
  --border-medium: #e2e8f0;
  --slate-50: #f8fafc;
  --teal-accent: #2dd4bf;
  --gold-accent: #f59e0b;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-section: 112px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-base);
  line-height: 1.625;
  background-color: var(--slate-50);
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Language Toggle Logic */
html[lang="th"] .lang-en { display: none !important; }
html[lang="en"] .lang-th { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  text-align: center;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px */
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 1.25rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Language Switcher Button */
.lang-switch {
  background: var(--border-light);
  border: none;
  border-radius: var(--radius-full);
  padding: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-base);
}

.lang-switch span {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s, color 0.2s;
}

html[lang="th"] .lang-switch .sw-th,
html[lang="en"] .lang-switch .sw-en {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-heading);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -3px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--slate-50);
}

/* Hero Section */
.hero {
  padding-top: calc(64px + var(--space-section));
  padding-bottom: var(--space-section);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--surface-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_bg.png?v=2');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  animation: heroZoom 20s infinite alternate linear;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.hero .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.trust-item svg {
  color: var(--primary);
}

/* Sections */
section {
  padding: var(--space-section) 0;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Service icon */
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
  transition: background 0.2s;
}
.card:hover .service-icon {
  background: var(--primary);
  color: white;
}

/* Testimonial avatar */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.testimonial-card {
  text-align: left;
}
.quote-icon {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

/* Contact Form */
.contact-form {
  max-width: 560px;
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px var(--space-md);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal-accent);
}
select.form-input option {
  background-color: var(--surface-dark);
  color: white;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Custom Dropdown Style 4 (from demo_dropdowns.php) — Teal Palette */
.dropdown-container {
  position: relative;
  width: 100%;
}
.dropdown-btn {
  width: 100%;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: white;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
  transition: all 0.2s ease;
  outline: none;
}
.dropdown-btn:hover {
  background: rgba(13, 148, 136, 0.15);
}
.dropdown-btn:focus, .dropdown-btn.active {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.3), 0 4px 16px rgba(13, 148, 136, 0.15);
  border-color: rgba(20, 184, 166, 0.5);
}
.dropdown-val {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown-icon, .custom-select-icon {
  width: 16px;
  height: 16px;
  color: var(--teal-accent);
}
.dropdown-btn svg { width: 16px; height: 16px; color: var(--teal-accent); }
.dropdown-arrow { transition: transform 0.2s ease; }
.dropdown-btn.active .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  z-index: 100;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface-dark);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 6px;
}
.dropdown-option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: white;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.dropdown-option svg { width: 14px; height: 14px; color: var(--teal-accent); }
.dropdown-option:hover {
  background: var(--teal-accent);
  color: var(--surface-dark);
}
.dropdown-option:hover svg { color: var(--surface-dark); }

/* Problem / Services / Process Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Problem Section */
.problem-section {
  background-color: var(--slate-50);
}

.problem-card {
  text-align: center;
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}

/* Services */
.services-section {
  background-color: white;
}

.service-card {
  text-align: left;
}

/* Process Section */
.process-section {
  background-color: var(--slate-50);
}

.process-step {
  position: relative;
  padding-left: var(--space-xl);
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Pricing Section */
.pricing-section {
  background-color: white;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.popular {
  border-color: var(--teal-accent);
  box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.1);
  position: relative;
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: var(--radius-full);
}

.price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: var(--space-md) 0;
}

.pricing-features {
  margin: var(--space-lg) 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.pricing-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--slate-50);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: var(--space-md);
}

/* Testimonials */
.testimonials-section {
  background-color: white;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
}

/* FAQ */
.faq-section {
  background-color: var(--slate-50);
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 300px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
  background-color: var(--surface-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('assets/hero_bg_4.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

.cta-section h2 {
  color: white;
}

.cta-subtitle {
  margin-top: var(--space-md);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background-color: white;
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-col .logo {
  margin-bottom: var(--space-md);
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--text-base);
  max-width: 400px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-base);
  margin-bottom: var(--space-sm);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col p {
    margin: 0 auto;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav-controls {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    align-items: flex-start;
  }
  
  .nav-controls.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  
  .nav-links a {
    width: 100%;
    padding: var(--space-sm) 0;
  }
  
  .lang-switch {
    margin-top: var(--space-md);
    align-self: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .stats-bar {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .stats-divider { display: none; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p {
    margin: 0 auto;
  }
}

/* ============================================================
   STATS BAR — Global Social Proof
   ============================================================ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-xl);
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stats-number {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats-number span {
  color: var(--teal-accent);
}

.stats-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: var(--space-section) 0;
  background: var(--slate-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars svg {
  color: var(--gold-accent);
  fill: var(--gold-accent);
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-base);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-heading);
  font-family: var(--font-display);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-base);
}

/* ============================================================
   CARD UPGRADES — Polished shadows & hover
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

