/* ============================================================
   PT Toba Sumber Makmur — Company Profile
   Palet: maroon #8E1B2E · emas #C9A24B · charcoal #1F1E1D · paper #F4F1EC
   Display: Oswald · Body: Plus Jakarta Sans · Spec: Spline Sans Mono
   ============================================================ */

:root {
  --maroon: #8E1B2E;
  --maroon-deep: #5E0F1E;
  --gold: #C9A24B;
  --gold-soft: #E3C77F;
  --charcoal: #1F1E1D;
  --charcoal-2: #2B2A28;
  --steel: #6B6F76;
  --paper: #F4F1EC;
  --paper-2: #EAE4DA;
  --white: #FFFFFF;
  --ink: #211F1C;
  --ink-soft: #5C584F;
  --line: rgba(31, 30, 29, 0.12);

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografi ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
}
.eyebrow.on-dark { color: var(--gold-soft); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn i { font-size: 19px; }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-deep); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-nav.solid {
  background: var(--charcoal);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 38px; height: 42px; flex: none; }
.brand .brand-name {
  font-family: var(--font-display); font-weight: 600; color: var(--white);
  font-size: 16px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em;
}
.brand .brand-name small {
  display: block; font-size: 10px; letter-spacing: 0.24em; color: var(--gold-soft);
  font-weight: 400;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 14px; color: rgba(255,255,255,.82);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
  overflow: hidden; font-family: var(--font-display); font-size: 13px; font-weight: 500;
}
.lang-toggle button {
  background: transparent; color: rgba(255,255,255,.7); border: none; cursor: pointer;
  padding: 6px 11px; letter-spacing: 0.05em; transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--gold); color: var(--charcoal); }

.nav-toggle {
  display: none; background: transparent; border: none; color: var(--white);
  font-size: 28px; cursor: pointer; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  padding: 150px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(142,27,46,.55), transparent 55%);
  pointer-events: none;
}
.hero-gears {
  position: absolute; left: -120px; bottom: -120px; width: 460px; height: 460px;
  opacity: 0.07; color: var(--white); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero-copy .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  text-transform: none;
  margin: 18px 0 16px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,.78); max-width: 38ch; margin-bottom: 14px;
}
.slogan {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0 30px;
}
.slogan span {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 17px; color: var(--white);
  display: inline-flex; align-items: center; gap: 18px;
}
.slogan span:not(:last-child)::after {
  content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Honeycomb art */
.hero-art { position: relative; width: 360px; height: 384px; margin: 0 auto; }
.hex {
  position: absolute; width: 124px; height: 108px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.hex i { font-size: 38px; }
.hex.maroon { background: var(--maroon); }
.hex.dark { background: var(--charcoal-2); border: 1px solid rgba(201,162,75,.25); }
.hex.gold { background: var(--gold); }
.hex.center {
  background: var(--white);
}
.hex.center .logo { width: 74px; height: 80px; }
.hex.h-c  { left: 118px; top: 138px; }
.hex.h-t  { left: 118px; top: 30px; }
.hex.h-b  { left: 118px; top: 246px; }
.hex.h-ur { left: 211px; top: 84px; }
.hex.h-lr { left: 211px; top: 192px; }
.hex.h-ul { left: 25px;  top: 84px; }
.hex.h-ll { left: 25px;  top: 192px; }

/* ---------- Section umum ---------- */
section { padding: 90px 0; }
.section-head { margin-bottom: 46px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; }
.on-dark .section-head h2, .sec-dark .section-head h2 { color: var(--white); }

/* ---------- Tentang ---------- */
.sec-about { position: relative; background: var(--paper); overflow: hidden; }
.about-gears {
  position: absolute; right: -140px; top: -60px; width: 420px; height: 420px;
  opacity: 0.06; color: var(--maroon); pointer-events: none;
}
.about-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
.about-text p:first-child { color: var(--ink); font-size: 18px; }
.values { display: grid; gap: 16px; }
.value {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 0; padding: 18px 20px;
}
.value h3 {
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--maroon);
  margin-bottom: 4px;
}
.value p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Layanan ---------- */
.sec-services { background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.svc-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; background: var(--paper); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,30,29,.1); border-color: rgba(142,27,46,.35); }
.svc-ico {
  width: 56px; height: 50px; flex: none; margin-bottom: 18px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--maroon); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.svc-ico i { font-size: 26px; }
