/* ============================================
   JAFINDO TRADING INDONESIA — Design System
   Palette: deep forest green + gold (previous approved palette).
   Type: Poppins (headings) + Montserrat (body & labels)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root{
  /* Color — previous approved palette */
  --ink:        #0f1f17;   /* near-black green, darkest sections */
  --forest:     #1a3328;   /* primary brand green */
  --forest-2:   #234436;   /* lighter green for cards on dark */
  --olive:      #86A73C;   /* brand olive */
  --sky:        #3D8DB3;   /* brand sky blue */
  --brown:      #4B2E19;   /* brand brown */
  --gold:       #c9a14a;   /* primary accent, rules, numerals */
  --gold-soft:  #e3c581;   /* lighter gold for text-on-dark accents */
  --cream:      #f7f5ef;   /* page background */
  --card:       #f0ece1;   /* warm card fill on light bg */
  --line:       #e3ddcd;   /* hairline borders on light bg */
  --text:       #20241f;   /* body text on light */
  --text-soft:  #5b6058;   /* secondary text on light */
  --white:      #ffffff;

  /* Type */
  --display: 'Poppins', sans-serif;
  --body: 'Montserrat', sans-serif;
  --mono: 'Montserrat', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family: var(--body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul{ list-style:none; }

::selection{ background: var(--gold); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typography ---------- */

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4{ color: var(--white); }

h1{ font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4{ font-size: 1.05rem; }

em{
  font-style: italic;
  color: var(--gold);
}
.on-light em{ color:#8a6a22; }

p{ color: var(--text-soft); max-width: 62ch; }
.on-dark p{ color: rgba(255,255,255,0.72); }

.eyebrow{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:'';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lede{
  font-size: 1.1rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-gold{
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover{ background: var(--gold-soft); }

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-soft); }

.btn-outline-dark{
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline-dark:hover{ border-color: var(--gold); color: #8a6a22; }

/* ---------- Header ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(201,161,74,0.25);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  color: var(--white);
}
.brand .brand-icon{
  height: 22px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand .brand-text{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .word{
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand .sub{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul{
  display: flex;
  gap: 30px;
}
.main-nav a{
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active{ color: var(--white); }
.main-nav a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-22px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  color: var(--white);
  font-size: 1.6rem;
  cursor:pointer;
}

@media (max-width: 880px){
  .main-nav{
    position: fixed;
    inset: 86px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--pad);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    height: calc(100vh - 86px);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 22px; width:100%; }
  .main-nav a{ font-size: 1.1rem; }
  .main-nav .btn{ margin-top: 20px; width:100%; justify-content:center; }
  .nav-toggle{ display:block; }
}

/* ---------- Sections ---------- */

section{ padding: clamp(60px, 9vw, 120px) 0; }

.section-dark{ background: var(--ink); }
.section-forest{ background: var(--forest); }

.section-head{
  max-width: 640px;
  margin-bottom: 50px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Route / Journey signature element ---------- */

.route{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.route-step{
  flex: 1 1 0;
  min-width: 160px;
  position: relative;
  padding: 28px 22px 24px;
  background: var(--forest-2);
  border-right: 1px solid rgba(201,161,74,0.25);
}
.route-step:last-child{ border-right:none; }

.route-step .num{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gold);
  display:block;
  margin-bottom: 10px;
}
.route-step h4{ color: var(--white); margin-bottom: 6px; font-size: 1rem; }
.route-step p{ font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.route-step::after{
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 2;
  border: 2px solid var(--ink);
}
.route-step:last-child::after{ display:none; }

@media (max-width: 900px){
  .route{ flex-direction: column; }
  .route-step{ border-right:none; border-bottom: 1px solid rgba(201,161,74,0.25); }
  .route-step::after{
    right: 50%;
    top: auto;
    bottom: -7px;
    transform: translateX(50%);
  }
}

/* ---------- Cards ---------- */

.grid{
  display: grid;
  gap: 22px;
}
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h4{ margin-bottom: 8px; }
.card p{ font-size: 0.92rem; margin:0; }

.card-dark{
  background: var(--forest-2);
  border: none;
}
.card-dark h4{ color: var(--white); }
.card-dark p{ color: rgba(255,255,255,0.65); }

/* numbered "why us" list */
.numbered-item{
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.on-dark .numbered-item{ border-bottom-color: rgba(255,255,255,0.12); }
.numbered-item .num{
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 52px;
}
.numbered-item h4{ margin-bottom: 6px; }
.numbered-item p{ font-size: 0.92rem; margin:0; }

/* stat row */
.stats{
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 4vw, 48px);
}
@media (max-width: 700px){
  .stats{ grid-template-columns: repeat(2, auto); }
}
.stat .num{
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  font-weight: 600;
  display:block;
}
.stat .label{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.on-dark .stat .label{ color: rgba(255,255,255,0.55); }

/* image frame */
.frame{
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.frame img{ width:100%; height:100%; object-fit:cover; }

/* pull quote */
.pull-quote{
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  max-width: 50ch;
}
.pull-quote .cite{
  display:block;
  font-family: var(--mono);
  font-weight: 600;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 20px;
}

/* badge pill (section badge, e.g. "10+ Trusted Manufacturing Partners") */
.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,161,74,0.10);
  border: 1px solid rgba(201,161,74,0.45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.badge-pill::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background: var(--gold);
}

/* brand showcase grid — 5 × 2 desktop, 3 tablet, 2 mobile */
.brand-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1024px){
  .brand-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px){
  .brand-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.brand-tile{
  display:flex;
  flex-direction:column;
  height:100%;
}
.brand-tile .logo-tile{
  height: 128px;
  padding: 26px 24px;
  box-shadow: 0 2px 10px rgba(15,31,23,0.05);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-tile .logo-tile img{
  max-height: 100%;
  max-width: 100%;
  width:auto;
  height:auto;
  object-fit: contain;
  margin: 0 auto;
}
.brand-tile:hover .logo-tile,
a.brand-tile:focus-visible .logo-tile{
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15,31,23,0.12);
}
.brand-tile .brand-cat{
  margin: 12px auto 0;
  font-size: 0.82rem;
  text-align:center;
  color: var(--text-soft);
}
.brand-tile .brand-link{
  display:block;
  margin-top: 6px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align:center;
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce){
  .brand-tile:hover .logo-tile{ transform:none; }
}

/* brand logo tile */
.logo-tile{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 130px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px;
  transition: border-color 0.2s ease;
}
.logo-tile:hover{ border-color: var(--gold); }
.logo-tile img{ max-height: 56px; width:auto; object-fit:contain; }

/* CTA band */
.cta-band{
  background: var(--gold);
  padding: 56px 0;
}
.cta-band .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h3{ color: var(--ink); margin:0; max-width: 36ch; }

/* ---------- Footer ---------- */

footer{
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4{
  color: var(--white);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid ul li{ margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover{ color: var(--gold-soft); }
.footer-brand p{ font-size: 0.9rem; margin: 14px 0 0; color: rgba(255,255,255,0.55); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.8rem;
}

@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ---------- Page hero (subpages) ---------- */

.page-hero{
  background: var(--ink);
  padding: 70px 0 80px;
  position: relative;
  overflow:hidden;
}
.page-hero .wrap{ position:relative; z-index:2; }
.page-hero-bg{
  position:absolute; inset:0;
  opacity: 0.55;
}
.page-hero-bg img{ width:100%; height:100%; object-fit:cover; }
.page-hero-bg::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(100deg, var(--ink) 0%, rgba(15,31,23,0.88) 32%, rgba(15,31,23,0.45) 75%, rgba(15,31,23,0.7) 100%);
}

/* breadcrumb-ish division tag */
/* back link on brand profile pages */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link::before{ content:'←'; color: var(--gold-soft); }
.back-link:hover{ color: var(--gold-soft); gap: 12px; }

.division-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color: var(--gold-soft);
  background: rgba(201,161,74,0.12);
  border: 1px solid rgba(201,161,74,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

/* divider rule */
.rule{
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}

/* timeline (about page) */
.timeline{ position:relative; padding-left: 36px; }
.timeline::before{
  content:'';
  position:absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item{ position:relative; padding-bottom: 44px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:'';
  position:absolute;
  left: -36px; top: 4px;
  width: 11px; height: 11px;
  border-radius:50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}
.tl-item .year{
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.tl-item h4{ margin: 4px 0 8px; }
.tl-item p{ font-size: 0.92rem; margin:0; }

/* market list */
.market-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.market-row .name{ font-family: var(--display); font-weight:600; min-width: 140px; }
.market-row .desc{ font-size: 0.92rem; color: var(--text-soft); text-align:right; }

@media (max-width: 600px){
  .market-row{ flex-direction:column; gap:6px; }
  .market-row .desc{ text-align:left; }
}

/* contact page */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 850px){
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
}

.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.field input, .field textarea, .field select{
  width:100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--gold);
}
.field textarea{ resize: vertical; min-height: 120px; }

.contact-info-item{
  display:flex;
  gap:16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item .ic{
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 90px;
}
.contact-info-item .val{ color: var(--white); font-size: 0.95rem; }
.contact-info-item .val span{ display:block; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top:2px; }

/* utility */
.mt-0{ margin-top:0; }
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }
