/* ============================================================
   PT Rinjani Parahita Nusantara — Static Site
   Palette: yellow #f3c514 · navy #0a0443 · white
   ============================================================ */
:root {
  --yellow: #f3c514;
  --navy: #0a0443;
  --navy-soft: #150b5c;
  --ink: #2b2b3a;
  --muted: #6b7280;
  --bg-soft: #f6f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 4, 67, 0.10);
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 15.5px;
}

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfd2e8;
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a:hover { color: var(--yellow); }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 13px; height: 13px; fill: var(--yellow); flex: none; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(10, 4, 67, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand .brand-text { line-height: 1.2; }
.brand .brand-text b { color: var(--navy); font-size: 15px; display: block; }
.brand .brand-text span { color: var(--muted); font-size: 11px; letter-spacing: .04em; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  border-radius: 8px;
  transition: .2s;
}
.main-nav a:hover { color: var(--navy); background: rgba(243, 197, 20, .18); }
.main-nav a.active {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.on { opacity: 1; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,4,67,.92) 15%, rgba(10,4,67,.62) 55%, rgba(10,4,67,.35));
}
.hero .container { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 640px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p.lead {
  margin-top: 18px;
  max-width: 520px;
  color: #e4e6f5;
  font-size: 17px;
}
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 30px;
  border-radius: 999px;
  transition: .25s;
  border: 2px solid var(--yellow);
}
.btn:hover { background: transparent; color: var(--yellow); }
.btn.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.btn-navy:hover { background: transparent; color: var(--navy); }
.btn.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.hotline { display: flex; align-items: center; gap: 12px; }
.hotline .ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(243,197,20,.15);
  border: 1px solid var(--yellow);
  display: grid; place-items: center;
}
.hotline svg { width: 20px; height: 20px; fill: var(--yellow); }
.hotline small { display: block; color: #c9cce6; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.hotline b { font-size: 17px; color: var(--white); }

/* ---------- Stats ---------- */
.stats { background: var(--yellow); }
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 34px 0;
  gap: 20px;
}
.stat b { font-size: clamp(30px, 4vw, 44px); color: var(--navy); display: block; line-height: 1.1; }
.stat span { color: #4d420a; font-weight: 500; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: var(--white); }

.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12.5px;
}
.section:not(.navy) .kicker { color: #b7940b; }
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--navy);
  line-height: 1.22;
  margin-top: 10px;
}
.section.navy .sec-head h2 { color: var(--white); }
.sec-head p { margin-top: 14px; color: var(--muted); }
.section.navy .sec-head p { color: #ccd0e8; }

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split .photo::before {
  content: '';
  position: absolute; inset: 0;
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
  transform: translate(14px, 14px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--yellow);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(10,4,67,.16); }
.card .ico {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .ico img { width: 34px; height: 34px; object-fit: contain; }
.card h3 { color: var(--navy); font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.5;
}
.quote blockquote::before { content: '“'; color: var(--yellow); font-size: 1.4em; }
.quote blockquote::after { content: '”'; color: var(--yellow); font-size: 1.4em; }
.quote .who b { color: var(--yellow); display: block; font-size: 16px; }
.quote .who span { color: #ccd0e8; font-size: 13.5px; }

/* ---------- Clients ---------- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  align-items: center;
}
.logo-row .logo-cell {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.logo-row .logo-cell:hover { transform: translateY(-4px); }
.logo-row img { max-height: 64px; object-fit: contain; filter: saturate(.9); }

/* ---------- Project / news cards ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.p-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}
.p-card:hover { transform: translateY(-6px); }
.p-card .thumb { height: 190px; overflow: hidden; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .thumb img { transform: scale(1.06); }
.p-card .body { padding: 20px 22px 24px; }
.p-card time { color: #b7940b; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.p-card h3 { color: var(--navy); font-size: 16px; margin: 6px 0 8px; line-height: 1.35; }
.p-card p { color: var(--muted); font-size: 13.5px; }

/* ---------- Page title (inner pages) ---------- */
.page-title {
  position: relative;
  background: var(--navy) center/cover no-repeat;
  padding: 92px 0;
  color: var(--white);
}
.page-title::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,4,67,.94), rgba(10,4,67,.55));
}
.page-title .container { position: relative; z-index: 2; }
.page-title h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-title .crumb { color: #c9cce6; font-size: 13.5px; margin-top: 8px; }
.page-title .crumb a:hover { color: var(--yellow); }
.page-title .crumb b { color: var(--yellow); font-weight: 600; }

/* ---------- Vision / mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  border-left: 5px solid var(--yellow);
}
.vm h3 { color: var(--navy); font-size: 21px; margin-bottom: 12px; }
.vm ol { padding-left: 20px; color: var(--muted); }
.vm ol li { margin-bottom: 10px; }
.vm p { color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
}
.checklist li::before {
  content: '✔';
  position: absolute;
  left: 0; top: 1px;
  color: var(--navy);
  background: var(--yellow);
  width: 20px; height: 20px;
  font-size: 11px;
  border-radius: 50%;
  display: grid; place-items: center;
}

/* ---------- Legal table ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid #eef0f6;
  font-size: 14.5px;
  vertical-align: top;
}
.legal-table th { width: 38%; color: var(--navy); font-weight: 600; background: #fbf6df; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s;
}
.member:hover { transform: translateY(-6px); }
.member .photo {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #e9ebf3;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member .info { padding: 18px 16px 22px; }
.member h3 { color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.member .role {
  color: #b7940b;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.member p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ---------- Works timeline ---------- */
.work-cat { margin-bottom: 54px; }
.work-cat > h3 {
  color: var(--navy);
  font-size: 21px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.work-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.work-item .year {
  flex: none;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 6px 10px;
}
.work-item b { color: var(--navy); font-size: 14.5px; display: block; }
.work-item span { color: var(--muted); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; }
.c-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 22px;
}
.c-card h4 {
  color: var(--navy);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.c-card h4 svg { width: 18px; height: 18px; fill: #b7940b; }
.c-card p { color: var(--muted); font-size: 14.5px; }
.c-lines li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e6e8f0;
  color: var(--ink);
  font-weight: 500;
}
.c-lines li:last-child { border-bottom: 0; }
.c-lines svg { width: 17px; height: 17px; fill: var(--navy); flex: none; }
.c-lines a:hover { color: #b7940b; }

.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9cce6; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 44px;
  padding: 64px 0 48px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.site-footer .tagline b { color: var(--yellow); font-size: 22px; line-height: 1.3; display: block; }
.site-footer .tagline img { height: 60px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.site-footer .fine a { color: var(--yellow); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .topbar .tb-right { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(10,4,67,.14);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px; }
  .split, .vm-grid, .contact-grid, .work-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 540px; }
}
@media (max-width: 520px) {
  .cards, .projects, .team-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
