/* ============================================
   SUKHAWADEE - Funeral Service Website CSS
   Design: Dark Slate + Gold + Warm Cream
   ============================================ */

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --slate-900: #1a1f2e;
  --slate-800: #242938;
  --slate-700: #2e3547;
  --slate-600: #3d4460;
  --slate-400: #7d8599;
  --slate-200: #c8cdd9;
  --gold-500:  #c9a84c;
  --gold-400:  #dfc072;
  --gold-300:  #eddda0;
  --cream-100: #faf8f4;
  --cream-200: #f0ebe0;
  --white:     #ffffff;
  --text-dark: #1a1f2e;
  --text-muted:#6b7280;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(26,31,46,0.08);
  --shadow-md: 0 8px 32px rgba(26,31,46,0.12);
  --shadow-lg: 0 20px 60px rgba(26,31,46,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Sarabun', sans-serif;
  color: #f1f5f9;
  background: #0e121e;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── LAYOUT ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bg-light { background: #161b26; transition: background 0.3s ease; }
.bg-dark  { background: #0e121e; transition: background 0.3s ease; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
.gold-text { color: var(--gold-500); }
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px; margin-bottom: 16px;
}
.section-tag-light {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  padding-bottom: 2px; margin-bottom: 16px;
}
.section-title {
  font-family: 'Sarabun', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.3;
  color: #ffffff;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-desc { font-size: 1rem; color: #94a3b8; max-width: 600px; }
.section-intro { text-align: center; margin-bottom: 56px; }
.section-intro .section-desc { margin: 0 auto; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900) !important;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
}
.btn-outline-light {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white) !important; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); white-space: nowrap;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 24px; border-radius: 50px;
  border: 2px solid var(--slate-700);
  color: var(--slate-800) !important; font-weight: 600;
  transition: var(--transition);
}
.btn-outline-dark:hover {
  background: var(--slate-900); color: var(--white) !important;
}
.btn-sm-outline {
  display: inline-block;
  padding: 8px 18px; border-radius: 50px;
  border: 1.5px solid var(--gold-500);
  color: var(--gold-500) !important; font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.btn-sm-outline:hover {
  background: var(--gold-500); color: var(--slate-900) !important;
}
.btn-full { width: 100%; justify-content: center; }
.btn-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 122px; white-space: nowrap;
  padding: 10px 22px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900) !important; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
  transition: var(--transition);
}
.btn-call:hover { transform: translateY(-1px); }
.btn-admin {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 50px;
  background: rgba(255,255,255,0.1); color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.15); font-weight: 700;
  font-size: 0.9rem; transition: var(--transition);
}
.btn-admin:hover { background: rgba(255,255,255,0.18); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  background: #06C755; color: var(--white) !important;
  font-weight: 700; font-size: 0.95rem;
  transition: var(--transition);
}
.btn-line:hover { opacity: 0.9; transform: translateY(-2px); }

/* ─── FLOATING CAPSULE HEADER ─────────────────── */
#main-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 1000;
  background: transparent;
  pointer-events: none;
  padding: 0 12px;
  width: 100%;
  transition: var(--transition);
}
.header-inner {
  pointer-events: auto;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  height: 56px;
  background: rgba(14, 18, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 18px rgba(201, 168, 76, 0.12);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
}
#main-header.scrolled .header-inner {
  background: rgba(10, 13, 22, 0.98);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 168, 76, 0.2);
}

/* Brand Section */
.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-right: 4px;
  flex-shrink: 0;
}
.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
}
.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}
.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
  white-space: nowrap;
}
.badge-pro-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: var(--white);
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.65rem;
  color: var(--gold-300);
  margin-top: 1px;
  white-space: nowrap;
  font-weight: 400;
}

