/* ============================================================
   INDO TRADE HUB — Shared Stylesheet
   Premium Indonesian Export Company
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* Design Tokens */
:root {
  --navy:        #0c1e3f;
  --navy-mid:    #162d58;
  --navy-light:  #1e3a70;
  --gold:        #c9a84c;
  --gold-light:  #e2c06a;
  --gold-pale:   #f5edd8;
  --charcoal:    #2c3540;
  --gray-mid:    #6b7280;
  --gray-light:  #f6f6f4;
  --white:       #ffffff;
  --border:      #e8e5df;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography helpers */
.font-display  { font-family: 'Playfair Display', serif; }
.font-mono-dm  { font-family: 'DM Mono', monospace; }
.text-navy     { color: var(--navy); }
.text-gold     { color: var(--gold); }
.text-charcoal { color: var(--charcoal); }
.bg-navy       { background: var(--navy); }
.bg-gold       { background: var(--gold); }
.border-gold   { border-color: var(--gold); }

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(12,30,63,0.08);
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #4a5568;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--navy); }

/* Logo */
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.6rem;
  color: #9ca3af;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

/* WA button nav */
.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: #22c55e;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-wa:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.35);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: white;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-navy-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: white;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-navy-solid:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,30,63,0.25);
}

.btn-outline-navy {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
}

.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── SECTION HELPERS ────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1.5px;
  background: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.gold-rule {
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(12,30,63,0.93) 0%, rgba(12,30,63,0.75) 60%, rgba(22,45,88,0.85) 100%),
    url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  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='%23c9a84c' fill-opacity='0.03'%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");
  pointer-events: none;
}

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(12,30,63,0.12);
}
.product-card .card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .card-image img {
  transform: scale(1.08);
}

/* ── TRUST FEATURES ─────────────────────────────────────── */
.trust-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(12,30,63,0.08);
}
.trust-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
/* Hero CSS-only animations — no JS needed */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}
.hero-animate.delay-1 { animation-delay: 0.15s; }
.hero-animate.delay-2 { animation-delay: 0.30s; }
.hero-animate.delay-3 { animation-delay: 0.50s; }
.hero-animate.delay-4 { animation-delay: 0.70s; }

/* Scroll-triggered fade-up for below-fold elements */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
/* Safety fallback: reveal content if JS never runs */
@keyframes fadeUpFallback { to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUpFallback 0.1s 2.5s forwards; }
.fade-up.visible { animation: none; }

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-divider {
  border-color: rgba(255,255,255,0.1);
}

/* ── WA FLOAT ───────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
  text-decoration: none;
}
.wa-float-inner {
  display: flex; align-items: center; gap: 8px;
  background: #22c55e;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover .wa-float-inner {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(34,197,94,0.5);
}

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  background:
    linear-gradient(135deg, rgba(12,30,63,0.95) 0%, rgba(12,30,63,0.80) 100%),
    url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1920&q=80') center/cover no-repeat;
  padding: 160px 0 80px;
}

/* ── PRODUCT SPEC TABLE ─────────────────────────────────── */
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-mid);
  width: 44%;
}
.spec-table td:last-child {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
}

/* ── FORM ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-input::placeholder { color: #b0b5bd; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ── COUNTRY CARDS ──────────────────────────────────────── */
.country-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.country-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-6px);
}
.country-flag { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.country-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}
.country-products { font-size: 0.75rem; color: rgba(255,255,255,0.55); }

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-box {
  text-align: center; padding: 8px 0;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE NAV ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  #mobile-menu-btn { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .wa-float-inner span { display: none; }
}
