/* ============================================================
   PT. HERTAGRO BIMA — PREMIUM LANDING PAGE
   Design System & Styles
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary — Emerald Green */
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  /* Accent — Gold */
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #f5c842;
  --gold-300: #fcd34d;
  --gold-100: #fef3c7;

  /* Neutrals */
  --white:     #ffffff;
  --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;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-glow: 0 0 30px rgba(16,185,129,.15);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-px: 24px;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast:   .2s cubic-bezier(.4,0,.2,1);
  --transition-base:   .3s cubic-bezier(.4,0,.2,1);
  --transition-smooth: .5s cubic-bezier(.4,0,.2,1);

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  box-shadow: 0 6px 20px rgba(5,150,105,.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--emerald-800);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(212,160,23,.35);
}
.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212,160,23,.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--emerald-700);
  border: 2px solid var(--emerald-700);
}
.btn-outline:hover {
  background: var(--emerald-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition-base);
}
.nav-logo .logo-text span {
  color: var(--gold-400);
}
.navbar.scrolled .nav-logo .logo-text {
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: width var(--transition-base);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--white);
}
.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--emerald-700);
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: .85rem !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition-base);
}
.navbar.scrolled .nav-toggle span {
  background: var(--gray-800);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,78,59,.88) 0%,
    rgba(6,95,70,.78) 40%,
    rgba(4,120,87,.65) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  color: var(--gold-300);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--gold-400);
  position: relative;
}

.hero-description {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}

.hero-stat .stat-label {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin-top: 4px;
}

/* Floating particles background */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(245,200,66,.3);
  border-radius: 50%;
  animation: float-particle 15s infinite ease-in-out;
}
.hero-particles .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 30%; top: 70%; animation-delay: 3s; animation-duration: 18s; }
.hero-particles .particle:nth-child(3) { left: 60%; top: 30%; animation-delay: 6s; animation-duration: 12s; }
.hero-particles .particle:nth-child(4) { left: 80%; top: 60%; animation-delay: 9s; width: 8px; height: 8px; }
.hero-particles .particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 2s; animation-duration: 20s; }
.hero-particles .particle:nth-child(6) { left: 90%; top: 15%; animation-delay: 5s; width: 4px; height: 4px; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .3; }
  25%      { transform: translate(30px, -50px) scale(1.5); opacity: .6; }
  50%      { transform: translate(-20px, -100px) scale(1); opacity: .3; }
  75%      { transform: translate(40px, -50px) scale(1.3); opacity: .5; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content .tagline {
  color: var(--emerald-600);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content h2 span {
  color: var(--emerald-600);
}

.about-content .lead-text {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.8;
}

.vm-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--emerald-500);
  transition: all var(--transition-base);
}

.vm-card:hover {
  background: var(--emerald-50);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.vm-card.mission-card {
  border-left-color: var(--gold-500);
}

.vm-card .vm-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.vm-card.mission-card .vm-icon {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
}

.vm-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.vm-card p {
  color: var(--gray-500);
  font-size: .95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* About visual side */
.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-xl);
  min-width: 140px;
}

.about-experience-badge .big-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold-400);
}

.about-experience-badge span {
  font-size: .85rem;
  opacity: .85;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-600);
}

.stat-card .stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  color: var(--gray-500);
  font-size: .85rem;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.product-card .card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.product-card .card-image .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .75rem;
  border-radius: var(--radius-full);
  letter-spacing: .3px;
}

.product-card .card-body {
  padding: 28px;
}

.product-card .card-body h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.product-card .card-body p {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--gray-600);
  font-size: .9rem;
}

.product-features li svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-500);
  flex-shrink: 0;
}

.product-card .card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  transition: gap var(--transition-base);
}

.product-card:hover .card-action {
  gap: 14px;
}

.product-card .card-action svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.product-card:hover .card-action svg {
  transform: translateX(4px);
}

/* ============================================================
   PARTNERSHIP SECTION
   ============================================================ */
.partnership {
  padding: var(--section-py) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.partnership::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald-50) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.partnership-card {
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
}

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

.partnership-card .step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .85rem;
  color: var(--gray-900);
  box-shadow: 0 4px 10px rgba(212,160,23,.3);
}

.partnership-card .card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--emerald-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--emerald-600);
  transition: background var(--transition-base);
}

.partnership-card:hover .card-icon {
  background: var(--emerald-100);
}

.partnership-card h3 {
  margin-bottom: 12px;
}

.partnership-card p {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   TRUST / CREDIBILITY SECTION
   ============================================================ */
.trust {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  color: var(--white);
}

.trust .section-title .badge {
  background: rgba(255,255,255,.12);
  color: var(--gold-300);
}

.trust .section-title h2 {
  color: var(--white);
}

.trust .section-title p {
  color: rgba(255,255,255,.7);
}

/* Partners logo grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.partner-logo {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.partner-logo:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

.partner-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
}

.partner-logo:hover span {
  color: var(--white);
}

/* Gallery Swiper */
.gallery-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.gallery-subtitle {
  text-align: center;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  font-size: .95rem;
  line-height: 1.6;
}

.gallery-swiper-wrapper {
  position: relative;
  padding-bottom: 56px; /* space for pagination */
}

/* Swiper container */
.gallerySwiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Each slide */
.swiper-slide-inner {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.gallerySwiper .swiper-slide-active .swiper-slide-inner img {
  transform: scale(1.03);
}

/* Placeholder saat foto belum ada */
.swiper-slide-placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 40px;
  width: 100%;
  height: 100%;
}

.swiper-slide-placeholder .placeholder-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.swiper-slide-placeholder span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
}

