/* ==========================================================================
   CV ADIKARYA — Design tokens & base system
   ========================================================================== */

:root {
  /* Color */
  --ink: #1C1C1E;          /* charcoal — primary text, dark surfaces */
  --ink-soft: #2C2D31;     /* lifted dark surface */
  --paper: #F5F3EE;        /* warm off-white — pellet color */
  --paper-dim: #EAE6DC;    /* slightly deeper paper for contrast blocks */
  --steel: #3D5A80;        /* steel blue — precision/machinery */
  --steel-deep: #2A4060;
  --molded: #E85D2C;       /* injection-orange — signature accent */
  --molded-deep: #C44A1F;
  --tool-gray: #8A8D91;    /* dividers, secondary text */
  --tool-gray-light: #C9CBCE;
  --line: rgba(28,28,30,0.12);
  --line-on-dark: rgba(245,243,238,0.14);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --fs-jumbo: clamp(2.6rem, 6vw, 5.2rem);
  --fs-h1: clamp(2.1rem, 4.2vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 2.6vw, 2.3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.78rem;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.logo .mark {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--molded);
  border-radius: 1px;
  transform: translateY(-1px);
}

.logo .sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--tool-gray);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--molded);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav a[aria-current="page"] {
  color: var(--molded-deep);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.3rem 0.2rem;
}

.lang-toggle a {
  padding: 0.15rem 0.5rem;
  color: var(--tool-gray);
}

.lang-toggle a.active {
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
}

.nav-cta {
  background: var(--molded);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--molded-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 1.25rem;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Signature element: Machine Spec Readout
   The factory's tonnage/capacity panel, styled like an LCD control readout
   on real injection molding machinery. Used in hero + as section dividers.
   ========================================================================== */

.spec-readout {
  background: var(--ink);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  font-family: var(--font-mono);
  overflow: hidden;
}

.spec-cell {
  padding: 1.1rem 1.3rem;
  border-right: 1px solid var(--line-on-dark);
  position: relative;
}

.spec-cell:last-child { border-right: none; }

.spec-cell::before {
  content: '';
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--molded);
  box-shadow: 0 0 6px 1px rgba(232,93,44,0.7);
}

.spec-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--tool-gray-light);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.spec-value {
  font-size: 1.4rem;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spec-value .unit {
  font-size: 0.85rem;
  color: var(--molded);
  font-weight: 500;
  margin-left: 0.25rem;
}

@media (max-width: 600px) {
  .spec-readout { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { padding: 0.9rem 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--molded-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--molded-deep);
}

.hero h1 {
  font-size: var(--fs-jumbo);
  margin-bottom: 1.3rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--molded);
}

.hero-lede {
  font-size: 1.1rem;
  color: #44464A;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--paper-dim);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg, var(--paper-dim), var(--paper-dim) 10px,
    #E2DDD0 10px, #E2DDD0 20px
  );
  border: 1px dashed var(--tool-gray-light);
  color: var(--tool-gray);
  text-align: center;
  padding: 1.5rem;
  gap: 0.4rem;
}

.img-placeholder .ph-icon { font-size: 1.8rem; opacity: 0.5; }
.img-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.img-placeholder .ph-sub {
  font-size: 0.78rem;
  color: var(--tool-gray);
  max-width: 16rem;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/10; order: -1; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--molded);
  color: #fff;
}
.btn-primary:hover { background: var(--molded-deep); }

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

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-wa svg { width: 18px; height: 18px; }

/* ==========================================================================
   Sections, generic
   ========================================================================== */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 { margin-bottom: 0.9rem; }
.section-head p { color: #44464A; font-size: 1.02rem; }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .section-head p { color: var(--tool-gray-light); }

.section-dim { background: var(--paper-dim); }

/* Card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--molded-deep);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: #5A5C60; font-size: 0.94rem; }

/* Product card with image placeholder */
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: var(--molded); }

.product-card .img-placeholder { aspect-ratio: 1/1; border-radius: 0; border: none; border-bottom: 1px solid var(--line); }

.product-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.product-card-body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.product-card-body p { font-size: 0.88rem; color: var(--tool-gray); margin-bottom: 0.9rem; }

.tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  background: var(--paper-dim);
  border-radius: 2px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* CTA banner */
.cta-band {
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 28rem; }

/* Divider with mono label, like a tooling guide line */
.tool-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tool-gray);
}
.tool-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--tool-gray-light);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--molded); }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--tool-gray-light);
  max-width: 22rem;
  margin: 1rem 0 1.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--tool-gray);
}

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

/* ==========================================================================
   WhatsApp floating button (mobile-priority CTA)
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 200;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   Page header (non-home pages)
   ========================================================================== */

.page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: var(--fs-h1); margin-bottom: 0.8rem; }
.page-header p { color: #44464A; max-width: 36rem; font-size: 1.02rem; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--tool-gray);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}
.breadcrumb a:hover { color: var(--molded-deep); }

/* Filter/category pills */
.pill-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
}
.pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Spec table (capacity page) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tool-gray);
  font-weight: 500;
}
.spec-table td.mono { font-family: var(--font-mono); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--molded);
  outline-offset: 1px;
  border-color: var(--molded);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.contact-info-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-card h3 { color: var(--paper); margin-bottom: 1.2rem; font-size: 1.1rem; }
.contact-info-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  align-items: flex-start;
}
.contact-info-row .ci-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--molded);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 5.2rem;
  margin-top: 0.15rem;
}