/* Nav Pills */
#main-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
#main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.arrow { font-size: 0.7rem; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #181d2a; border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); min-width: 230px; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
  z-index: 2000;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px 0;
  gap: 0;
}
.dropdown li {
  width: 100%;
  display: block;
}
.dropdown li a {
  display: block; padding: 10px 20px;
  color: #ffffff !important; font-size: 0.88rem;
  white-space: nowrap;
  transition: var(--transition);
  text-align: left;
}
.dropdown li a:hover { background: #252d40; color: var(--gold-400) !important; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; }

/* Header Action Badges & Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.streak-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-switch-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold-400);
  color: #ffffff;
}
.btn-capsule-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-capsule-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ─── MOBILE DRAWER ──────────────────────────── */
.mobile-drawer {
  position: fixed; top: 0; right: 0; width: 300px; height: 100%;
  background: var(--slate-900); z-index: 1100;
  transform: translateX(100%); transition: transform 0.35s ease;
  padding: 32px 24px; display: flex; flex-direction: column; gap: 32px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute; top: 20px; right: 20px;
  color: var(--slate-200); font-size: 1.2rem; padding: 8px;
}
.drawer-logo { display: flex; align-items: center; gap: 10px; }
.drawer-nav li a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85); font-size: 1rem; font-weight: 500;
}
.drawer-nav li a:hover { color: var(--gold-400); }
.drawer-contact { margin-top: auto; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 1050; opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,31,46,0.92) 0%,
    rgba(26,31,46,0.75) 50%,
    rgba(26,31,46,0.6) 100%
  );
}
.hero-content {
  position: relative; z-index: 1; max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-400); padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-title {
  font-family: 'Sarabun', sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800;
  line-height: 1.2; color: var(--white); margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex; align-items: center; gap: 28px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.stat { text-align: left; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold-400); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  width: 28px; height: 28px; border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:rotate(45deg) translate(0,0)} 50%{transform:rotate(45deg) translate(4px,4px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ─── WHY US ─────────────────────────────────── */
.why-us { padding: 100px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: #181d2a; border-radius: var(--radius-md);
  padding: 36px 28px; border: 1px solid rgba(201,168,76,0.25);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
  color: #f1f5f9;
}
.why-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon { font-size: 2.2rem; margin-bottom: 16px; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.why-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.65; }

.category-overview { padding: 80px 0; }
.category-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.category-card {
  display: block; text-decoration: none; color: inherit;
  background: #181d2a; border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 18px; background: rgba(197, 157, 15, 0.1);
  font-size: 1.6rem; margin-bottom: 18px;
}
.category-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.category-card p { font-size: 0.95rem; color: #94a3b8; line-height: 1.75; }

/* ─── PACKAGES ───────────────────────────────── */
.packages { padding: 100px 0; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; align-items: start;
}
.package-card {
  background: #181d2a; border-radius: var(--radius-lg);
  border: 1.5px solid rgba(201,168,76,0.25);
  padding: 36px 32px; position: relative;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  color: #f1f5f9;
}
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.package-card.popular {
  border-color: var(--gold-500);
  box-shadow: 0 4px 32px rgba(201,168,76,0.18);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900); font-size: 0.75rem; font-weight: 800;
  padding: 6px 20px; border-radius: 50px; letter-spacing: 0.05em;
  white-space: nowrap;
}
.package-header { text-align: center; margin-bottom: 24px; }
.package-flower { font-size: 2.5rem; margin-bottom: 12px; }
.package-name { font-size: 1.4rem; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
.package-desc { font-size: 0.9rem; color: #94a3b8; }
.package-price {
  text-align: center; margin-bottom: 28px; padding: 20px;
  background: rgba(255,255,255,0.05); border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.25);
}
.price-label { display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 4px; }
.price-amount { font-size: 1.6rem; font-weight: 800; color: var(--gold-500); }
.package-features { margin-bottom: 28px; }
.package-features li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem; color: #e2e8f0;
  display: flex; align-items: center; gap: 10px;
}
.package-features li::first-letter { color: var(--gold-500); }
.packages-note { text-align: center; margin-top: 32px; font-size: 0.85rem; color: var(--text-muted); }

/* ─── CAROUSEL ───────────────────────────────── */
.carousel-section { padding: 100px 0; }
.carousel-wrapper {
  position: relative; display: flex; align-items: center;
  margin: 0 -24px;
}
.carousel-track-container { overflow: hidden; width: 100%; padding: 12px 0; }
.carousel-track {
  display: flex; gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  padding: 0 24px;
}
.carousel-item { flex: 0 0 280px; }
.product-card {
  background: #181d2a; border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition);
  color: #f1f5f9;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-img-wrap {
  height: 200px; overflow: hidden;
  background: #131825 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="%23c9a84c" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>') no-repeat center center / 44px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; background: inherit; }
.product-img-wrap img[alt] { color: #94a3b8; font-size: 0.75rem; text-align: center; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-info { padding: 20px; }
.product-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: #ffffff; }
.product-info p { font-size: 0.82rem; color: #94a3b8; margin-bottom: 12px; line-height: 1.5; }
.product-price { display: block; font-size: 0.9rem; font-weight: 700; color: var(--gold-500); margin-bottom: 14px; }
.carousel-btn {
  position: absolute; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--slate-900); color: var(--white);
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--gold-500); color: var(--slate-900); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel-dots button, .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--slate-200); transition: var(--transition);
  border: none; cursor: pointer; padding: 0;
}
.carousel-dots button.active, .dot.active { background: var(--gold-500); width: 28px; border-radius: 5px; }

/* ─── SERVICES ───────────────────────────────── */
.services-section { padding: 100px 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.service-pillar {
  text-align: center; padding: 48px 28px;
  background: #181d2a; border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.25);
  transition: var(--transition);
  color: #f1f5f9;
}
.service-pillar:hover { background: #252d40; }
.service-pillar:hover h3, .service-pillar:hover p { color: var(--white); }
.service-icon { font-size: 2.8rem; margin-bottom: 20px; }
.service-pillar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: #ffffff; transition: var(--transition); }
.service-pillar p { font-size: 0.9rem; color: #94a3b8; line-height: 1.65; transition: var(--transition); }

/* ─── PROCESS ────────────────────────────────── */
.process-section { padding: 100px 0; }
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0; position: relative;
}
.step { padding: 0 24px; position: relative; text-align: center; }
.step-num {
  font-size: 2.5rem; font-weight: 800;
  color: var(--gold-500); margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}
.step-line {
  position: absolute; top: 22px; left: calc(50% + 36px); right: calc(-50% + 36px);
  height: 2px; background: linear-gradient(90deg, var(--gold-300), var(--cream-200));
}
.step-line.hide { display: none; }
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.step-content p { font-size: 0.88rem; color: #94a3b8; line-height: 1.65; }

/* ─── FAQ ────────────────────────────────────── */
.faq-section { padding: 100px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #181d2a; border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.25); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: #ffffff;
  transition: var(--transition);
}
.faq-question:hover { color: var(--gold-500); }
.faq-question[aria-expanded="true"] { color: var(--gold-500); }
.faq-icon {
  font-size: 1.4rem; font-weight: 300; color: var(--gold-500);
  transition: transform var(--transition); flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; padding-bottom: 4px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: #94a3b8; line-height: 1.7;
}

/* ─── REVIEWS ────────────────────────────────── */
.reviews-section { padding: 100px 0; }
.reviews-carousel { overflow: hidden; }
.review-track {
  display: flex; gap: 24px;
  transition: transform 0.5s ease;
}
.review-card {
  flex: 0 0 calc(33.333% - 16px); background: #181d2a;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg); padding: 36px 32px;
  transition: var(--transition);
  color: #f1f5f9;
}
.review-card:hover { background: #252d40; }
.stars { color: var(--gold-400); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-text {
  font-size: 0.95rem; color: #cbd5e1;
  line-height: 1.75; margin-bottom: 24px;
  font-style: italic;
}
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900); font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reviewer strong { display: block; color: var(--white); font-weight: 700; }
.reviewer span { font-size: 0.82rem; color: #94a3b8; }
.review-nav {
  display: flex; justify-content: center; gap: 10px; margin-top: 32px;
}
.review-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.2); transition: var(--transition);
  border: none; cursor: pointer; padding: 0;
}
.review-dot.active { background: var(--gold-400); width: 28px; border-radius: 5px; }

/* ─── CONTACT ────────────────────────────────── */
.contact-section { padding: 100px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info .section-title { margin-top: 12px; }
.contact-info p { color: #94a3b8; margin-bottom: 32px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.c-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.contact-item a { color: var(--gold-500); }
.contact-item a:hover { color: var(--gold-400); }
.contact-item span { color: #94a3b8; font-size: 0.9rem; }
.contact-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-form-wrap {
  background: #181d2a; border-radius: var(--radius-lg);
  padding: 48px 40px; border: 1px solid rgba(201,168,76,0.25);
  color: #f1f5f9;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; color: #ffffff; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: #cbd5e1; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  font-family: 'Sarabun', sans-serif; font-size: 0.95rem;
  background: #0f131d; color: #ffffff;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-success {
  text-align: center; padding: 40px 20px;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900); font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: var(--slate-900); }
.footer-top { padding: 80px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold-500); color: var(--slate-900); }
.footer-links h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }

/* ─── FLOAT WIDGET (DIRECT CALL & WEB INQUIRY) ── */
.float-widget {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.float-label {
  background: rgba(26,31,46,0.95);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: floatPulse 3s infinite;
  display: flex; align-items: center; gap: 6px;
}
.float-label span.gold-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); display: inline-block;
  box-shadow: 0 0 8px var(--gold-400);
}
@keyframes floatPulse { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.float-btn {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: #fff !important;
}
.float-phone {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--slate-900) !important;
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}
.float-phone::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold-400); opacity: 0.7;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.float-msg {
  background: var(--slate-800);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-400) !important;
}
@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.float-btn:hover { transform: scale(1.12); }


/* ─── LANGUAGE SWITCHER TOGGLE ─────────────── */
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--white); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.lang-switch-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.lang-switch-btn span.active-lang {
  color: var(--gold-400); font-weight: 800;
}

/* ─── SLIP UPLOAD & PAYMENT STATUS ───────────── */
.slip-upload-box {
  border: 2px dashed rgba(201,168,76,0.5);
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 24px; text-align: center;
  cursor: pointer; transition: var(--transition);
  margin: 16px 0;
}
.slip-upload-box:hover {
  border-color: var(--gold-500);
  background: rgba(201,168,76,0.06);
}
.slip-upload-icon { font-size: 2.2rem; color: var(--gold-500); margin-bottom: 8px; }
.slip-preview-img {
  max-width: 100%; max-height: 260px; object-fit: contain;
  border-radius: var(--radius-sm); border: 1px solid var(--cream-200);
  margin-top: 12px; display: block; margin-left: auto; margin-right: auto;
}
.pay-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
}
.pay-status-unpaid { background: #fee2e2; color: #991b1b; }
.pay-status-pending { background: #fef3c7; color: #92400e; }
.pay-status-paid { background: #dcfce7; color: #166534; }
.pay-status-rejected { background: #f3f4f6; color: #374151; }

.bank-info-card {
  background: var(--slate-900); color: var(--white);
  border-radius: var(--radius-md); padding: 20px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 16px; text-align: left;
}
.bank-info-card h4 { color: var(--gold-400); font-size: 1.05rem; margin-bottom: 12px; font-weight: 700; }
.bank-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 0.9rem; }
.bank-item:last-child { border-bottom: none; }
.bank-item .label { color: rgba(255,255,255,0.7); }
.bank-item .value { font-weight: 700; color: var(--gold-300); }

/* ─── POPUP MODAL SYSTEM ─────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10008;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open, .modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.9) translateY(24px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(201,168,76,0.3);
}
.modal-overlay.open .modal-container,
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--cream-100);
  color: var(--slate-700);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1280px) {
  .brand-sub { display: none; }
  .nav-link { padding: 5px 8px; font-size: 0.78rem; gap: 3px; }
}
@media (max-width: 1100px) {
  .streak-badge { display: none; }
  #main-nav { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .btn-call {
    width: 44px; min-width: 44px; height: 44px; padding: 0;
    border-radius: 50%; gap: 0; font-size: 0;
  }
  .btn-call .phone-icon { font-size: 1.2rem; line-height: 1; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.3rem; }
  .packages-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .review-card { flex: 0 0 calc(100% - 16px); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 32px 24px; }
  .float-label { display: none; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .logo-img { height: 46px; }
  .hero-cta { flex-direction: column; }
  .btn-primary-gold, .btn-outline-light { justify-content: center; }
  .contact-cta { flex-direction: column; }
  .packages-grid { gap: 16px; }
  .carousel-item { flex: 0 0 240px; }
}
.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }

/* ─── THEME TOGGLE BUTTON ─────────────────── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* ─── LIGHT MODE OVERRIDES ─────────────────── */
body.light-mode {
  background: #f8fafc !important;
  color: #0f172a !important;
}
body.light-mode .bg-light {
  background: #ffffff !important;
}
body.light-mode .bg-dark {
  background: #f1f5f9 !important;
}

body.light-mode #main-header .header-inner {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #main-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(201, 168, 76, 0.4) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .brand-name {
  color: #0f172a !important;
}
body.light-mode .brand-sub {
  color: #b45309 !important;
}
body.light-mode #main-nav ul {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .nav-link {
  color: #334155 !important;
}
body.light-mode .nav-link:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .nav-link.active {
  color: #ffffff !important;
}
body.light-mode .dropdown {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
body.light-mode .dropdown li a {
  color: #1e293b !important;
}
body.light-mode .dropdown li a:hover {
  background: #f1f5f9 !important;
  color: #b45309 !important;
}
body.light-mode .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}
body.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .streak-badge {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #d97706 !important;
}
body.light-mode .lang-switch-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
body.light-mode .section-title {
  color: #0f172a !important;
}
body.light-mode .section-desc {
  color: #475569 !important;
}
body.light-mode .hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}
body.light-mode .hero-title-1, body.light-mode .hero-title-2, body.light-mode .hero-sub {
  color: #0f172a !important;
}

