/* ============================================================
   BIOPACK SOLUTION — Global CSS Design System
   Version: 1.0 | Author: Biopack Dev
   ============================================================ */

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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Colors */
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  --white:      #ffffff;
  --off-white:  #f8fffe;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;

  --accent-gold: #d4af37;
  --accent-gold-light: #f4d03f;

  /* Typography */
  --font-sans:  'Kanit', 'Plus Jakarta Sans', sans-serif;
  --font-thai:  'Kanit', sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max:   1280px;
  --container-px:    clamp(1.5rem, 5vw, 4rem);

  /* Borders & Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(6,95,70,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(6,95,70,0.18), 0 8px 24px rgba(0,0,0,0.1);
  --shadow-xl:  0 24px 64px rgba(6,95,70,0.22), 0 12px 32px rgba(0,0,0,0.12);
  --shadow-green: 0 8px 32px rgba(16,185,129,0.3);

  /* Transitions */
  --transition-fast:   all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-navbar:   10000;
  --z-overlay:  10100;
  --z-modal:    10200;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #021a14;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background: #010f0b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ─── Typography Helpers ─────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid var(--green-200);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--green-600);
}

.section-title > .lang-th,
.section-title > .lang-en {
  color: inherit;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 560px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(16,185,129,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-200);
}

.btn-secondary:hover {
  background: var(--green-50);
  border-color: var(--green-400);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 1.1rem 0 0.8rem 0;
  transition: var(--transition-normal);
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.75rem 0 0.55rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}

.navbar.scrolled .nav-logo-text { color: var(--green-800); }
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover { color: var(--green-600); }
.navbar.scrolled .hamburger span { background: var(--gray-800); }

/* Hamburger Menu Icon Styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.navbar.scrolled .hamburger span {
  background-color: var(--gray-800) !important;
}

.hamburger.open span {
  background-color: var(--gray-800) !important;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0%;
}

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

.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

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

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: 'BP';
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: var(--transition-fast);
}

.nav-logo-text span {
  color: var(--green-300);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-link.active span {
  position: relative;
}

.nav-link.active span::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: #5af2c2;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(90, 242, 194, 0.8), 0 0 4px rgba(90, 242, 194, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-link.active span::after {
  background: var(--green-500);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8), 0 0 4px rgba(16, 185, 129, 0.5);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.desktop-only-cta {
  display: inline-flex;
  justify-self: end;
}

.mobile-only-cta {
  display: none;
}

/* ─── Mobile Navbar (≤900px) ─────────────────────────────────── */
@media (max-width: 900px) {
  /* Override transparent class — completely transparent background always on mobile */
  .navbar,
  .navbar.transparent {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
  }
  /* When scrolled: apply blurred white background with shadow for readability */
  .navbar.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1) !important;
    padding: 0.5rem 0 !important;
  }

  /* Mobile navbar layout */
  .navbar-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
    width: 100% !important;
  }
  .navbar.scrolled .navbar-inner {
    padding: 0.6rem 1.25rem !important;
  }

  .nav-logo {
    display: flex !important;
    align-items: center !important;
  }
  .nav-logo-img {
    height: 36px !important;
  }
  .navbar.scrolled .nav-logo-img {
    height: 28px !important;
  }

  /* Hamburger menu icon visible */
  .hamburger {
    display: flex !important;
    margin-left: 1rem !important;
  }

  /* Slide-out mobile menu overlay */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -280px !important; /* hidden off-screen */
    width: 280px !important;
    height: 100vh !important;
    background: var(--white) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 5rem 2rem 2rem !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1) !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10001 !important;
    gap: 1.5rem !important;
  }
  .nav-menu.open {
    right: 0 !important;
  }

  /* Restyle nav-links inside the slide-out */
  .nav-link {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--gray-800) !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    border-radius: 0 !important;
  }
  .navbar.scrolled .nav-link {
    color: var(--gray-800) !important;
  }
  .nav-link i {
    display: inline-flex !important;
    color: var(--green-500) !important;
    width: 24px !important;
    justify-content: center !important;
  }
  .nav-link.active {
    background: transparent !important;
    color: var(--green-600) !important;
  }
  .navbar.scrolled .nav-link.active {
    background: transparent !important;
    color: var(--green-600) !important;
  }
  .nav-link.active span::after {
    display: none !important;
  }

  /* Show the mobile-only CTA in the slide-out menu */
  .mobile-only-cta {
    display: inline-flex !important;
    margin-top: 1rem !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--green-600) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
  }
  
  /* Hide the desktop-only CTA from the navbar actions on mobile */
  .desktop-only-cta {
    display: none !important;
  }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: radial-gradient(circle at 50% 120%, #064e3b 0%, #021a14 70%, #010f0b 100%);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
  overflow: hidden;
  margin-top: auto;
}

