/* Nusantara Life & General — design system
   Navy authority + restrained gold, Fraunces display / IBM Plex Sans body,
   8-pt spacing scale. */

:root {
  --navy-900: #12264e;
  --navy-800: #16305e;
  --navy-700: #1e3a8a;
  --navy-600: #2547a5;
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-100: #fdf1e0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --fg: #0f172a;
  --fg-soft: #42526b;
  --muted: #e9eef5;
  --border: #cbd5e1;
  --ring: #1e3a8a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 8px 24px -8px rgb(18 38 78 / 0.18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { max-width: 65ch; }
a { color: var(--navy-700); }
img, svg { max-width: 100%; }

.container { width: min(1120px, 100% - var(--s4)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--s3);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a { text-decoration: none; color: var(--fg-soft); font-weight: 500; font-size: 0.95rem; padding: 8px 4px; border-radius: 6px; }
.nav a:hover { color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--gold-500); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem var(--font-body);
  padding: 12px 22px; min-height: 44px;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 2px;
}
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--gold-600); color: #fff; }
.btn-gold:hover { background: var(--gold-500); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgb(217 119 6 / 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgb(37 71 165 / 0.55), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0v56M0 28h56' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; padding: var(--s12) 0 var(--s10); }
.hero .eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #f3c98a;
  margin-bottom: var(--s2);
}
.hero h1 { max-width: 17ch; }
.hero p.lede { margin-top: var(--s3); font-size: 1.1rem; color: rgb(255 255 255 / 0.85); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.hero .btn-ghost:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }

.trust-strip { border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: var(--s10); padding-top: var(--s4); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.trust-strip .stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.trust-strip .stat span { font-size: 0.85rem; color: rgb(255 255 255 / 0.7); }

/* ---------- sections ---------- */
.section { padding: var(--s12) 0; }
.section-head { max-width: 60ch; margin-bottom: var(--s6); }
.section-head .kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); }
.section-head h2 { margin-top: var(--s1); }
.section-head p { margin-top: var(--s2); color: var(--fg-soft); }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }

.cards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy-700); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-600); margin-bottom: var(--s3);
}
.card h3 { color: var(--navy-800); }
.card .id-name { font-size: 0.8rem; color: var(--gold-600); font-weight: 600; }
.card p { margin-top: var(--s1); color: var(--fg-soft); font-size: 0.95rem; }
.card ul { margin: var(--s2) 0 0 var(--s3); color: var(--fg-soft); font-size: 0.92rem; }
.card li { margin-bottom: 4px; }

.steps { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: var(--s4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-500);
  display: block; margin-bottom: var(--s2);
}

.cta-band {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); color: #fff;
  padding: var(--s8) var(--s6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: rgb(255 255 255 / 0.8); margin-top: var(--s1); }

/* ---------- prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s6); }
.prose p { margin-top: var(--s2); color: var(--fg-soft); }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s10) 0 var(--s8); }
.page-hero p { margin-top: var(--s2); color: var(--fg-soft); font-size: 1.05rem; }

.contact-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
dl.deflist div { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
dl.deflist dt { font-weight: 600; color: var(--navy-800); font-size: 0.9rem; }
dl.deflist dd { color: var(--fg-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 0.75); margin-top: var(--s12); }
.site-footer .container { padding: var(--s8) 0 var(--s6); display: grid; gap: var(--s5); grid-template-columns: 2fr 1fr 1fr; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s2); }
.site-footer a { color: rgb(255 255 255 / 0.75); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: var(--s3); font-size: 0.8rem; line-height: 1.7; color: rgb(255 255 255 / 0.55); }

@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s2) var(--s3) var(--s3); box-shadow: var(--shadow-md); }
  .nav a { padding: 12px 8px; }
  .nav.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--navy-800); }
  .site-footer .container { grid-template-columns: 1fr; }
  .cta-band { padding: var(--s6) var(--s4); }
}
