/* ==========================================================================
   PT. WIRAMA INDAH CIGADING — base.css
   Design tokens, reset, typography, layout primitives.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — navy authority + orange action */
  --navy-900: #04102C;
  --navy-800: #071F4D;
  --navy-700: #0B2B6B;
  --navy-600: #113A8A;
  --navy-500: #1B4FB8;
  --navy-100: #E8EEFA;

  --orange-600: #D96C0C;
  --orange-500: #F58220;
  --orange-400: #FF9F42;
  --orange-100: #FFF1E2;

  --ink: #0C1526;
  --muted: #5B6478;
  --muted-light: #8D96A8;
  --line: #E3E9F2;
  --surface: #F4F7FB;
  --surface-2: #EDF2F9;
  --white: #FFFFFF;

  --ok: #12A150;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(1.95rem, 4.3vw, 3.4rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.3vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.9vw, 1.6rem);
  --fs-lead: clamp(1.03rem, 1.35vw, 1.2rem);
  --fs-body: clamp(0.97rem, 1vw, 1.03rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6.5rem;  --sp-12: 8rem;

  --section-y: clamp(4rem, 8vw, 7.5rem);

  /* Shape */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Elevation — layered, low-opacity for a premium feel */
  --sh-sm: 0 1px 2px rgba(7, 31, 77, .05), 0 2px 6px rgba(7, 31, 77, .04);
  --sh-md: 0 4px 12px rgba(7, 31, 77, .06), 0 12px 28px rgba(7, 31, 77, .07);
  --sh-lg: 0 10px 24px rgba(7, 31, 77, .08), 0 28px 60px rgba(7, 31, 77, .1);
  --sh-orange: 0 8px 24px rgba(245, 130, 32, .32);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .7s;

  --container: 1320px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* The UA rule for [hidden] is display:none at very low specificity, so any
   class that sets a display value would defeat it. Keep it authoritative. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--navy-800);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy-700); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.stack > * + * { margin-top: var(--sp-4); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--orange-400); }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}
.section--navy .lead { color: rgba(255, 255, 255, .78); }

.muted { color: var(--muted); }
.accent { color: var(--orange-500); }

/* The orange full-stop used throughout the brand voice */
.dot { color: var(--orange-500); }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: var(--sp-4); }
.section-head h2 { margin-top: var(--sp-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--navy-700);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; }