/* Glowing green backdrop mesh with pulse animation */
.footer::before {
  content: '';
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Glowing top border gradient with laser sweep animation */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #5af2c2 30%, #10b981 50%, #5af2c2 70%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(90, 242, 194, 0.85));
  z-index: 3;
  animation: laserSweep 5s ease-in-out infinite;
}

@keyframes laserSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-logo { margin-bottom: 1.25rem; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
}

.footer-socials {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.footer-social-link:hover {
  color: var(--white);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.footer-social-link[aria-label="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

.footer-social-link[aria-label="LINE"]:hover {
  background: #06c755;
  border-color: #06c755;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35);
}

.footer-social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li a i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #5af2c2;
  transform: translateX(4px);
}

.footer-col ul li a:hover i {
  transform: rotate(15deg) scale(1.1);
  color: #5af2c2;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.footer-bottom a:hover { color: #5af2c2; }

/* Rotating Glowing Recycle Icon in footer */
.footer-bottom .fa-recycle {
  animation: spinRecycle 10s linear infinite;
  display: inline-block;
  color: #5af2c2;
  text-shadow: 0 0 8px rgba(90, 242, 194, 0.4);
}

@keyframes spinRecycle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Footer Map Card Styling ─── */
.footer-map-col {
  display: flex;
  flex-direction: column;
}

.footer-map-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.footer-map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.footer-map-card .map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 26, 20, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
}

.footer-map-card .map-overlay i {
  font-size: 1.5rem;
  color: #5af2c2;
  text-shadow: 0 0 10px rgba(90, 242, 194, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-map-card .map-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-map-card:hover {
  border-color: #5af2c2;
  box-shadow: 0 0 20px rgba(90, 242, 194, 0.2);
  transform: translateY(-4px);
}

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

.footer-map-card:hover .map-overlay {
  opacity: 1;
}

.footer-map-card:hover .map-overlay i {
  transform: scale(1);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-map-col {
    grid-column: span 2;
  }
  .footer-map-card {
    aspect-ratio: 21/9;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .nav-logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col ul {
    align-items: center;
    padding: 0;
  }
  .footer-logo-img {
    margin: 0 auto !important;
  }
  .footer-map-col {
    grid-column: span 1;
    align-items: center;
  }
  .footer-map-card {
    aspect-ratio: 4/3;
    max-width: 320px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Scroll Reveal Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ─── Page Header (Inner Pages) ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-800) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.page-header-breadcrumb a:hover { color: var(--green-300); }

.page-header-breadcrumb span { color: rgba(255,255,255,0.35); }

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-header h1 span { color: var(--green-300); }

.page-header p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.75;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-200);
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: radial-gradient(circle at 20% 50%, #064e3b, #022c22);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12), transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 15px 30px -10px rgba(2, 44, 34, 0.5), 0 0 10px rgba(52, 211, 153, 0.05);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.15));
  transition: transform 0.4s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-number {
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  background: linear-gradient(to bottom, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-number span { color: var(--green-300); }

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Feature Icons ─────────────────────────────────────────── */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}

/* ─── Section Divider ───────────────────────────────────────── */
.section-divider {
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  border-radius: 4px;
  margin: 1.25rem 0 2rem;
}

/* ─── Overlay for Mobile Menu ───────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-navbar) - 1);
  backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

/* ─── Misc Utilities ─────────────────────────────────────────── */
.text-green { color: var(--green-600); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.gap-1 { gap: 0.25rem; }

/* ─── Tooltip ───────────────────────────────────────────────── */
[data-tooltip]:not(.floating-contact-btn) {
  position: relative;
}

[data-tooltip]:not(.floating-contact-btn)::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--gray-900);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  transform-origin: bottom center;
}

[data-tooltip]:not(.floating-contact-btn):hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ─── Logo Styling ───────────────────────────────────────────── */
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.navbar.transparent .nav-logo-img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.navbar.scrolled .nav-logo-img {
  height: 40px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: var(--transition-normal);
}

/* ─── Hero Background Slider ─────────────────────────────────── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slider .slide.active {
  opacity: 1;
}

/* Make sure hero contents sit above slider */
.hero-content, .page-header-content {
  position: relative;
  z-index: 2;
}

/* Adjust page-header for slider background */
.page-header {
  position: relative;
}
.page-header .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}
.page-header-content {
  position: relative;
  z-index: 2;
}

/* ─── Image Gallery System ───────────────────────────────────── */
.gallery-section {
  padding: var(--section-padding);
  background: var(--white);
}
.gallery-section.gray-bg {
  background: var(--gray-50);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--gray-100);
  transition: var(--transition-normal);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 78, 59, 0.9) 0%, rgba(6, 78, 59, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-category {
  color: var(--green-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}
.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-category {
  transform: translateY(0);
}

/* Contact Background adjustment */
.contact-section-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 254, 0.92) 100%), 
              url('../images/home/ลงภาพพื้นหลังช่องติดต่อเราได้เลย.jpg?v=3.5');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ─── Premium Inner Page Header Layout ───────────────────────── */
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.22);
  opacity: 0.9;
  transform: scale(1.1);
  z-index: 0;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
@media (max-width: 991px) {
  .page-header-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .page-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-header-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .page-header-actions {
    justify-content: center;
  }
}
.page-header-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  max-width: 100%;
  z-index: 2;
}
.page-header-visual::before {
  content: '';
  position: absolute;
  inset: -15px;
  z-index: -1;
  filter: blur(15px);
  border-radius: var(--radius-xl);
}
.page-header-visual.visual-cardboard::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}
.page-header-visual.visual-wood::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.25) 0%, transparent 70%);
}
.page-header-visual.visual-plastic::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
}
.visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.page-header-visual:hover .visual-frame {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
.visual-frame .hero-slider {
  position: absolute;
  inset: 0;
}

/* ─── FAQ Section ────────────────────────────────────────────── */
.faq-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}
.faq-section.white-bg {
  background: var(--white);
}
.faq-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}
.faq-section.white-bg .faq-item {
  background: var(--gray-50);
}
.faq-item.open {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  gap: 1rem;
}
.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}
.faq-toggle {
  width: 32px;
  height: 32px;
  background: var(--green-50);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--green-600);
  flex-shrink: 0;
  transition: var(--transition-fast);
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-toggle {
  background: var(--green-500);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}


