:root {
  --color-darkest: #01000C;
  --color-dark: #060127;
  --color-primary: #13064D;
  --color-light: #F7F8FA;
  --color-accent: #2e189a;
  --color-bg: #ffffff;
  --color-bg-soft: #F7F8FA;
  --color-text: #0d0a2e;
  --color-text-muted: #5a5670;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Prompt', 'Kanit', sans-serif;
}

/* ===== Scroll Reveal Animation System ===== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transition:
      opacity 0.85s cubic-bezier(.2,.6,.2,1),
      transform 0.85s cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
  }
  [data-reveal="left"]  { transform: translate3d(-60px, 0, 0); }
  [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
  [data-reveal="up"]    { transform: translate3d(0, 40px, 0); }
  [data-reveal="down"]  { transform: translate3d(0, -40px, 0); }
  [data-reveal="zoom"]  { transform: scale(0.92); }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; }
}

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

html, body {
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* ===== Premium Header — Single Bar ===== */
:root {
  --header-h: 76px;
  --header-h-scrolled: 64px;
  --color-cta: #06C755;
  --color-cta-hover: #05a847;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  /* Top state: fully transparent — text becomes dark for light hero */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s cubic-bezier(.4,0,.2,1),
    box-shadow 0.4s cubic-bezier(.4,0,.2,1),
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

/* Top state: dark text/logo over light hero */
.site-header:not(.scrolled) .logo-name {
  color: var(--color-primary);
}

.site-header:not(.scrolled) .logo-tag {
  color: rgba(19, 6, 77, 0.55);
}

.site-header:not(.scrolled) .logo img {
  border-color: rgba(19, 6, 77, 0.15);
  box-shadow: 0 3px 12px rgba(19, 6, 77, 0.18);
}

.site-header:not(.scrolled) .nav-links a {
  color: rgba(19, 6, 77, 0.78);
}

.site-header:not(.scrolled) .nav-links a:hover {
  color: var(--color-primary);
  background: rgba(19, 6, 77, 0.06);
}

.site-header:not(.scrolled) .nav-links a.active {
  color: var(--color-primary);
  background: rgba(19, 6, 77, 0.1);
}

.site-header:not(.scrolled) .nav-phone {
  color: var(--color-primary);
}

.site-header:not(.scrolled) .nav-phone:hover {
  background: rgba(19, 6, 77, 0.06);
  color: var(--color-primary);
}

.site-header:not(.scrolled) .nav-phone svg {
  color: #ff6b35;
}

.site-header:not(.scrolled) .nav-phone-label {
  color: rgba(19, 6, 77, 0.55);
}

.site-header:not(.scrolled) .nav-phone-number {
  color: var(--color-primary);
}

.site-header:not(.scrolled) .hamburger .bar1,
.site-header:not(.scrolled) .hamburger .bar2,
.site-header:not(.scrolled) .hamburger .bar3 {
  background-color: var(--color-primary);
}

.site-header:not(.scrolled) .hamburger:hover {
  background: rgba(19, 6, 77, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: height 0.3s ease;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  transition: width 0.3s, height 0.3s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: 'Kanit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.logo-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* Nav links — center area */
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after { content: none; }

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav-phone:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-phone svg {
  flex-shrink: 0;
  color: #ff9466;
}

.nav-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-phone-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.nav-phone-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.3px;
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-hover));
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.5);
  color: #ffffff;
}

.btn-cta:active { transform: translateY(0); }

/* Hamburger — hidden by default (desktop doesn't need it) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  transition: background 0.2s ease;
}

/* Mobile header hamburger — always visible */
.mobile-header .hamburger {
  display: flex;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.1); }