.swiper-slide-placeholder small {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
}

/* Slide caption overlay */
.swiper-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 24px;
  background: linear-gradient(to top, rgba(4,40,30,.95) 0%, rgba(6,78,59,.6) 60%, transparent 100%);
  transition: transform .4s ease;
}

.swiper-slide-caption .slide-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(16,185,129,.3);
  border: 1px solid rgba(16,185,129,.5);
  border-radius: var(--radius-full);
  color: var(--emerald-400);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.swiper-slide-caption h4 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.swiper-slide-caption p {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Custom navigation buttons */
.gallery-prev,
.gallery-next {
  width: 48px !important;
  height: 48px !important;
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 50% !important;
  color: var(--white) !important;
  transition: all var(--transition-base) !important;
  top: 50% !important;
  transform: translateY(calc(-50% - 28px)) !important;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(16,185,129,.5) !important;
  border-color: var(--emerald-400) !important;
  box-shadow: 0 0 20px rgba(16,185,129,.3);
}

.gallery-prev::after,
.gallery-next::after {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.gallery-prev { left: 16px !important; }
.gallery-next { right: 16px !important; }

/* Pagination bullets */
.gallery-pagination {
  bottom: 0 !important;
}

.gallery-pagination .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255,255,255,.35) !important;
  opacity: 1 !important;
  transition: all .3s ease !important;
  border-radius: 4px !important;
}

.gallery-pagination .swiper-pagination-bullet-active {
  width: 28px !important;
  background: var(--emerald-400) !important;
  box-shadow: 0 0 8px rgba(52,211,153,.5);
}

/* Swipe hint for mobile */
.swiper-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  font-style: italic;
}

.swiper-hint svg {
  width: 16px;
  height: 16px;
}


.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,78,59,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
}

/* Hapus CSS gallery lama yang tidak terpakai */

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

/* Location cards */
.location-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.location-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.location-card:hover {
  border-color: var(--emerald-200);
  box-shadow: var(--shadow-md);
}

.location-card.main {
  border-left: 4px solid var(--emerald-500);
}

.location-card .loc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  font-size: 1.2rem;
}

.location-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.location-card p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Link alamat ke Google Maps */
.location-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.location-link p {
  transition: color var(--transition-fast);
}

.location-link:hover p {
  color: var(--emerald-700);
}

.location-maps-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--emerald-200);
  transition: all var(--transition-fast);
}

.location-link:hover .location-maps-badge {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--gray-600);
  font-size: .95rem;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* Contact form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-form-wrapper .form-subtitle {
  color: var(--gray-500);
  font-size: .95rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16,185,129,.1);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map */
.map-container {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-text span {
  color: var(--gold-400);
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-400);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .85rem;
}

.footer-bottom a {
  color: var(--emerald-400);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition-base);
  position: relative;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Pulse ring */
.whatsapp-float a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-800);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: .1s; }
.animate-on-scroll.delay-2 { transition-delay: .2s; }
.animate-on-scroll.delay-3 { transition-delay: .3s; }
.animate-on-scroll.delay-4 { transition-delay: .4s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--emerald-700);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .about-grid {
    gap: 40px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .swiper-slide-inner {
    height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --container-px: 16px;
  }

  /* ===== NAVBAR MOBILE ===== */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh; /* Dynamic viewport height untuk browser mobile */
    background: var(--white);
    flex-direction: column;
    padding: 88px 28px 40px;
    gap: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    display: flex;
    align-items: center;
  }

  .nav-links a:hover {
    color: var(--emerald-700) !important;
    padding-left: 8px;
    transition: padding-left .2s ease;
  }

  .nav-links .btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    backdrop-filter: blur(2px);
  }

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

  /* ===== HERO MOBILE ===== */
  .hero { min-height: 100dvh; }
  .hero .container { padding-top: 90px; padding-bottom: 48px; }
  .hero-content { max-width: 100%; }
  .hero-description { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .stat-number { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; gap: 12px; margin-bottom: 40px; }
  .hero-buttons .btn { width: 100%; justify-content: center; font-size: .9rem; }

  /* ===== ABOUT MOBILE ===== */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { order: -1; }
  .about-image-wrapper img { height: 280px; }
  .about-experience-badge {
    bottom: auto;
    top: 12px;
    right: 12px;
    padding: 16px 20px;
    min-width: 110px;
  }
  .about-experience-badge .big-number { font-size: 2rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
  .stat-card { padding: 24px 12px; }

  /* ===== PRODUCTS MOBILE ===== */
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card .card-image { height: 200px; }
  .product-card .card-body { padding: 20px; }

  /* ===== PARTNERSHIP MOBILE ===== */
  .partnership-grid { grid-template-columns: 1fr; gap: 40px; }
  .partnership-card { padding: 32px 20px; }

  /* ===== TRUST / GALLERY MOBILE ===== */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-logo { padding: 16px; min-height: 70px; }
  .partner-logo span { font-size: .88rem; }

  /* Gallery Swiper mobile */
  .swiper-slide-inner { height: 280px; }
  .swiper-slide-caption h4 { font-size: 1.05rem; }
  .swiper-slide-caption p { font-size: .82rem; }
  .gallery-prev, .gallery-next { display: none !important; } /* Hide nav arrows on mobile — swipe instead */
  .swiper-hint { display: flex; } /* Tampilkan hint geser */

  /* ===== NAVBAR LOGO MOBILE ===== */
  .nav-logo .logo-text {
    font-size: .78rem;       /* lebih kecil agar tidak bersentuhan dengan burger */
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ===== CONTACT MOBILE ===== */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px 20px; }
  .map-container-desktop { display: none; } /* Sembunyikan peta di mobile */
  .location-card { padding: 16px; }

  /* ===== FOOTER MOBILE ===== */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ===== FLOATING BUTTONS MOBILE ===== */
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-float a { width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }
  .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }

  /* ===== SECTION TITLE MOBILE ===== */
  .section-title { margin-bottom: 40px; }
  .section-title .badge { font-size: .78rem; padding: 5px 14px; }

  /* ===== VM CARDS MOBILE ===== */
  .vm-card { padding: 18px; }
  .vm-card .vm-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}