/* ─── Font Awesome Premium Icon Tweaks ───────────────────────── */
.nav-link i, .footer-col i {
  margin-right: 0.45rem;
  font-size: 0.9em;
  opacity: 0.85;
  vertical-align: middle;
}
.section-badge i {
  margin-right: 0.5rem;
  font-size: 0.95em;
}
.spec-icon i {
  font-size: 1.25rem;
  color: var(--green-600);
}
.detail-card-header i {
  font-size: 1.5rem;
  color: var(--green-600);
}

/* ─── Premium Icon Animations (Continuous Idle & Dynamic Hover) ─── */

/* --- IDLE ANIMATIONS (Running constantly in background) --- */

/* 1. Subtle float for packaging/delivery/structure icons */
.fa-box,
.fa-boxes-stacked,
.fa-box-open,
.fa-truck-fast,
.fa-ship,
.fa-cart-shopping,
.fa-gift,
.fa-building,
.fa-warehouse,
.fa-trowel-bricks {
  animation: premium-icon-float-idle 2.5s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes premium-icon-float-idle {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

/* 2. Slow rotate for nodes/notch/process/clock icons */
.fa-circle-nodes,
.fa-circle-notch,
.fa-arrows-spin,
.fa-clock,
.fa-earth-asia,
.fa-bullseye {
  animation: premium-icon-spin-idle 12s linear infinite;
  display: inline-block;
  transform-origin: center;
}

@keyframes premium-icon-spin-idle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3. Pulse/Breathing for eco/leaf/tree/badges */
.section-badge i,
.features-visual-badge i,
.fa-leaf,
.fa-tree,
.fa-wheat-awn {
  animation: premium-icon-pulse-idle 2.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes premium-icon-pulse-idle {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 4. Subtle swing for static icons (envelope, check, tags, phone) */
.fa-envelope,
.fa-envelope-open-text,
.fa-phone,
.fa-circle-check,
.fa-tags,
.fa-tag,
.fa-pallet,
.fa-pen-ruler,
.fa-pen-to-square,
.fa-paper-plane,
.fa-circle-question,
.fa-newspaper,
.fa-apple-whole,
.fa-shirt,
.fa-gift,
.fa-wrench,
.fa-palette {
  animation: premium-icon-swing-idle 5s ease-in-out infinite;
  display: inline-block;
}

@keyframes premium-icon-swing-idle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg) scale(1.02); }
  75% { transform: rotate(3deg) scale(1.02); }
}


/* --- HOVER BOOSTS (Speed up or change animation when parent card is hovered) --- */

/* 1. Float hover boost */
.process-step:hover .process-step-number i,
.application-card:hover .app-icon .fa-ship,
.application-card:hover .app-icon .fa-truck-fast,
.application-card:hover .app-icon .fa-cart-shopping,
.application-card:hover .app-icon .fa-gift {
  animation: premium-icon-float-hover 0.75s ease-in-out infinite alternate;
}

@keyframes premium-icon-float-hover {
  from { transform: translateY(0) scale(1.1); }
  to { transform: translateY(-9px) scale(1.15); }
}

/* 2. Spin hover boost */
.product-card:hover .product-card-icon .fa-circle-nodes,
.product-card:hover .product-card-icon .fa-circle-notch,
.feature-item:hover .feature-icon .fa-circle-nodes,
.feature-item:hover .feature-icon .fa-circle-notch {
  animation: premium-icon-spin-hover 1.5s linear infinite;
}

@keyframes premium-icon-spin-hover {
  from { transform: rotate(0deg) scale(1.1); }
  to { transform: rotate(360deg) scale(1.18); }
}

/* 3. Wobble hover boost (General fallback) */
.product-card:hover .product-card-icon i,
.hero-card:hover .hero-card-icon i,
.mv-card:hover .mv-card-icon i,
.feature-item:hover .feature-icon i,
.application-card:hover .app-icon i,
.contact-detail-item:hover .contact-detail-icon i,
.contact-form-card:hover h3 i,
.catalog-header:hover .section-badge i,
.products-header:hover .section-badge i,
.faq-header:hover .section-badge i,
.nav-link:hover i,
.btn:hover i,
.detail-card:hover .spec-table td i,
.detail-card:hover .detail-card-num {
  animation: premium-icon-wobble-hover 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes premium-icon-wobble-hover {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.2) rotate(-10deg); }
  30% { transform: scale(1.1) rotate(8deg); }
  45% { transform: scale(1.15) rotate(-4deg); }
  60% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1.15) rotate(0deg); }
}

