/* =========================================================
   PT. TRINEXA SARANA PRIMA — Design Tokens
   Palette: Industrial Navy / Steel Blue / Safety Orange / Safety Yellow
   Type: Barlow Condensed (display) + Inter (body) + IBM Plex Mono (data)
========================================================= */
:root{
  --navy: #0A2E4D;
  --steel: #123B60;
  --ink: #12181F;
  --safety-orange: #FF6A13;
  --safety-yellow: #FFC72C;
  --white: #FFFFFF;
  --paper: #F7F8FA;
  --line: #D9DEE3;
  --text: #1B222A;
  --text-muted: #5B6670;
  --text-on-dark: #EAF0F6;
  --text-on-dark-muted: #9FB0C0;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

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

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 90px; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:700; margin:0; letter-spacing:.01em; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* =============== HAZARD STRIP SIGNATURE =============== */
.hazard-strip{
  height:6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--safety-yellow) 0 16px,
    var(--ink) 16px 32px
  );
}

/* =============== LAYOUT HELPERS =============== */
.section-inner, .header-inner, .hero-inner, .footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-dark{
  background: var(--ink);
  color: var(--text-on-dark);
  position:relative;
}
.section-dark::before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:4px;
  background: repeating-linear-gradient(-45deg, var(--safety-yellow) 0 12px, var(--navy) 12px 24px);
}
.text-light{ color: var(--white); }
.text-muted{ color: var(--text-on-dark-muted); max-width: 640px; margin-top:12px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--safety-orange);
  font-weight:600;
  margin: 0 0 10px;
}
.eyebrow-light{ color: var(--safety-yellow); }
.section-head{ margin-bottom: 48px; max-width: 760px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); line-height:1.15; }

/* =============== BUTTONS =============== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--safety-orange); color: var(--white); }
.btn-primary:hover{ background:#e65c00; }
.btn-outline{ border-color: var(--white); color: var(--white); }
.btn-outline:hover{ background: var(--white); color: var(--navy); }
.btn-quote{ background: var(--safety-yellow); color: var(--ink); padding:11px 18px; font-size:13.5px; }
.btn-quote:hover{ background:#ffb400; }
.btn-full{ width:100%; }

/* =============== HEADER =============== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(10,46,77,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{
  font-family: var(--font-mono);
  font-weight:600;
  font-size:13px;
  color: var(--ink);
  background: var(--safety-yellow);
  padding:6px 8px;
  border-radius: 3px;
  letter-spacing:.05em;
}
.brand-name{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name strong{ color:var(--white); font-family:var(--font-display); font-size:18px; letter-spacing:.04em; }
.brand-name em{ color: var(--text-on-dark-muted); font-style:normal; font-size:10.5px; letter-spacing:.16em; font-family: var(--font-mono); }

.main-nav{ display:flex; gap:26px; flex:1; justify-content:center; }
.main-nav a{
  color: var(--text-on-dark-muted);
  font-size:14px; font-weight:500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--white); border-color: var(--safety-orange); }

.header-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.lang-toggle{
  display:flex; align-items:center; gap:6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-muted);
  cursor:pointer;
}
.lang-option{ padding: 2px 4px; border-radius:3px; }
.lang-option.is-active{ color: var(--ink); background: var(--safety-yellow); font-weight:600; }
.lang-sep{ opacity:.4; }

.nav-toggle{
  display:none;
  flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background: var(--white); border-radius:2px; }

/* =============== HERO =============== */
.hero{
  position:relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--steel) 55%, #0d3552 100%);
  color: var(--white);
  overflow:hidden;
  padding: 90px 0 70px;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items:center;
  padding-top: 40px; padding-bottom: 20px;
}
.hero-copy .eyebrow{ color: var(--safety-yellow); }
.hero-copy h1{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height:1.08;
  margin-bottom: 18px;
}
.hero-slogan{
  font-family: var(--font-mono);
  color: var(--safety-orange);
  font-size: 14.5px;
  letter-spacing:.04em;
  margin-bottom: 20px;
}
.hero-desc{
  color: var(--text-on-dark-muted);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-panel{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.panel-header{
  display:flex; align-items:center; gap:8px;
  font-family: var(--font-mono);
  font-size:12px; letter-spacing:.12em;
  color: var(--text-on-dark-muted);
  padding-bottom:16px; margin-bottom:18px;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.panel-dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--safety-yellow);
  box-shadow: 0 0 0 3px rgba(255,199,44,0.2);
}
.panel-stats{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:20px; }
.panel-stats li{ display:flex; flex-direction:column; gap:4px; }
.stat-value{ font-family: var(--font-display); font-size:32px; color: var(--safety-orange); line-height:1; }
.stat-label{ font-size:12.5px; color: var(--text-on-dark-muted); }
.panel-illustration{ width:100%; height:auto; }

/* =============== ABOUT =============== */
.about-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:start; }
.about-text p{ color: var(--text-muted); margin-bottom:16px; font-size:15.5px; }
.value-card{
  border-left: 4px solid var(--safety-orange);
  background: var(--paper);
  padding: 20px 22px;
  border-radius: 0 4px 4px 0;
  margin-top: 24px;
}
.value-tag{ font-family: var(--font-mono); font-size:11px; letter-spacing:.12em; color: var(--safety-orange); font-weight:600; }
.value-quote{ font-family: var(--font-display); font-size:22px; color: var(--navy); margin-top:6px; }

