/* GlobalTrade Nusantara — style.css */
:root {
  --primary: #1a237e;
  --primary-dark: #0d1257;
  --primary-light: #283593;
  --accent: #ffd600;
  --accent-dark: #f9a825;
  --bg: #f5f6fa;
  --bg-white: #ffffff;
  --text: #1c1c2e;
  --text-light: #555577;
  --text-muted: #8888aa;
  --border: #dde0f0;
  --shadow: 0 2px 16px rgba(26,35,126,0.10);
  --shadow-hover: 0 6px 28px rgba(26,35,126,0.18);
  --radius: 10px;
  --radius-lg: 18px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: .2s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
img { max-width: 100%; }

/* DEMO BAR */
.demo-bar {
  background: #1a1a2e;
  color: #fff;
  font-size: .8rem;
  text-align: center;
  padding: .45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar a { color: var(--accent); font-weight: 600; }
.demo-bar a:hover { color: #fff; }

/* NAV */
header {
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  position: sticky;
  top: 2.3rem;
  z-index: 900;
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .01em;
}
.brand-icon {
  width: 36px; height: 36px; flex-shrink: 0;
}
.brand span { color: var(--accent); }

/* Hamburger checkbox hack */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-links a {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent);
  color: var(--primary);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1565c0 100%);
  color: #fff;
  padding: 5rem 1.2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::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");
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(255,214,0,.18);
  color: var(--accent);
  border: 1px solid rgba(255,214,0,.35);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,214,0,.35); color: var(--primary); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  display: inline-block;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* HERO GLOBE SVG */
.hero-globe {
  margin: 2.8rem auto 0;
  width: 200px; height: 200px;
  opacity: .25;
}

/* SECTION BASE */
section { padding: 4rem 1.2rem; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .8rem;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-light);
  max-width: 620px;
  margin-bottom: 2.8rem;
  font-size: 1rem;
}

/* STATS */
.stats-section { background: var(--primary); color: #fff; padding: 3rem 1.2rem; }
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .88rem; color: rgba(255,255,255,.75); font-weight: 500; }

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-icon { width: 52px; height: 52px; margin-bottom: 1.2rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
.service-card p { font-size: .93rem; color: var(--text-light); line-height: 1.6; }

/* TESTIMONIAL */
.testi-section { background: #eef0fb; }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.testi-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}
.testi-stars { color: var(--accent-dark); font-size: 1.1rem; margin-bottom: .8rem; }
.testi-text { font-size: .97rem; color: var(--text); line-height: 1.7; margin-bottom: 1.2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: .93rem; color: var(--primary); }
.testi-role { font-size: .82rem; color: var(--text-muted); }

/* CTA SECTION */
.cta-section { background: var(--primary); color: #fff; text-align: center; }
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.78); margin-bottom: 2rem; font-size: 1rem; }

/* ABOUT PAGE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: .6rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--primary);
  top: .3rem;
}
.timeline-year { font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .2rem; }
.timeline-item h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.timeline-item p { font-size: .9rem; color: var(--text-light); }

.visi-misi-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 1.5rem;
}
.visi-misi-box h3 { color: var(--accent); font-size: 1rem; font-weight: 700; margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.visi-misi-box p, .visi-misi-box li { font-size: .93rem; color: rgba(255,255,255,.85); line-height: 1.7; }
.visi-misi-box ul { padding-left: 1.2rem; list-style: disc; }
.visi-misi-box li + li { margin-top: .4rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.team-initials { font-size: 1.5rem; font-weight: 800; fill: var(--accent); }
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); }

.cert-list { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.cert-badge {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
}

/* LAYANAN PAGE */
.layanan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.layanan-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 5px solid var(--primary);
}
.layanan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.layanan-card .layanan-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.layanan-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: .7rem; }
.layanan-card .layanan-desc { color: var(--text-light); font-size: .95rem; margin-bottom: 1.2rem; line-height: 1.65; }
.layanan-features { margin-bottom: 1.2rem; }
.layanan-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--text); margin-bottom: .45rem;
}
.layanan-features li::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .45rem;
  flex-shrink: 0;
}
.layanan-skema {
  background: var(--bg);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .87rem;
  color: var(--primary);
  font-weight: 600;
}

/* PORTOFOLIO PAGE */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter-bar input[type=radio] { display: none; }
.filter-label {
  display: inline-block;
  padding: .4rem 1.1rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-bar input[type=radio]:checked + .filter-label {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.porto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.porto-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.porto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.porto-visual {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.porto-visual svg { opacity: .3; }
.porto-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .7rem;
  border-radius: 12px;
}
.porto-body { padding: 1.5rem; }
.porto-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.porto-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .8rem; }
.porto-result { font-size: .9rem; color: var(--text-light); line-height: 1.6; }
.porto-year { font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-top: .6rem; }

/* KONTAK PAGE */
.kontak-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
.kontak-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.kontak-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.kontak-icon-box {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kontak-item h4 { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .05em; }
.kontak-item p, .kontak-item a { font-size: .95rem; color: var(--text); display: block; }
.kontak-item a:hover { color: var(--primary); }
.jam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .5rem; font-size: .88rem; margin-top: .4rem; }
.jam-grid span:first-child { color: var(--text-light); }
.jam-grid span:last-child { font-weight: 600; color: var(--primary); }

.map-placeholder {
  background: var(--border);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.kontak-form { background: var(--bg-white); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }
.kontak-form h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.2rem 1.5rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { display: block; color: rgba(255,255,255,.68); font-size: .88rem; margin-bottom: .5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.45); }

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3.5rem 1.2rem 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* BG SECTIONS ALT */
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg); }

/* ORG CHART */
.org-wrap { text-align: center; margin: 2rem 0; }
.org-top { display: inline-block; background: var(--primary); color: #fff; border-radius: 10px; padding: 1rem 2.5rem; font-weight: 700; font-size: 1rem; margin-bottom: 1.5rem; }
.org-line { width: 2px; height: 30px; background: var(--border); margin: 0 auto; }
.org-mid { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.org-box {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: .7rem 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .layanan-grid { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle-label { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: .8rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  #nav-toggle:checked ~ .nav-wrap .nav-links { display: flex; }
  .nav-links a { padding: .75rem 1.5rem; border-radius: 0; }
  header { position: relative; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .porto-grid { grid-template-columns: 1fr; }
  .org-mid { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
}
