/* ============================================================
   PT Srikaton Inovasi Teknologi — style.css
   Palet: maroon #8B1A2B · gold #C49A3A · charcoal #2E2B2A · ivory #F7F4EF
   ============================================================ */

:root {
  --maroon: #8B1A2B;
  --maroon-dark: #5E101D;
  --maroon-deep: #470C16;
  --gold: #C49A3A;
  --gold-light: #E3C87E;
  --charcoal: #2E2B2A;
  --gray: #6B6560;
  --ivory: #F7F4EF;
  --white: #FFFFFF;
  --border: #E7E1D8;

  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --container: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 700; }

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.eyebrow-maroon { color: var(--maroon); }
.eyebrow-gold { color: var(--gold-light); }

.section { padding: 88px 0; }
.section-ivory { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%238B1A2B' fill-opacity='0.026'%3E%3Crect x='18' y='22' width='40' height='40' rx='11'/%3E%3Crect x='84' y='66' width='24' height='24' rx='7'/%3E%3Crect x='160' y='30' width='32' height='32' rx='9'/%3E%3Crect x='200' y='150' width='44' height='44' rx='12'/%3E%3Crect x='50' y='160' width='28' height='28' rx='8'/%3E%3Crect x='120' y='200' width='22' height='22' rx='6'/%3E%3Crect x='150' y='110' width='36' height='36' rx='10'/%3E%3C/g%3E%3C/svg%3E"),
  var(--ivory); }
.section-maroon {
  background: var(--maroon-dark);
  color: var(--white);
}
.section-sub {
  max-width: 560px;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 2.2rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-dark); }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--maroon);
  transition: width 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* Ditulis sebagai `.nav-links a.nav-cta` — bukan `.nav-cta` saja — karena
   `.nav-links a { padding: 4px 0 }` punya spesifisitas LEBIH TINGGI dan tadinya
   menimpa padding tombol ini, membuat kotak maroon mepet ke teks. */
.nav-links a.nav-cta {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 22px;
  margin-left: 10px;          /* jarak dari menu "Platform" */
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav-links a.nav-cta:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 26, 43, .28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon-dark) 55%, var(--maroon) 100%);
  color: var(--white);
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; width: 100%; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  margin: 1.4rem 0 2rem;
  font-size: 1.08rem;
  opacity: 0.88;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  opacity: 0.95;
}
.hero-trust > span {
  display: block;
  margin-bottom: 0.7rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badges a {
  font-family: var(--font-display);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 18px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.trust-badges a:hover { border-color: var(--gold); color: var(--gold-light); }

/* Motif kotak dari logo Srikaton */
.hero-dots { position: absolute; inset: 0; pointer-events: none; }
.hero-dots .d {
  position: absolute;
  border-radius: 22%;
  background: rgba(255, 255, 255, 0.06);
}
.hero-dots .d1 { width: 90px; height: 90px; top: 12%; right: 14%; background: rgba(196, 154, 58, 0.18); }
.hero-dots .d2 { width: 46px; height: 46px; top: 30%; right: 8%; }
.hero-dots .d3 { width: 60px; height: 60px; top: 48%; right: 20%; background: rgba(196, 154, 58, 0.1); }
.hero-dots .d4 { width: 30px; height: 30px; top: 22%; right: 26%; }
.hero-dots .d5 { width: 20px; height: 20px; top: 60%; right: 10%; background: rgba(196, 154, 58, 0.22); }
.hero-dots .d6 { width: 120px; height: 120px; bottom: -30px; right: 30%; }
.hero-dots .d7 { width: 36px; height: 36px; top: 8%; right: 34%; background: rgba(196, 154, 58, 0.12); }
.hero-dots .d8 { width: 54px; height: 54px; bottom: 18%; right: 4%; }
.hero-dots .d9 { width: 26px; height: 26px; bottom: 32%; right: 24%; background: rgba(196, 154, 58, 0.16); }

/* ============ Split layout (Tentang, Srikaton Komputer) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.split-body p + p { margin-top: 1rem; }
.split-lead { margin-top: 1rem; color: var(--gray); }

/* ============ Cards layanan ============ */
.grid { display: grid; gap: 22px; margin-top: 2.4rem; }
.grid-services { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(46, 43, 42, 0.08);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 22%;
  background: var(--maroon);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.93rem; color: var(--gray); }

/* ============ Kartu produk ============ */
.grid-products { grid-template-columns: repeat(3, 1fr); }
.pcard {
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 24px 20px;
  background: var(--white);
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover {
  border-left-color: var(--gold);
  box-shadow: 0 10px 24px rgba(46, 43, 42, 0.07);
}
.pcard h3 { margin-bottom: 0.4rem; }
.pcard > p { font-size: 0.92rem; color: var(--gray); }
.pcard-brands {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem !important;
  letter-spacing: 0.02em;
  color: var(--maroon) !important;
  font-weight: 500;
}

/* ============ Brand strip ============ */
.brands-wrap { margin-top: 4rem; }

/* Tiap logo diberi KOTAK SERAGAM lalu di-`contain`, bukan sekadar dikunci
   tingginya. Dengan `height:auto; width:auto` polos, lebar logo mengikuti
   rasio gambar: Samsung (5.9:1) melebar sampai ~199px sementara Dell (1:1)
   cuma ~34px — timpang hampir 6x. Kotak seragam membuat semua brand mendapat
   porsi ruang yang sama. */
.bm { position: relative; display: flex; align-items: center; gap: 6px; }
.bm-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px;
  /* garis pudar di kiri-kanan supaya logo yang masuk/keluar terlihat halus */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Jendela yang memotong tampilan — .bm-row digeser di dalamnya lewat
   transform (dikontrol JS), BUKAN scroll bawaan browser (scrollLeft). Ini
   sengaja dihindari: scroll-anchoring bawaan Chrome bisa diam-diam "melawan
   balik" perubahan scrollLeft saat ada elemen yang reflow (mis. gambar lazy-
   load), tanpa memunculkan error apa pun — sulit dilacak. transform kebal
   dari itu karena bukan mekanisme scroll sama sekali. */
.bm-viewport { overflow: hidden; width: 100%; }
.bm-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  will-change: transform;
}
.bm-row li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px; height: 92px;
  padding: 14px 20px;
  border-radius: 14px;
  transition: background .2s ease, transform .2s ease;
}
.bm-row li:hover { background: var(--white); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 43, 42, .07); }
.bm-row img {
  max-width: 100%;
  max-height: 56px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease;
}
.bm-row img:hover { filter: grayscale(0) opacity(1); }