.about-cards{ display:flex; flex-direction:column; gap:18px; }
.mini-card{
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  position:relative;
}
.mini-index{
  font-family: var(--font-mono); font-size:12px; color: var(--safety-orange); font-weight:600;
  display:block; margin-bottom:8px;
}
.mini-card h3{ font-size:20px; margin-bottom:8px; color: var(--navy); }
.mini-card p{ color: var(--text-muted); font-size:14.5px; }

/* =============== SERVICES =============== */
.service-group-title{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--safety-yellow);
  text-transform: uppercase;
  margin: 40px 0 16px;
}
.service-group-title:first-of-type{ margin-top: 0; }

.service-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.service-grid-2{ grid-template-columns: repeat(2, 1fr); }

.note-box{
  margin-top: 32px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 24px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
}
.note-box p{ color: var(--text-on-dark-muted); font-size:14.5px; max-width: 640px; margin:0; }
.service-card{
  background: var(--ink);
  padding: 32px 26px;
  transition: background-color .2s ease;
}
.service-card:hover{ background:#1b232d; }
.service-icon{ width:40px; height:40px; margin-bottom:18px; }
.service-card h3{ font-size:19px; color: var(--white); margin-bottom:10px; line-height:1.2; }
.service-card p{ color: var(--text-on-dark-muted); font-size:14px; }

/* =============== EXPERIENCE / PLANTS =============== */
.plant-list{ display:flex; flex-direction:column; gap: 16px; }
.plant-card{
  display:flex; gap:24px; align-items:center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.plant-card:hover{ border-color: var(--safety-orange); transform: translateX(4px); }
.plant-plate{
  flex-shrink:0;
  width: 96px; height: 64px;
  background: var(--navy);
  border-radius:3px;
  display:flex; align-items:center; justify-content:center;
  border: 2px solid var(--safety-yellow);
}
.plate-code{ font-family: var(--font-mono); color: var(--safety-yellow); font-size:14px; letter-spacing:.06em; }
.plant-info h3{ font-size:21px; color: var(--navy); margin-bottom:6px; }
.plant-info p{ color: var(--text-muted); font-size:14.5px; margin-bottom:8px; }
.plant-loc{ font-family: var(--font-mono); font-size:12px; color: var(--safety-orange); letter-spacing:.05em; }

/* =============== BLOG =============== */
.blog-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.blog-card{
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  display:flex; flex-direction:column; gap:12px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.blog-card:hover{ box-shadow: 0 8px 24px rgba(10,46,77,0.1); transform: translateY(-3px); }
.blog-tag{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.1em;
  color: var(--white); background: var(--safety-orange);
  padding: 4px 8px; border-radius:3px; width:fit-content;
}
.blog-card h3{ font-size:19px; color: var(--navy); line-height:1.25; }
.blog-card p{ color: var(--text-muted); font-size:14.5px; flex:1; }
.blog-link{ color: var(--safety-orange); font-weight:600; font-size:14px; }

/* =============== CONTACT =============== */
.contact-grid{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; margin-top:8px; }
.contact-form{ display:flex; flex-direction:column; gap:16px; }
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:13px; color: var(--text-on-dark-muted); font-family: var(--font-mono); letter-spacing:.03em; }
.form-row input, .form-row textarea{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder{ color: rgba(234,240,246,0.35); }
.form-row input:focus, .form-row textarea:focus{
  outline: 2px solid var(--safety-yellow);
  outline-offset: 1px;
  border-color: var(--safety-yellow);
}
.form-hint{ font-size:12.5px; color: var(--text-on-dark-muted); text-align:center; }

.contact-info{ display:flex; flex-direction:column; gap:22px; }
.info-block{ padding-bottom:18px; border-bottom: 1px dashed rgba(255,255,255,0.15); }
.info-block:last-of-type{ border-bottom:none; }
.info-label{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:.12em; color: var(--safety-yellow); display:block; margin-bottom:8px; }
.info-block p{ color: var(--text-on-dark-muted); font-size:14.5px; line-height:1.6; }
.info-email{ color: var(--safety-yellow); transition: color .15s ease; }
.info-email:hover{ color: var(--white); }

.wa-inline-btn{
  display:flex; align-items:center; gap:10px;
  background: #22c35e;
  color: var(--white);
  padding: 13px 18px;
  border-radius: 4px;
  font-weight:600; font-size:14.5px;
  width:fit-content;
  transition: background-color .15s ease, transform .15s ease;
}
.wa-inline-btn:hover{ background:#1da851; transform: translateY(-1px); }

/* =============== PRIVACY =============== */
.privacy-box{
  border: 1px solid var(--line);
  border-radius:4px;
  padding: 28px 30px;
  display:flex; flex-direction:column; gap:14px;
  background: var(--paper);
}
.privacy-box p{ color: var(--text-muted); font-size:14.5px; line-height:1.7; }

/* =============== FOOTER =============== */
.site-footer{ background: var(--ink); color: var(--text-on-dark-muted); padding-top:56px; }
.footer-inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:36px; }
.footer-brand{ display:flex; gap:12px; align-items:flex-start; max-width:280px; }
.footer-brand strong{ color: var(--white); font-family: var(--font-display); font-size:19px; display:block; margin-bottom:6px; }
.footer-brand p{ font-size:13px; color: var(--text-on-dark-muted); }
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col h4{ font-family: var(--font-mono); font-size:12px; letter-spacing:.1em; color: var(--safety-yellow); margin-bottom:4px; }
.footer-col a, .footer-col span{ font-size:13.5px; color: var(--text-on-dark-muted); }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  text-align:center;
  font-size: 12.5px;
  color: rgba(159,176,192,0.7);
}

/* =============== FLOATING WHATSAPP =============== */
.wa-float{
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display:flex; align-items:center; gap:10px;
  background: #22c35e;
  color: var(--white);
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float-label{
  max-width:0; overflow:hidden; white-space:nowrap;
  font-size:0; font-weight:600;
  transition: max-width .25s ease, padding .25s ease, font-size .25s ease;
}
.wa-float:hover .wa-float-label{ max-width:160px; padding-right:4px; font-size:14px; }
@keyframes wa-pulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(34,195,94,0.5); }
  50%{ box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 10px rgba(34,195,94,0); }
}

/* =============== REVEAL ON SCROLL =============== */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* =============== FOCUS VISIBILITY =============== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--safety-orange);
  outline-offset: 2px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-grid-2{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed; top:64px; left:0; right:0;
    background: var(--navy);
    flex-direction:column;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.is-open{ transform: translateY(0); }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-quote{ display:none; }
  .service-grid{ grid-template-columns: 1fr; }
  .service-grid-2{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: 1fr; }
  .note-box{ flex-direction: column; align-items: flex-start; }
  .plant-card{ flex-direction:column; align-items:flex-start; }
  .panel-stats{ grid-template-columns: 1fr 1fr; }
  .footer-inner{ flex-direction:column; }
}