/* ─── Premium Lightbox Modal ───────────────────────────────── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-sans);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--white);
  color: var(--gray-900);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--white);
  color: var(--gray-900);
}

.lightbox-prev {
  left: -5rem;
}

.lightbox-next {
  right: -5rem;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 1rem; top: auto; bottom: -4rem; transform: none; }
  .lightbox-next { right: 1rem; top: auto; bottom: -4rem; transform: none; }
  .lightbox-close { right: 1rem; top: 1rem; }
  .lightbox-content { margin-bottom: 3rem; }
}

/* ─── Floating Sticky Contact Widget ─────────────────────────── */
.floating-contacts {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column-reverse; /* Trigger at bottom, menu items above it */
  align-items: center;
  gap: 0.85rem;
  z-index: 99999;
}

/* Trigger Button */
.floating-contact-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-600); /* Theme green */
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.floating-contact-trigger:hover {
  transform: scale(1.08);
  background: var(--green-500);
  box-shadow: 0 6px 30px rgba(5, 150, 105, 0.6);
}

.floating-contact-trigger .icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact-trigger .icon-chat {
  position: absolute;
  opacity: 1;
  transform: rotate(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State for Trigger Button */
.floating-contacts.active .floating-contact-trigger {
  background: var(--gray-800);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-contacts.active .floating-contact-trigger .icon-chat {
  opacity: 0;
  transform: rotate(90deg);
}

.floating-contacts.active .floating-contact-trigger .icon-close {
  opacity: 1;
  transform: rotate(0);
}

/* Menu Items Container */
.floating-contact-menu {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: none; /* prevent interaction when closed */
}

/* Individual Buttons */
.floating-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  text-decoration: none;
  
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(20px) scale(0.6);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered entry transitions */
.floating-contact-menu .floating-contact-btn:nth-child(4) { transition-delay: 0.03s; } /* Phone (closest) */
.floating-contact-menu .floating-contact-btn:nth-child(3) { transition-delay: 0.08s; } /* Email */
.floating-contact-menu .floating-contact-btn:nth-child(2) { transition-delay: 0.13s; } /* Facebook */
.floating-contact-menu .floating-contact-btn:nth-child(1) { transition-delay: 0.18s; } /* LINE (furthest) */

/* Active State (Open Menu) */
.floating-contacts.active .floating-contact-menu {
  pointer-events: auto;
}

.floating-contacts.active .floating-contact-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.floating-contact-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--hover-shadow);
}

/* Tooltips */
.floating-contact-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.floating-contact-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Color schemes for floating buttons */
.floating-contact-btn.line {
  background: #06c755; /* LINE Brand Green */
  --hover-shadow: 0 8px 24px rgba(6, 199, 85, 0.45);
}

.floating-contact-btn.facebook {
  background: #1877f2; /* Facebook Brand Blue */
  --hover-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.floating-contact-btn.email {
  background: #ea4335; /* Gmail Brand Red */
  --hover-shadow: 0 8px 24px rgba(234, 67, 53, 0.45);
}

.floating-contact-btn.call {
  background: #f97316; /* Premium Orange */
  --hover-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

/* Pulse animation for trigger when closed to invite click */
.floating-contacts:not(.active) .floating-contact-trigger::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--green-500);
  border-radius: 50%;
  animation: float-btn-pulse 2s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes float-btn-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 640px) {
  .floating-contacts {
    bottom: 1.5rem;
    right: 1rem;
    gap: 0.7rem;
  }
  .floating-contact-trigger {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  .floating-contact-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
  .floating-contact-btn::after {
    display: none; /* Hide tooltips on mobile */
  }
}

/* ─── Infinite Marquee Styles ───────────────────────────── */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
}

/* Faders on the left and right to give a premium transition */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--gray-50) 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--gray-50) 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.marquee-item {
  width: 280px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  cursor: zoom-in;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-item:hover {
  transform: scale(1.03);
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
}

.marquee-item:hover img {
  transform: scale(1.06);
}

/* Animations */
.marquee-direction-left .marquee-track {
  animation: marquee-left 95s linear infinite;
}

.marquee-direction-right .marquee-track {
  animation: marquee-right 95s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@keyframes marquee-right {
  0% { transform: translateX(calc(-50% - 0.75rem)); }
  100% { transform: translateX(0); }
}

/* Pause animation on hover for interactive feel */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 80px;
  }
  .marquee-item {
    width: 220px;
    height: 140px;
  }
}

