/* ================================================================
   shared.css — Shared styles for Indonesian NAATI marketing pages
   ================================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a4f7a;
  --primary-light: #2471a3;
  --primary-dark:  #0f2d45;
  --accent:        #e8830a;
  --bg:            #F7F5F1;
  --card:          #ffffff;
  --text:          #1a202c;
  --muted:         #6b7280;
  --border:        #e2e8f0;
  --radius:        14px;
  --shadow:        0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ================================================================
   NAVIGATION
   ================================================================ */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 24px;
}

/* Logo */
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), #d4720a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Centre links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  border: none;
  white-space: nowrap;
}

.nav-btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.nav-btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(26,79,122,0.04);
}

.nav-btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.nav-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,79,122,0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary);
}

.nav-mobile .nav-mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.nav-mobile .nav-mobile-actions .nav-btn {
  flex: 1;
  text-align: center;
}

/* ================================================================
   PAGE HERO
   ================================================================ */

.page-hero {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 72px 48px;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.65;
}

/* ================================================================
   PAGE CONTENT
   ================================================================ */

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ================================================================
   CARD
   ================================================================ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ================================================================
   GRID HELPERS
   ================================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 36px 48px;
  margin-top: 80px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  font-size: 0.9rem;
}

.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.site-footer-links a:hover {
  color: #ffffff;
}

/* ================================================================
   SHARED BUTTONS (marketing pages)
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,79,122,0.3);
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #d1d9e6;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ================================================================
   SECTION SPACING
   ================================================================ */

.section {
  margin-bottom: 72px;
}

.section:last-child {
  margin-bottom: 0;
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .page-hero {
    padding: 48px 20px;
  }

  .page-content {
    padding: 40px 20px;
  }

  .card {
    padding: 24px 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 28px 20px;
    margin-top: 48px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer-links {
    gap: 16px;
  }
}
