/* =============================================
   Dr.KrongThong — CSS Custom Styles
   ============================================= */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bright-green: #008247;
  --normal-green: #0a4f23;
  --dark-green:   #062e14;
  --white:        #ffffff;
  --light-bg:     #f4faf7;
  --gold:         #c9a84c;
  --text-dark:    #1a2e22;
  --text-muted:   #6c8c75;
  --shadow-green: rgba(0, 130, 71, 0.18);
  --font-main:    'Prompt', sans-serif;
  --font-body:    'Sarabun', sans-serif;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-custom {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--normal-green) 100%);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: padding var(--transition), box-shadow var(--transition);
  z-index: 9999;
}
.navbar-custom.scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 30px rgba(0,0,0,0.28);
}
.navbar-brand-logo {
  height: 48px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 1px;
}
.brand-text span { color: var(--gold); }
.nav-link-custom {
  color: rgba(255,255,255,0.88) !important;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 14px !important;
  transition: color var(--transition);
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition), left var(--transition);
}
.nav-link-custom:hover { color: var(--white) !important; }
.nav-link-custom:hover::after { width: 80%; left: 10%; }
.navbar-toggler { border: 1px solid rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: brightness(0) invert(1); }

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--normal-green) 55%, #006438 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0.18;
}
.hero-leaf {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 130, 71, 0.15);
  animation: float 8s ease-in-out infinite;
}
.hero-leaf:nth-child(1) { width: 350px; height: 350px; top: -80px; right: -80px; animation-delay: 0s; }
.hero-leaf:nth-child(2) { width: 220px; height: 220px; bottom: 60px; left: -60px; animation-delay: 3s; }
.hero-leaf:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 15%; animation-delay: 5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(8deg); }
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-green);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-title .highlight { color: var(--gold); }
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 300;
}
.btn-hero-primary {
  background: linear-gradient(135deg, var(--bright-green), #00a358);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(0,130,71,0.4);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,130,71,0.55);
  color: var(--white);
}
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}
.hero-product-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,130,71,0.45) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1; }
}
.hero-product-img {
  position: relative;
  z-index: 2;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
  animation: float-product 5s ease-in-out infinite;
}
@keyframes float-product {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-label {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bright-green);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--normal-green);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--bright-green), var(--gold));
  border-radius: 4px;
  margin: 0 auto 24px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   BRAND STORY / ABOUT
   ============================================= */
#about { background: var(--light-bg); padding: 100px 0; }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10,79,35,0.2);
  width: 100%;
}
.about-badge {
  position: absolute;
  bottom: -24px; right: -20px;
  background: linear-gradient(135deg, var(--bright-green), var(--normal-green));
  color: var(--white);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,130,71,0.4);
}
.about-badge .num {
  font-family: var(--font-main); font-weight: 800; font-size: 2.2rem; display: block; line-height: 1;
}
.about-badge .text { font-size: 0.78rem; opacity: 0.9; }

/* =============================================
   BENEFITS
   ============================================= */
#benefits { padding: 100px 0; background: var(--white); }
.benefit-card {
  background: var(--white);
  border: 2px solid #e8f5ee;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  height: 100%;
}
.benefit-card:hover {
  border-color: var(--bright-green);
  box-shadow: 0 16px 50px var(--shadow-green);
  transform: translateY(-8px);
}
.benefit-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5ee, #c2e8d2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all var(--transition);
}
.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--bright-green), var(--normal-green));
  color: white;
  transform: rotate(10deg) scale(1.1);
}
.benefit-title {
  font-family: var(--font-main); font-weight: 700; font-size: 1.05rem;
  color: var(--normal-green); margin-bottom: 10px;
}
.benefit-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* =============================================
   CAROUSEL / SLIDER
   ============================================= */
#gallery { background: linear-gradient(135deg, var(--dark-green) 0%, var(--normal-green) 100%); padding: 100px 0; }
#gallery .section-title { color: var(--white); }
#gallery .section-label { color: var(--gold); }
#gallery .section-desc { color: rgba(255,255,255,0.75); }
.gallery-slide img {
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  width: 100%; height: 380px;
  object-fit: cover;
}
.carousel-control-prev-icon,
.carousel-control-next-icon { filter: none; }
.carousel-control-prev,
.carousel-control-next {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  backdrop-filter: blur(5px);
}
.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
}
.carousel-indicators .active { background: var(--gold); }

/* =============================================
   HOW TO USE
   ============================================= */
#howto { padding: 100px 0; background: var(--light-bg); }
.step-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(10,79,35,0.07);
  transition: all var(--transition);
  height: 100%;
}
.step-card:hover {
  box-shadow: 0 12px 40px var(--shadow-green);
  transform: translateY(-4px);
}
.step-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bright-green), var(--normal-green));
  color: var(--white);
  font-family: var(--font-main); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,130,71,0.35);
}
.step-body h5 {
  font-family: var(--font-main); font-weight: 700;
  color: var(--normal-green); margin-bottom: 6px;
}
.step-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* =============================================
   VIDEO SECTION
   ============================================= */