/* ─── Language Switcher System ───────────────────────── */
body.lang-th .lang-en { display: none !important; }
body.lang-en .lang-th { display: none !important; }

/* Navbar Actions Container — groups CTA + lang switcher in one grid cell */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: var(--radius-full) !important;
  padding: 3px !important;
  gap: 2px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.08) !important;
}

.lang-switcher:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 
    0 0 18px rgba(16, 185, 129, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.navbar.scrolled .lang-switcher {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.lang-btn {
  font-family: monospace !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
  border: none !important;
  padding: 5px 12px !important;
  border-radius: var(--radius-full) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.navbar.scrolled .lang-btn {
  color: rgba(255, 255, 255, 0.6) !important;
}

.lang-btn:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
}

.navbar.scrolled .lang-btn:hover {
  color: var(--white) !important;
}

/* Active Highlight state */
body.lang-th .lang-btn.th-btn,
body.lang-en .lang-btn.en-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: var(--white) !important;
  box-shadow: 
    0 0 12px rgba(16, 185, 129, 0.45),
    inset 0 0 6px rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 991px) {
  .navbar-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    gap: 0.5rem !important;
  }

  .lang-switcher {
    background: rgba(15, 23, 42, 0.65) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    padding: 2px !important;
  }

  .lang-btn {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
  }
}

/* ─── Premium Typography & Readability Overrides (Kanit) ────────────────── */
body {
  font-weight: 400;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

p, .section-subtitle, .hero-desc, .footer p {
  font-weight: 300 !important; /* Lighter weight for clean, sharp reading */
  letter-spacing: 0.015em !important;
  line-height: 1.85 !important;
}

strong, b, .fw-bold {
  font-weight: 600 !important;
}

/* Adjust heading weights to prevent thick bleed */
.section-title {
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.title-accent {
  font-weight: 800 !important; /* Drop from 900 */
}

.hero-desc strong {
  font-weight: 500 !important;
  letter-spacing: 0.015em !important;
}

.hero-card h3 {
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

.hero-card p {
  font-weight: 300 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.015em !important;
}

.product-spec-item .spec-text strong {
  font-weight: 600 !important;
}

.product-spec-item .spec-text span {
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
}

.detail-card-body p {
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
}

.spec-table td {
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
}