.hamburger .bar1,
.hamburger .bar2,
.hamburger .bar3 {
  width: 24px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .bar1 { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active .bar2 { opacity: 0; }
.hamburger.active .bar3 { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Desktop / Mobile Header Visibility ===== */
.desktop-header { display: block; }
.mobile-header  { display: none; }

@media (max-width: 768px) {
  .desktop-header { display: none !important; }
  .mobile-header  { display: block !important; }
}

/* ===== MOBILE HEADER STYLES ===== */
.mobile-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s cubic-bezier(.4,0,.2,1),
    box-shadow 0.4s cubic-bezier(.4,0,.2,1),
    border-color 0.4s ease;
}

.mobile-header.scrolled {
  background: linear-gradient(135deg, rgba(13, 2, 49, 0.97), rgba(19, 6, 77, 0.97));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 4%;
}

.mobile-header .logo img {
  width: 38px;
  height: 38px;
}

.mobile-header .logo-name {
  font-size: 0.92rem;
}

/* Top state: dark text for mobile header */
.mobile-header:not(.scrolled) .logo-name {
  color: var(--color-primary);
}

.mobile-header:not(.scrolled) .mobile-nav-icon {
  color: var(--color-primary);
}

.mobile-header:not(.scrolled) .hamburger .bar1,
.mobile-header:not(.scrolled) .hamburger .bar2,
.mobile-header:not(.scrolled) .hamburger .bar3 {
  background-color: var(--color-primary);
}

.mobile-header:not(.scrolled) .hamburger:hover {
  background: rgba(19, 6, 77, 0.08);
}

.mobile-nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-nav-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-nav-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  right: -100%;
  top: 60px;
  width: 80%;
  max-width: 320px;
  height: calc(100vh - 60px);
  background: linear-gradient(180deg, rgba(13, 2, 49, 0.98), rgba(19, 6, 77, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.5rem 1.2rem;
  transition: right 0.35s cubic-bezier(.4,.2,.2,1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cta-phone,
.mobile-cta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cta-phone {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cta-phone:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mobile-cta-line {
  background: linear-gradient(135deg, #06C755, #05a847);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}

.mobile-cta-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.5);
  color: #ffffff;
}

/* Scrolled state — solid dark + shrink + stronger shadow */
.site-header.scrolled {
  background: linear-gradient(135deg, rgba(13, 2, 49, 0.97), rgba(19, 6, 77, 0.97));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.site-header.scrolled .nav-container {
  height: var(--header-h-scrolled);
}

.site-header.scrolled .logo img {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Smooth size/opacity transition for inner elements */
.nav-container,
.logo img {
  transition: height 0.4s cubic-bezier(.4,0,.2,1),
              width 0.4s cubic-bezier(.4,0,.2,1),
              border-color 0.4s ease;
}

/* General Layout */
main {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h) - 200px);
}

@media (max-width: 768px) {
  main { margin-top: var(--header-h-scrolled); }
}

.section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Cards (used in products, reviews, contact pages) */
.glass-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(19, 6, 77, 0.08);
  box-shadow: 0 4px 24px rgba(19, 6, 77, 0.08);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(19, 6, 77, 0.14);
  border-color: rgba(19, 6, 77, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  font-family: 'Prompt', 'Kanit', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(19, 6, 77, 0.25);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(46, 24, 154, 0.4);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Hero Section */
/* ===== Hero Section — Conversion Focused ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - var(--header-h));
  padding: 4rem 5% 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 45%, #eef4ff 100%);
}

.hero-bg-glow {
  position: absolute;
  top: 40%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 24, 154, 0.12) 0%, rgba(255,255,255,0) 70%);
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 6, 77, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 6, 77, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Content (left) */
.hero-content {
  position: relative;
  z-index: 2;
  animation: heroSlideIn 0.8s cubic-bezier(.4,.0,.2,1) forwards;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1.5px solid rgba(19, 6, 77, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(19, 6, 77, 0.06);
}

.hero-rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #fbbf24;
}

.hero-rating-stars svg {
  width: 16px;
  height: 16px;
}

.hero-rating-text {
  font-size: 0.86rem;
  color: #4a4566;
}

.hero-rating-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-content h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.hero-content h1 .hl {
  background: linear-gradient(120deg, #ff6b35 0%, #ff4d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.4rem;
}

.hero-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #4a4566;
  max-width: 540px;
}

/* CTAs */
.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--color-primary), #2a1480);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(19, 6, 77, 0.32);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(19, 6, 77, 0.45);
  color: #ffffff;
}

.btn-hero-primary svg {
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover svg {
  transform: translateX(3px);
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--color-primary) !important;
  border: 2px solid rgba(19, 6, 77, 0.15);
}

.btn-hero-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(19, 6, 77, 0.04);
  transform: translateY(-2px);
}

/* Trust pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4a4566;
  font-weight: 500;
}

.hero-trust svg {
  color: #06C755;
  flex-shrink: 0;
}

/* Right image */
.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroSlideIn 0.9s 0.1s cubic-bezier(.4,.0,.2,1) backwards;
}

.hero-image-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(46, 24, 154, 0.18) 0%, rgba(255,255,255,0) 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 50px rgba(19, 6, 77, 0.25));
  animation: heroFloat 6s ease-in-out infinite;
}

/* Floating cards */
.hero-float-card {
  position: absolute;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 12px 32px rgba(19, 6, 77, 0.18);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
  border: 1px solid rgba(19, 6, 77, 0.06);
}

.hero-float-price {
  bottom: 12%;
  left: 0;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-float-price-tag {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06C755, #05a847);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-price-label {
  font-size: 0.72rem;
  color: #6b6480;
  margin-bottom: 0.1rem;
}

.hero-float-price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'Kanit', sans-serif;
  line-height: 1;
}

.hero-float-price-value span {
  font-size: 0.7rem;
  font-weight: 400;
  color: #6b6480;
  margin-left: 2px;
}

.hero-float-stat {
  top: 8%;
  right: 0;
  animation: heroFloat 5s 1s ease-in-out infinite;
}

.hero-float-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff4d00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'Kanit', sans-serif;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-float-stat-label {
  font-size: 0.72rem;
  color: #6b6480;
}

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

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Stats row — full width below hero content + image */
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(19, 6, 77, 0.1);
}

