/* ==========================================================================
   PT TRIJAYA BARAYA SEJAHTERA — Custom stylesheet
   Tailwind (CDN) handles utility classes; this file holds brand mechanics
   that utilities can't express cleanly: fonts, geometric cuts, motion.
   ========================================================================== */

:root {
  --brand-blue: #0057B8;
  --brand-blue-dark: #00305C;
  --brand-orange: #FF6A00;
  --brand-orange-dark: #CC5500;
  --brand-black: #0B0B0C;
  --brand-dark: #111417;
  --brand-gray: #8A94A6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: var(--brand-black);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0B0B0C; }
::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 999px; }

/* ---- Header ---- */
.site-header {
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.nav-link {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: var(--brand-orange);
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--brand-orange);
}

/* ---- Geometric / diagonal cuts ---- */
.clip-diagonal-b {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.clip-diagonal-t {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}
.clip-notch-r {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 82%);
}
.clip-corner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

@media (max-width: 767px) {
  .clip-diagonal-b, .clip-diagonal-t, .clip-notch-r, .clip-corner {
    clip-path: none;
  }
}

/* Dot-grid technical texture */
.grid-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.grid-pattern-dark {
  background-image: radial-gradient(rgba(11,11,12,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Angled accent bar used as section eyebrow */
.accent-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--brand-orange);
  transform: skewX(-20deg);
}

/* Card lift */
.lift-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Glow CTA button */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,106,0,0.35);
}

/* Marquee for industries strip */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline connector (Solutions process) */
.timeline-line {
  background: repeating-linear-gradient(to right, var(--brand-orange) 0 10px, transparent 10px 18px);
  height: 3px;
}

/* Mobile nav panel */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-nav.open {
  max-height: 480px;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}