body.light-mode .why-card,
body.light-mode .category-card,
body.light-mode .package-card,
body.light-mode .product-card,
body.light-mode .service-pillar,
body.light-mode .faq-item,
body.light-mode .contact-form-wrap,
body.light-mode .review-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}
body.light-mode .why-card h3,
body.light-mode .category-card h3,
body.light-mode .package-name,
body.light-mode .product-info h4,
body.light-mode .service-pillar h3,
body.light-mode .faq-question,
body.light-mode .contact-form-wrap h3,
body.light-mode .contact-item strong,
body.light-mode .reviewer strong {
  color: #0f172a !important;
}
body.light-mode .why-card p,
body.light-mode .category-card p,
body.light-mode .package-desc,
body.light-mode .product-info p,
body.light-mode .service-pillar p,
body.light-mode .faq-answer p,
body.light-mode .contact-item span,
body.light-mode .review-text,
body.light-mode .reviewer span {
  color: #475569 !important;
}
body.light-mode .package-price {
  background: #f8fafc !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
body.light-mode .package-features li {
  color: #334155 !important;
  border-bottom-color: #e2e8f0 !important;
}
body.light-mode .product-img-wrap {
  background: #f1f5f9 !important;
}
body.light-mode .form-group label {
  color: #334155 !important;
}
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .line-float-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(201, 168, 76, 0.4) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
body.light-mode .line-float-text {
  color: #0f172a !important;
}