.svc-card h3 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 10px;
  line-height: 1.1;
}
.svc-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.spec-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.spec-list .spec {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  background: var(--charcoal); color: var(--gold-soft); padding: 3px 8px; border-radius: 3px;
}
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-tags .tag {
  font-size: 11.5px; font-weight: 500; color: var(--maroon);
  background: rgba(142,27,46,.08); border: 1px solid rgba(142,27,46,.18);
  padding: 3px 9px; border-radius: 20px;
}

/* ---------- Galeri ---------- */
.sec-gallery { background: var(--charcoal); color: var(--white); }
.sec-gallery .eyebrow { color: var(--gold-soft); }
.sec-gallery .section-head h2 { color: var(--white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--charcoal-2); cursor: pointer; border: 1px solid rgba(255,255,255,.08);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: rgba(255,255,255,.4);
}
.gallery-item .ph i { font-size: 34px; }
.gallery-item .ph span { font-size: 12px; letter-spacing: 0.05em; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(31,30,29,.9), transparent);
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

/* ---------- Brand ---------- */
.sec-brands { background: var(--paper); }
.brands-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.brand-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 76px; display: flex; align-items: center; justify-content: center; padding: 14px;
  text-align: center; transition: border-color .2s, transform .2s;
}
.brand-chip:hover { border-color: var(--gold); transform: translateY(-3px); }
.brand-chip img { max-height: 44px; width: auto; object-fit: contain; }
.brand-chip span {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--charcoal);
}

/* ---------- Kontak ---------- */
.sec-contact { background: var(--maroon); color: var(--white); }
.sec-contact .eyebrow { color: var(--gold-soft); }
.sec-contact .eyebrow::before { background: var(--gold-soft); }
.sec-contact .section-head h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-intro { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 26px; max-width: 46ch; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-bottom: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  width: 42px; height: 42px; flex: none; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-size: 20px;
}
.contact-list .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,.6); }
.contact-list .val { font-size: 16.5px; font-weight: 500; }
.contact-list .val a:hover { color: var(--gold-soft); }
.contact-map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.2);
  min-height: 320px; background: rgba(0,0,0,.2);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 50px 0 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 360px; }
.footer-brand .logo { width: 40px; height: 44px; flex: none; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 18px; text-transform: uppercase; }
.footer-brand p { font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { font-family: var(--font-display); color: var(--gold-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; font-weight: 500; }
.footer-links a { display: block; font-size: 14px; padding: 3px 0; color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom .gold { color: var(--gold-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,14,13,.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); }
.lightbox .lb-cap { position: absolute; bottom: 30px; color: var(--white); font-weight: 500; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; background: transparent; border: none; color: var(--white); font-size: 34px; cursor: pointer; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; background: var(--charcoal);
    flex-direction: column; gap: 0; padding: 10px 24px 24px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: 0 16px 30px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 120px 0 70px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .slogan { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .gallery-item img, .svc-card, .btn { transition: none; }
}

/* ===== Logo perusahaan (gambar unggahan) ===== */
.logo-img { object-fit: contain; display: block; }
.brand .logo-img { width: auto; height: 38px; max-width: 170px; background: #fff; border-radius: 8px; padding: 4px 7px; }
.hex.center .logo-img { width: 66px; height: 66px; padding: 0; background: transparent; border-radius: 0; }
.footer-brand .logo-img { width: auto; height: 44px; max-width: 180px; background: #fff; border-radius: 8px; padding: 5px 8px; }
