/* ==========================================================================
   PT Rasi Amerta Mandiri — design tokens
   ========================================================================== */
:root {
  --ink:        #0E2436;
  --ink-2:      #163449;
  --paper:      #EDF1F4;  /* cool blue-tinted paper — reads as blueprint stock, not cream */
  --paper-2:    #DEE6EA;
  --brand:      #0C6E94;  /* deep logo-blue — text/buttons on paper & white */
  --brand-dp:   #094F6C;  /* hover state for brand-blue buttons/links */
  --brand-lt:   #1E9BD1;  /* bright logo-blue — text/tags on dark ink */
  --signal:     #F7941D;  /* logo orange — reserved for two decorative accents only */
  --error:      #B3261E;
  --line:       #C7D2D8;
  --line-dark:  rgba(230, 238, 242, .14);
  --text-ink:   #1A2024;
  --text-mute:  #55636B;
  --text-paper: #E7ECEF;
  --text-paper-mute: rgba(231, 236, 239, .72);

  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body:    'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --radius: 3px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 118.75%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--f-body);
  color: var(--text-ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; }

::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap { max-width: 1180px; margin: 0 auto; }

/* eyebrow / mono label ------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .5; }
section.on-ink .eyebrow,
.on-ink .eyebrow { color: var(--brand-lt); }

/* tag / stamp — the signature element ----------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: .28rem .55rem;
  white-space: nowrap;
}
.tag.tag-lg { font-size: .86rem; padding: .4rem .75rem; }

/* ==========================================================================
   NAV
   ========================================================================== */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(237, 241, 244, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
#nav.up { border-bottom-color: var(--line); background: rgba(237, 241, 244, .97); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 48px; width: auto; }
.brand-t { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); line-height: 1; text-transform: uppercase; }
.brand-t small { display: block; font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: .14em; color: var(--text-mute); margin-top: .3rem; }

.nav-mid { display: flex; gap: .15rem; }
.nav-mid a {
  font-family: var(--f-mono); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-mute); padding: .6rem .9rem; border-radius: 2px; transition: color .2s, background .2s;
}
.nav-mid a:hover { color: var(--ink); background: var(--paper-2); }

.nav-end { display: flex; align-items: center; gap: .9rem; }

.lang-sw { display: flex; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.lang-sw button {
  background: none; border: none; cursor: pointer; font-family: var(--f-mono);
  font-size: .84rem; font-weight: 500; letter-spacing: .05em; padding: .38rem .75rem; color: var(--text-mute); transition: all .2s;
}
.lang-sw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.nav-btn {
  background: var(--brand); color: #fff; font-family: var(--f-mono); font-size: .92rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; padding: .68rem 1.25rem; border-radius: 2px; border: none; cursor: pointer; transition: background .2s;
}
.nav-btn:hover { background: var(--brand-dp); }

.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

.mob {
  display: none; position: fixed; top: 80px; left: 0; right: 0; z-index: 99;
  background: var(--paper); padding: 1.25rem var(--gutter) 1.5rem; flex-direction: column; gap: .1rem;
  border-top: 1px solid var(--line); box-shadow: 0 12px 30px rgba(18,34,44,.12);
}
.mob.show { display: flex; }
.mob a { font-family: var(--f-mono); font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
.mob-foot { margin-top: 1rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem;
  padding: 9rem var(--gutter) 5rem;
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(12,110,148,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,110,148,.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-h {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 6.2vw, 4.85rem);
  line-height: .96;
  letter-spacing: .002em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 13ch;
}
.hero-h .accent { color: var(--brand); }

.hero-p { font-size: 1.18rem; font-weight: 400; color: var(--text-mute); line-height: 1.7; max-width: 480px; margin-bottom: 2.3rem; }

.hero-acts { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  font-family: var(--f-mono); font-size: .86rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  padding: .85rem 1.5rem; border-radius: 2px; cursor: pointer; transition: all .2s; border: 1.5px solid transparent;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dp); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* hero schematic -------------------------------------------------------- */
.hero-vis { position: relative; }
.hero-board {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.hero-board-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.hero-grid i {
  display: block; aspect-ratio: 1; border-radius: 1px;
  background: rgba(12,110,148,.12);
}
.hero-grid i.on { background: var(--brand); }
.hero-grid i.hot { background: var(--signal); }

/* ==========================================================================
   STATEMENT BAND
   ========================================================================== */
#statement { background: var(--ink); color: var(--text-paper); padding: 4.5rem var(--gutter); }
.stmt-q { font-family: var(--f-body); font-weight: 300; font-size: clamp(1.3rem, 2.5vw, 1.68rem); line-height: 1.6; max-width: 860px; color: var(--text-paper); }
.stmt-q b { font-weight: 600; color: #fff; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
#layanan { padding: 7rem var(--gutter); }
.svc-list { max-width: 880px; }
.svc-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 2.2rem;
  padding: 2.3rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc-row:first-child { padding-top: 0; }
.svc-tag { color: var(--brand); border-color: var(--brand); }
.svc-body h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.65rem; color: var(--ink); margin-bottom: .6rem; letter-spacing: .01em; }
.svc-body p { font-size: 1.05rem; color: var(--text-mute); line-height: 1.7; margin-bottom: 1rem; max-width: 56ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .03em; padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 2px; color: var(--text-mute); }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
#produk { background: var(--ink); color: var(--text-paper); padding: 7rem var(--gutter); }
.prod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.prod-head h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 3.7vw, 2.75rem); color: #fff; line-height: 1.02; max-width: 15ch; }
.prod-head h2 .accent { color: var(--brand-lt); }
.prod-head p { font-size: 1rem; color: var(--text-paper-mute); max-width: 320px; }

.prod-table { border-top: 1px solid var(--line-dark); }
.prod-row {
  display: grid; grid-template-columns: 150px 1.3fr 1fr; gap: 1.6rem 2rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line-dark); align-items: start;
  transition: background .2s;
}
.prod-row:hover { background: rgba(30,155,209,.06); }
.prod-code { color: var(--brand-lt); border-color: var(--brand-lt); align-self: start; }
.prod-name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; color: #fff; margin-bottom: .5rem; letter-spacing: .01em; }
.prod-desc { font-size: 1rem; color: var(--text-paper-mute); line-height: 1.65; max-width: 42ch; }
.prod-feat li { font-size: .92rem; color: var(--text-paper-mute); display: flex; gap: .5rem; padding: .18rem 0; }
.prod-feat li::before { content: '—'; color: var(--brand-lt); flex-shrink: 0; }

/* ==========================================================================
   VISION & MISSION
   ========================================================================== */
#visi { padding: 7rem var(--gutter); background: var(--paper-2); }
.vm-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5rem; align-items: start; }
.vm-left h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.1rem, 3.9vw, 2.85rem); color: var(--ink); line-height: 1.03; margin-bottom: 1.4rem; }
.vm-left h2 .accent { color: var(--brand); }
.vm-left p { font-size: 1.08rem; color: var(--text-mute); line-height: 1.75; max-width: 46ch; }

