/* =====================================================
   PT. TRISENTRA NAWASEWA UTAMA — Custom Stylesheet
   Industrial Safety Tech & Gold Elegance
===================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #111827;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0A0E17; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFD700, #D4AF37);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #FFD700; }

html { scroll-padding-top: 6.5rem; }

body { background-color: #0A0E17; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #D4AF37;
  color: #0A0E17;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Cyber grid backdrop ---------- */
.cyber-grid {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 45%, transparent 85%);
}

.radial-glow {
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(45% 35% at 10% 15%, rgba(239, 68, 68, 0.07), transparent 60%);
}

/* ---------- Topbar ---------- */
.topbar {
  background: #05070C;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Navbar ---------- */
.nav-glass {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.nav-glass.scrolled {
  background: rgba(10, 14, 23, 0.92);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6);
}
.logo-glow { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35)); }
.logo-fallback::after { content: ''; }

.nav-link { position: relative; transition: color 0.3s; }
.nav-link:hover { color: #F9FAFB; }
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, #D4AF37, #FFD700);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.mobile-nav-link:hover { color: #FFD700; }

/* ---------- Buttons ---------- */
.btn-gold {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFD700;
  background: rgba(212, 175, 55, 0.08);
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 22px -4px rgba(212, 175, 55, 0.45);
}

.btn-gold-solid {
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.925rem;
  border-radius: 0.7rem;
  color: #0A0E17;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px -8px rgba(212, 175, 55, 0.5);
}
.btn-gold-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255, 215, 0, 0.6);
}

.btn-outline {
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: 0.7rem;
  color: #F9FAFB;
  border: 1px solid rgba(249, 250, 251, 0.18);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFD700;
}

/* ---------- Glass panels ---------- */
.glass-panel {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.14);
}
.glass-badge {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ---------- Hero ---------- */
.ember-frame {
  background: conic-gradient(from 180deg, rgba(212,175,55,0.5), rgba(255,85,0,0.25), rgba(212,175,55,0.5), transparent 60%);
  filter: blur(22px);
  opacity: 0.55;
}
.hero-img { filter: saturate(1.05) contrast(1.03); }
.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slider-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.35s ease;
}
.hero-dot.is-active {
  width: 20px;
  background: linear-gradient(90deg, #FFD700, #D4AF37);
  border-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-fallback {
  background: linear-gradient(135deg, #1a2030, #0A0E17 70%);
}
.hero-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,23,0.85) 100%);
}

.counter { display: inline-block; }

/* Ember trace divider — signature element */
.ember-divider {
  max-width: 1200px;
  margin: 3.5rem auto 0;
  padding: 0 1rem;
}
.ember-path {
  fill: none;
  stroke: #D4AF37;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0.55;
  animation: ember-flow 6s linear infinite;
}
@keyframes ember-flow {
  to { stroke-dashoffset: -160; }
}

/* ---------- Section framing ---------- */
.section-surface {
  background: linear-gradient(180deg, transparent, rgba(17,24,39,0.55) 12%, rgba(17,24,39,0.55) 88%, transparent);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #D4AF37;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37);
}
.section-title {
  margin-top: 0.6rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #F9FAFB;
}
@media (min-width: 1024px) { .section-title { font-size: 2.4rem; } }

.text-gradient-gold {
  background: linear-gradient(100deg, #FFD700 10%, #D4AF37 45%, #FF9E1F 75%, #FFD700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Pillar cards ---------- */
.pillar-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.35s ease;
}
.pillar-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5);
}
.pillar-card h3 {
  margin-top: 0.9rem;
  font-weight: 700;
  color: #F9FAFB;
  font-size: 0.95rem;
}
.pillar-card p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #9CA3AF;
  line-height: 1.5;
}

/* ---------- Service cards ---------- */
.service-card {
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(240px 120px at 0% 0%, rgba(212,175,55,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.55);
}
.service-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFD700;
}
.service-icon--safety {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(255, 85, 0, 0.35);
  color: #FF7A45;
}
.service-card h3 {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F9FAFB;
}
.service-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.5;
}
.service-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: #D1D5DB;
}
.service-list li { position: relative; padding-left: 1.1rem; }
.service-list .sub-heading {
  display: inline;
  font: inherit;
  font-weight: 700;
  color: #F9FAFB;
}
.service-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
}
.service-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFD700;
  position: relative;
}
.service-cta--safety { color: #FF7A45; }
.service-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Calculator ---------- */
.calc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 0.5rem;
}
.calc-input {
  width: 100%;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  color: #F9FAFB;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.calc-input:focus { border-color: #D4AF37; }
.qty-btn {
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.25s;
}
.qty-btn:hover { background: rgba(212, 175, 55, 0.1); }

.summary-panel {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: sticky;
  top: 7rem;
}
.divider-thin {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.35), transparent);
  margin: 1.25rem 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 0.9rem;
  background: rgba(17, 24, 39, 0.4);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.925rem;
  color: #F9FAFB;
}
.faq-icon { width: 18px; height: 18px; color: #D4AF37; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.4rem;
}
.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 1.4rem 1.25rem;
}
.faq-answer p { font-size: 0.875rem; color: #9CA3AF; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  gap: 0.9rem;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}
.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #D4AF37;
  font-family: 'JetBrains Mono', monospace;
}
.contact-value {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #E5E7EB;
  line-height: 1.5;
}
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  filter: grayscale(0.35) invert(0.92) contrast(0.9);
}

/* ---------- Footer ---------- */
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F9FAFB;
  margin-bottom: 1rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #0A0E17;
  box-shadow: 0 10px 25px -8px rgba(212, 175, 55, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 40;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease var(--delay, 0ms), transform 0.7s ease var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