#video { padding: 100px 0; background: var(--white); }
.video-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(10,79,35,0.2);
}
.video-wrap video,
.video-wrap iframe {
  width: 100%; display: block;
  border-radius: 24px;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--normal-green), var(--dark-green));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 24px;
  cursor: pointer;
  position: relative;
}
.play-btn {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--white);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  cursor: pointer;
}
.play-btn:hover {
  background: var(--bright-green);
  border-color: var(--bright-green);
  transform: scale(1.12);
  box-shadow: 0 0 0 12px rgba(0,130,71,0.25);
}
.video-info h4 {
  font-family: var(--font-main); font-weight: 700; color: var(--normal-green);
}
.video-tag {
  display: inline-block;
  background: #e8f5ee;
  color: var(--bright-green);
  font-family: var(--font-main); font-weight: 600; font-size: 0.78rem;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials { padding: 100px 0; background: var(--light-bg); }
.review-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(10,79,35,0.07);
  transition: all var(--transition);
  height: 100%;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px var(--shadow-green);
}
.review-stars { color: #f5a623; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  color: var(--text-dark); font-size: 0.95rem; line-height: 1.85;
  font-style: italic; margin-bottom: 20px;
}
.review-text::before { content: '"'; color: var(--bright-green); font-size: 2rem; line-height: 0.5; vertical-align: sub; margin-right: 4px; }
.reviewer-info { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bright-green), var(--normal-green));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-main); font-weight: 700; font-size: 1.1rem;
}
.reviewer-name { font-family: var(--font-main); font-weight: 600; color: var(--normal-green); }
.reviewer-location { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   BUY NOW / PRICING
   ============================================= */
#buy {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--normal-green) 100%);
  position: relative; overflow: hidden;
}
#buy::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -200px; right: -150px;
}
.price-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
}
.price-card.featured {
  background: rgba(255,255,255,0.14);
  border-color: var(--gold);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.price-card:hover { transform: scale(1.06); box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.price-card.featured:hover { transform: scale(1.08); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--dark-green);
  font-family: var(--font-main); font-weight: 700; font-size: 0.78rem;
  padding: 4px 20px; border-radius: 50px;
}
.price-name {
  font-family: var(--font-main); font-weight: 700; font-size: 1rem;
  color: rgba(255,255,255,0.8); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.price-value {
  font-family: var(--font-main); font-weight: 800; font-size: 2.8rem;
  color: var(--white); line-height: 1;
}
.price-value sup { font-size: 1.2rem; vertical-align: super; margin-right: 4px; }
.price-unit { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 28px; }
.price-features { list-style: none; padding: 0; margin-bottom: 32px; text-align: left; }
.price-features li {
  color: rgba(255,255,255,0.85); font-size: 0.92rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.price-features li .icon { color: var(--bright-green); font-size: 1rem; }
.btn-buy {
  width: 100%; padding: 14px;
  border-radius: 50px; font-family: var(--font-main); font-weight: 700; font-size: 1rem;
  transition: all var(--transition); text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-buy-primary {
  background: linear-gradient(135deg, var(--bright-green), #00a358);
  color: var(--white); border: none;
  box-shadow: 0 8px 28px rgba(0,130,71,0.45);
}
.btn-buy-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,130,71,0.6); color: white; }
.btn-buy-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-buy-outline:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark-green);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-logo { font-family: var(--font-main); font-weight: 800; font-size: 1.5rem; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.9rem; line-height: 1.8; margin-top: 12px; opacity: 0.75; max-width: 280px; }
.footer-heading {
  font-family: var(--font-main); font-weight: 700; font-size: 0.95rem;
  color: var(--white); letter-spacing: 1px; margin-bottom: 16px;
  position: relative; padding-bottom: 10px;
}
.footer-heading::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--bright-green);
}
.footer-link { display: block; color: rgba(255,255,255,0.6); font-size: 0.88rem; padding: 5px 0; text-decoration: none; transition: color var(--transition); }
.footer-link:hover { color: var(--bright-green); }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition); text-decoration: none;
}
.social-icon:hover { background: var(--bright-green); color: white; transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 36px 0 24px; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* =============================================
   FLOATING CONTACT BUTTON
   ============================================= */
.floating-contact {
  position: fixed; bottom: 28px; right: 28px; z-index: 9998;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  text-decoration: none; transition: all var(--transition);
}
.float-btn:hover { transform: scale(1.12) translateY(-2px); color: white; }
.float-line { background: #06c755; }
.float-fb   { background: #1877f2; }
.float-top  { background: linear-gradient(135deg, var(--bright-green), var(--normal-green)); font-size: 1rem; }

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* =============================================
   UTILITIES
   ============================================= */
.bg-light-green { background: var(--light-bg); }
.text-green     { color: var(--bright-green) !important; }
.text-gold      { color: var(--gold) !important; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  #hero { padding-top: 100px; padding-bottom: 60px; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-product-wrap { margin-top: 48px; }
  .hero-product-img { max-height: 320px; }
  .hero-glow { width: 280px; height: 280px; }
  .price-card.featured { transform: scale(1); }
}
@media (max-width: 575px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-num { font-size: 1.6rem; }
}