.hero-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  padding: 0 1rem;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(19, 6, 77, 0.1);
}

.hero-stat-num {
  font-family: 'Kanit', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--color-primary), #2a1480 60%, #ff6b35);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #4a4566;
  font-weight: 500;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero { gap: 2rem; padding: 3rem 5% 4rem; }
  .hero-content h1 { font-size: 2.7rem; }
  .hero-content p { font-size: 1rem; }
  .hero-float-card { padding: 0.7rem 0.9rem; }
  .hero-float-price-value { font-size: 1.05rem; }
  .hero-float-stat-num { font-size: 1rem; }
  .hero-stat-num { font-size: 2.2rem; }
  .hero-stats { margin-top: 2.5rem; padding-top: 2rem; gap: 1rem; }
}

/* Tablet small / large mobile */
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.5rem;
    margin-top: 2.5rem;
  }
  .hero-stat:nth-child(2)::after { display: none; }
  .hero-stat-num { font-size: 1.9rem; }
  .hero-stat-label { font-size: 0.85rem; }
}

/* Small phone */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.85rem; }
  .hero-rating-text { font-size: 0.78rem; }
  .hero-float-card { padding: 0.55rem 0.7rem; gap: 0.5rem; }
  .hero-float-price-tag,
  .hero-float-stat-icon { width: 32px; height: 32px; }
  .hero-float-price-tag svg,
  .hero-float-stat-icon svg { width: 16px; height: 16px; }
  .hero-float-price-value { font-size: 0.95rem; }
  .hero-float-stat-num { font-size: 0.9rem; }
  .hero-float-price-label,
  .hero-float-stat-label { font-size: 0.65rem; }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-price {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.stars {
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.review-text {
  font-style: italic;
  color: var(--color-text-muted);
}

/* Contact */
.contact-container {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #f9f8ff;
  border: 1.5px solid rgba(19, 6, 77, 0.12);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 1rem;
  font-family: 'Prompt', 'Kanit', sans-serif;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 24, 154, 0.08);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--color-darkest), var(--color-primary));
  color: rgba(247,248,250,0.85);
  border-top: none;
  font-size: 0.95rem;
  position: relative;
}
.footer-top {
  padding: 4rem 3%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr 1.3fr;
  align-items: start;
  gap: 2rem;
  text-align: left;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #8a9bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-about p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.8rem;
}
.social-links a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  color: #fff;
}
.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.footer-toggle-icon {
  display: none;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '\203A';
  font-size: 1.2rem;
  color: var(--color-accent);
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  width: 100%;
}
.footer-contact-item > div {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  color: rgba(255,255,255,0.85);
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item span {
  font-size: 1.2rem;
  color: var(--color-accent);
}
.footer-bottom {
  padding: 1.5rem 5%;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.payment-methods span {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}


/* Services Intro Section (Reviews page) */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.services-intro-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services-intro-text .txt-sub {
  color: #00A1E9;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.services-intro-text h1 {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.services-intro-text h2 {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.services-intro-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.services-intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.services-intro-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.services-img-1 { height: 220px; }
.services-img-2 { height: 220px; }
.services-img-tall {
  height: 100%;
  min-height: 450px;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .services-intro {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-intro-text h1 { font-size: 2.2rem; }
  .services-intro-text h2 { font-size: 1.5rem; }
}

/* ===== Desktop Header Responsive ===== */
@media (max-width: 1024px) {
  .desktop-header .logo-tag { display: none; }
  .desktop-header .nav-links { gap: 0.1rem; }
  .desktop-header .nav-links a { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
}

@media (max-width: 900px) {
  .desktop-header .nav-phone-text { display: none; }
  .desktop-header .nav-phone {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }
  .desktop-header .nav-phone svg { width: 18px; height: 18px; }
  .desktop-header .btn-cta span { display: none; }
  .desktop-header .btn-cta {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {

  main { margin-top: 60px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 5% 4rem;
    min-height: auto;
    gap: 2rem;
  }

  .hero-rating {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

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

  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .hero-trust {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .hero-image {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-float-price {
    bottom: 5%;
    left: -8px;
    padding: 0.7rem 0.9rem;
  }
  .hero-float-stat {
    top: 5%;
    right: -8px;
    padding: 0.7rem 0.9rem;
  }
  .hero-float-price-value { font-size: 1.05rem; }
  .hero-float-stat-num { font-size: 1rem; }

  .hero-bg-glow {
    top: 20%;
    right: 50%;
    transform: translateX(50%);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  /* จัด Footer เป็น Accordion (Dropdown) บนมือถือ */
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .footer-top .footer-col {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
  }

  .footer-top .footer-col:first-child {
    padding-top: 0;
    padding-bottom: 1.5rem;
  }
  .footer-top .footer-col:last-child {
    border-bottom: none;
  }

  /* ซ่อนเนื้อหาภายในยกเว้น column แรก */
  .footer-col:not(:first-child) .footer-links,
  .footer-col:not(:first-child) .footer-contact-info {
    display: none;
    padding-top: 1rem;
    animation: fadeIn 0.3s ease;
  }
  
  /* เมื่อมีคลาส active ให้แสดงเนื้อหา */
  .footer-col.active .footer-links,
  .footer-col.active .footer-contact-info {
    display: flex;
  }

  .footer-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0.5rem 0;
  }

  .footer-title::after {
    display: none !important; /* ซ่อนเส้นขีดใต้ที่มาจากโหมด PC */
  }

  .footer-toggle-icon {
    display: block;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
  }

  .footer-col.active .footer-toggle-icon {
    transform: rotate(180deg);
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* จัดกึ่งกลางเนื้อหาภายในเมนู */
  .footer-links {
    align-items: center;
    text-align: center;
  }

  /* จัดกึ่งกลางเนื้อหาส่วนโลโก้ ข้อความ และโซเชียล */
  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-about div[style*="display: flex"] {
    justify-content: center !important;
  }
  .social-links {
    justify-content: center;
  }

  /* ปรับแต่งเนื้อหา ที่อยู่ ให้ขนาดเล็กลงนิดหน่อยและอยู่กึ่งกลาง */
  .footer-contact-info {
    align-items: center;
  }
  .footer-contact-item {
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .footer-contact-item div {
    font-size: 0.8rem !important;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.4 !important;
    flex: 0 1 auto;
  }
  .footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
  }

  /* ป้องกัน horizontal overflow ทั้งหน้า */
  main {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .section {
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Floating Action Button (FAB) */
.mobile-fab-wrapper {
    display: flex !important;
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    z-index: 99999 !important;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-fab-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-fab-wrapper.active .mobile-fab-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.mobile-fab-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.mobile-fab-item:hover {
    transform: scale(1.1);
}

.mobile-fab-phone {
    background-color: #1428a0;
}

.mobile-fab-line {
    background-color: #00b900;
}

.mobile-fab-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #5572e9;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.mobile-fab-toggle:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.mobile-fab-wrapper.active .mobile-fab-toggle {
    background-color: #3b5fe5;
}

.mobile-fab-icon-main,
.mobile-fab-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.4,.2,.2,1);
    pointer-events: none;
}

.mobile-fab-icon-main {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

.mobile-fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.6);
}

.mobile-fab-wrapper.active .mobile-fab-icon-main {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.6);
}

.mobile-fab-wrapper.active .mobile-fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

@media (max-width: 768px) {
    .mobile-fab-wrapper {
        display: flex !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    .mobile-fab-toggle {
        width: 55px;
        height: 55px;
    }
    .mobile-fab-item {
        width: 45px;
        height: 45px;
    }
}
