/* ============================================================
   PT Sangkareang Karyatama Sejahtera — sangkareang.top
   Palet dari logo: merah #B01E23, hitam #17181C, abu #9CA3AF
   ============================================================ */

:root {
  --red: #b01e23;
  --red-dark: #8c171b;
  --red-soft: #fdeeee;
  --ink: #17181c;
  --ink-2: #2a2c33;
  --steel: #5b616e;
  --line: #e6e7ea;
  --paper: #ffffff;
  --off: #f7f7f8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(23 24 28 / 0.06);
  --shadow-md: 0 6px 24px rgb(23 24 28 / 0.08);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }

a { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.section .btn-ghost:hover { background: rgb(23 24 28 / 0.05); }
.btn-lg { min-height: 52px; padding: 14px 30px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 52px; height: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; }
.nav-brand-text small { color: var(--steel); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--red); border-bottom-color: var(--red); }
.nav-cta { min-height: 42px; padding: 8px 20px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); padding: 10px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1a1b20 0%, #17181c 55%, #241012 100%);
  color: #fff;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; padding: 96px 24px 72px; }
.hero-kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: #f0b9bb;
  border: 1px solid rgb(240 185 187 / 0.35); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.hero h1 .accent { color: #f0656a; }
.hero-sub { max-width: 640px; margin-top: 18px; font-size: 1.08rem; color: #c9cbd1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 0.12);
}
.hero-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.hero-stats dd { color: #9fa2ab; font-size: 0.88rem; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--off); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-sub, .section-dark p { color: #c9cbd1; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.section-dark .eyebrow { color: #f0656a; }
.section-sub { margin-top: 12px; color: var(--steel); }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.about-text p + p { margin-top: 14px; }
.vm-cards { display: grid; gap: 18px; }
.vm-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.vm-card h3 { margin: 12px 0 8px; }
.vm-card p { color: var(--steel); font-size: 0.95rem; }
.vm-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
}

/* ---------- Layanan ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius); padding: 26px; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.service-card:hover { border-color: rgb(240 101 106 / 0.55); background: rgb(255 255 255 / 0.06); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgb(176 30 35 / 0.22); color: #f0656a; margin-bottom: 16px;
}
.service-card h3 { color: #fff; margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; }

/* ---------- Proyek ---------- */
.project-list { display: grid; gap: 14px; }
.project-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-item:hover { box-shadow: var(--shadow-md); border-color: #d9dadd; }
.project-year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--red);
  border-right: 2px solid var(--line); padding-right: 18px;
}
.project-body h3 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
.project-client { color: var(--steel); font-size: 0.88rem; margin-top: 4px; }
.project-value {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink);
  background: var(--off); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Legalitas ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }
.legal-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-weight: 500; font-size: 0.95rem;
}
.legal-check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
}

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius); padding: 24px;
}
.contact-card h3 { color: #fff; margin: 14px 0 8px; }
.contact-card p { font-size: 0.92rem; }
.contact-card a { color: #f0b9bb; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgb(176 30 35 / 0.22); color: #f0656a;
}
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: #101114; color: #9fa2ab; padding: 44px 0; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 64px; background: #fff; border-radius: 8px; padding: 5px; }
.footer-brand p { color: #e6e7ea; font-weight: 600; line-height: 1.4; }
.footer-brand span { color: #9fa2ab; font-weight: 400; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #c9cbd1; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; border-top: 1px solid rgb(255 255 255 / 0.08); padding-top: 22px; }

/* ---------- Reveal animation ----------
   Elemen terlihat secara default; kelas js-anim (di-set JS) yang
   menyembunyikannya sesaat, sehingga tanpa JS halaman tetap utuh. */
html.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 24px 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .service-grid, .contact-grid, .legal-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .project-year { border-right: none; border-bottom: 2px solid var(--line); padding: 0 0 10px; }
  .project-value { justify-self: start; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; }
}