.bm-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--border); color: var(--maroon);
  cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.bm-arrow svg { width: 18px; height: 18px; }
.bm-arrow:hover { background: var(--maroon); color: #fff; border-color: var(--maroon);
  transform: translateY(-1px); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #A9A29B;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}
.brand-text:hover { color: var(--maroon); }

/* ============ Platform pengadaan ============ */
.grid-platform { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.platform-card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.platform-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}
.platform-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.platform-card p { font-size: 0.92rem; opacity: 0.82; }
.platform-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-light);
}

/* ============ Srikaton Komputer ============ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.market-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--maroon);
  box-shadow: 0 10px 22px rgba(46, 43, 42, 0.07);
}
.market-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--maroon);
}
.market-user { font-size: 0.82rem; color: var(--gray); }

/* ============ Kontak ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  margin-top: 2.2rem;
  align-items: start;
}
.contact-item { margin-bottom: 1.4rem; }
.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.2rem;
}
.contact-item a {
  font-weight: 500;
  color: var(--maroon);
}
.contact-item a:hover { text-decoration: underline; }
.contact-item address { font-style: normal; }
.contact-info .btn { margin-top: 0.6rem; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ============ Footer ============ */
.footer {
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { opacity: 0.7; max-width: 280px; }
.footer-nav, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a:hover, .footer-social a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .pcard, .platform-card, .market-card { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-services, .grid-products { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .nav-cta {
    text-align: center;
    margin-top: 8px;
    padding: 12px 20px;
  }

  .grid-services, .grid-products, .grid-platform,
  .market-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Daftar sales WhatsApp ---------- */
.wa-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.wa-person {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 11px;
  border: 1px solid #C9E7CF; border-radius: 999px;
  background: #F1FAF3; color: #17762F;
  font-weight: 600; font-size: 0.88rem;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.wa-person svg { width: 16px; height: 16px; flex-shrink: 0; }
.wa-person:hover {
  background: #1FAF38; border-color: #1FAF38; color: #fff;
  transform: translateY(-1px);
}

/* ---------- Bayangan navbar saat digulir ---------- */
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(46, 43, 42, 0.09);
  background: rgba(255, 255, 255, 0.97);
}

/* ---------- Tombol kembali ke atas ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(139, 26, 43, 0.32);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .18s ease;
}
.to-top svg { width: 19px; height: 19px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--maroon-dark); transform: translateY(-2px); }

@media (max-width: 700px) {
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* Indikator scroll di dasar hero — muncul karena hero sekarang mengisi
   penuh tinggi layar (min-height), jadi orang perlu tahu ada konten lanjutan. */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  animation: scrollCueBounce 2.2s ease-in-out infinite;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { color: var(--gold-light); border-color: var(--gold-light); }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Brand marquee di layar kecil: logo & kartu dikecilkan, panah disembunyikan
   (di HP orang biasa geser pakai jari langsung di barisnya). */
@media (max-width: 700px) {
  .bm-row li { width: 128px; height: 74px; padding: 10px 14px; }
  .bm-row img { max-height: 42px; }
  .bm-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