.vm-right { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); padding: 1.8rem; }
.vm-right h3 { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mission-items { display: flex; flex-direction: column; gap: 1rem; }
.mission-items li { display: flex; gap: .8rem; font-size: 1.04rem; color: var(--text-ink); line-height: 1.6; }
.mi-c { flex-shrink: 0; font-family: var(--f-mono); font-size: .86rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
#kontak { padding: 7rem var(--gutter); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.contact-left h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 3.3vw, 2.45rem); color: var(--ink); margin: 1rem 0 1rem; line-height: 1.08; }
.contact-left > p.lead { font-size: 1.07rem; color: var(--text-mute); line-height: 1.7; margin-bottom: 2.2rem; max-width: 48ch; }

.cinfo { display: flex; flex-direction: column; }
.cinfo-row { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.cinfo-row:last-child { border-bottom: 1px solid var(--line); }
.cinfo-lbl { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute); width: 100px; flex-shrink: 0; padding-top: .15rem; }
.cinfo-val { font-size: 1rem; color: var(--text-ink); line-height: 1.6; }
.cinfo-val a { color: var(--brand); border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.cinfo-val a:hover { color: var(--brand-dp); border-color: var(--brand-dp); }

.contact-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: rgba(255,255,255,.5); }
.cf-meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px dashed var(--line); }
.fg { margin-bottom: 1.1rem; }
.fg label { display: block; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .5rem; }
.fg input, .fg textarea, .fg select {
  width: 100%; background: #fff; border: 1.5px solid var(--line);
  border-radius: 2px; color: var(--text-ink); font-family: var(--f-body); font-size: 1.03rem;
  padding: .72rem .9rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,110,148,.12); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2355636B'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.form-err { font-size: .92rem; color: var(--error); margin-bottom: .9rem; }
.form-ok  { font-size: .92rem; color: #2F6B3A; margin-bottom: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--ink); padding: 2.4rem var(--gutter); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.foot-brand { display: flex; align-items: center; gap: .65rem; }
.foot-brand img { height: 38px; width: auto; background: var(--paper); padding: 4px 7px; border-radius: 3px; }
.foot-brand-t { font-family: var(--f-mono); font-size: .84rem; letter-spacing: .05em; color: var(--text-paper); text-transform: uppercase; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-paper-mute); transition: color .2s; }
.foot-links a:hover { color: var(--brand-lt); }
.foot-copy { width: 100%; border-top: 1px solid var(--line-dark); margin-top: 1.6rem; padding-top: 1.2rem; font-family: var(--f-mono); font-size: .78rem; color: rgba(231,236,239,.45); text-align: center; letter-spacing: .03em; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-vis { max-width: 420px; }
  .vm-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 2.6rem; }
  .prod-row { grid-template-columns: 120px 1fr; }
  .prod-feat { display: none; }
}
@media (max-width: 700px) {
  .nav-mid { display: none; }
  .nav-btn { display: none; }
  .burger { display: flex; }
  .svc-row { grid-template-columns: 1fr; gap: .9rem; }
  .prod-row { grid-template-columns: 1fr; }
  .prod-code { margin-bottom: .3rem; }
  .hero-acts { flex-direction: column; }
  .btn { justify-content: center; }
  .prod-head { flex-direction: column; align-items: flex-start; }
}