/* ---------- Button Gold ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--gray-900);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.4);
}

/* ---------- Galeri Fasilitas ---------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  aspect-ratio: 4/3;
  background-color: var(--gray-100);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  padding: 20px 15px 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* ============================================================
   EXTRA SMALL / PHONES (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --container-px: 14px;
  }

  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.75rem); }

  .hero .container { padding-top: 80px; padding-bottom: 40px; }
  .hero-badge { font-size: .72rem; padding: 6px 14px; }
  .hero-description { font-size: .92rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .stat-number { font-size: 1.6rem; }
  .hero-stat .stat-label { font-size: .75rem; }
  .hero-buttons .btn { padding: 13px 20px; font-size: .85rem; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .stat-card { padding: 18px 10px; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .stat-card .stat-label { font-size: .78rem; }

  .partners-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partner-logo { padding: 12px; min-height: 60px; }
  .partner-logo span { font-size: .78rem; }

  .swiper-slide-inner { height: 240px; }
  .swiper-slide-caption { padding: 24px 16px 16px; }
  .swiper-slide-caption h4 { font-size: .95rem; }
  .swiper-slide-caption p { display: none; } /* Sembunyikan deskripsi di layar sangat kecil */

  .section-title { margin-bottom: 32px; }

  .products-grid { gap: 16px; }
  .product-card .card-body { padding: 16px; }
  .product-card .card-body h3 { font-size: 1.1rem; }

  .partnership-card { padding: 28px 16px; }

  .contact-form-wrapper { padding: 20px 16px; }
  .form-group input, .form-group textarea { padding: 12px 14px; }
  .btn { padding: 12px 20px; font-size: .88rem; }

  .footer { padding: 48px 0 0; }
  .footer-grid { gap: 24px; }

  .whatsapp-float { bottom: 14px; right: 14px; }
  .whatsapp-float a { width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .back-to-top { bottom: 74px; right: 14px; width: 38px; height: 38px; }
  .back-to-top svg { width: 17px; height: 17px; }
}

/* ============================================================
   IPHONE SE / VERY SMALL PHONES (max-width: 375px)
   ============================================================ */
@media (max-width: 375px) {
  .hero-stats { justify-content: space-around; }
  .nav-logo .logo-text { font-size: .68rem; max-width: 140px; }
  .section-title .badge { font-size: .7rem; }
}

/* ============================================================
   SAFE AREA INSETS (iPhone X / notch devices)
   ============================================================ */
@supports (padding: max(0px)) {
  .navbar .container {
    padding-left: max(var(--container-px), env(safe-area-inset-left));
    padding-right: max(var(--container-px), env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .whatsapp-float {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
    right: max(14px, env(safe-area-inset-right));
  }
}

/* ============================================================
   TOUCH IMPROVEMENTS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Lebih besar touch target untuk mobile */
  .nav-toggle { padding: 8px; }
  .btn { min-height: 48px; }
  .card-action { padding: 8px 0; }
  .location-card { cursor: pointer; }

  /* Hapus hover transforms yang tidak diperlukan di touch device */
  .product-card:hover { transform: none; }
  .vm-card:hover { transform: none; }
  .partnership-card:hover { transform: none; }
  .partner-logo:hover { transform: none; }
  .gallery-item:hover { transform: none; }

  /* Aktifkan :active state untuk feedback sentuhan */
  .btn:active { transform: scale(0.97); }
  .product-card:active { box-shadow: var(--shadow-lg); }
  .partner-logo:active { background: rgba(255,255,255,.15); }
}
