/* ============================================================
   Metong Machinery — Indonesia market layer
   Loaded AFTER site.css. Only re-skins existing components;
   no layout or markup removal. Safe to delete to roll back.
   ============================================================ */

:root {
  --id-orange: #e2571b;
  --id-orange-deep: #bf4410;
  --id-orange-soft: #fff1e7;
  --id-sand: #faf5ec;
  --id-sand-2: #f4ebdd;
  --id-line: #eadfd0;
  --id-ink: #071f1e;
  --radius: 8px;
}

/* ---------- base type: slightly larger, airier for Bahasa Indonesia ---------- */
body {
  font-size: 17px;
  line-height: 1.68;
}
h1, h2, h3, h4 { letter-spacing: -.012em; line-height: 1.14; }
.sect-head h2, .h2 { line-height: 1.16; }
.deck, .lead { font-size: 1.05rem; line-height: 1.7; }
.muted { color: #566661; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, #0a2b28 0%, #06191d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, .85);
}
.header-bar { min-height: 78px; }
.nav__link { font-weight: 500; }
.nav__link:hover, .nav__link[aria-current="page"] { color: #ff9d63; }
.mega__col-title { color: #ff9d63; }
.drawer__cta .btn { width: 100%; justify-content: center; }

/* ---------- buttons: pill, high-contrast call to action ---------- */
.btn {
  border-radius: 999px;
  padding: .92rem 1.55rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  gap: .55rem;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn--accent {
  background: var(--id-orange);
  border-color: var(--id-orange);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(226, 87, 27, .85);
}
.btn--accent:hover {
  background: var(--id-orange-deep);
  border-color: var(--id-orange-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgba(191, 68, 16, .9);
}
.btn--dark {
  background: #0c3b38;
  border-color: #0c3b38;
  color: #fff;
  border-radius: 999px;
}
.btn--dark:hover { background: #0f4a46; border-color: #0f4a46; color: #fff; }
.btn--ghost { border-radius: 999px; border-color: rgba(255, 255, 255, .42); }
.btn--ghost:hover { border-color: #ff9d63; color: #ffb98c; }
.link-arrow { font-weight: 600; }
.link-arrow:hover { color: var(--id-orange); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(115% 130% at 8% 0%, #0d3a35 0%, #071f1e 52%, #06191d 100%);
}
/* show the whole 1920×600 panorama instead of cropping it into a portrait panel */
.hero__figure { min-height: 0; padding-bottom: clamp(1.5rem, 2.2vw, 2.2rem); }
.hero__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}
.hero__figure::after {
  content: none;
}
/* the caption sits under the panorama so nothing covers the photo */
.nameplate {
  position: static;
  max-width: 100%;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: .85rem 0 0;
  margin-top: .95rem;
  font-size: .74rem;
  line-height: 1.55;
}
.nameplate b { font-size: .76rem; }
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-right: 0; padding-bottom: clamp(1.8rem, 2.6vw, 2.6rem); }
  .hero__figure { aspect-ratio: auto; }
  .hero__figure img { height: auto; }
}
/* wide screens: panorama becomes the full-bleed hero background, copy sits on the left */
@media (min-width: 1280px) {
  .hero { min-height: max(calc(100vw * 0.3125), 460px); }
  .hero__inner { position: static; }
  .hero__figure {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding-bottom: 0;
  }
  .hero__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
  }
  .hero__figure::after {
    content: "";
    background: linear-gradient(
      90deg,
      rgba(4, 18, 22, .96) 0%,
      rgba(4, 18, 22, .93) 34%,
      rgba(4, 18, 22, .68) 50%,
      rgba(4, 18, 22, .22) 70%,
      rgba(4, 18, 22, 0) 84%
    );
  }
  .hero__copy {
    position: relative;
    z-index: 2;
    max-width: clamp(640px, 42vw, 780px);
    padding-top: clamp(1.2rem, 1.8vw, 2rem);
    padding-bottom: clamp(1.4rem, 2vw, 2.2rem);
  }
  .hero h1 { font-size: clamp(1.95rem, 2.6vw, 2.9rem); max-width: 28ch; }
  .hero__deck { max-width: 43ch; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__points { margin-top: .9rem; }
  .hero__points span { font-size: .7rem; padding: .4rem .7rem; }
  .nameplate {
    position: absolute;
    left: auto;
    right: clamp(1rem, 2vw, 2rem);
    bottom: clamp(1rem, 1.8vw, 1.6rem);
    max-width: 46ch;
    z-index: 3;
    background: rgba(4, 18, 22, .84);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: .8rem 1rem;
    margin-top: 0;
  }
}
.hero__eyebrow { color: #ff9d63; }
.hero__eyebrow::before { background: #ff9d63; }
.hero h1 { letter-spacing: -.014em; }
.hero__deck { color: rgba(255, 255, 255, .82); font-size: 1.06rem; }
.hero__actions { margin-top: 2.4rem; }
.hero__actions .btn--accent { padding: 1.02rem 1.8rem; font-size: 1rem; }
.hero__points span {
  border-color: rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .84);
  border-radius: 999px;
  padding: .46rem .82rem;
}

/* ---------- trust facts strip ---------- */
.facts {
  background: #082320;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.facts__num { color: #ff9558; }
.facts__item .stat__icon { color: #ff9558; }
.facts__label { color: rgba(255, 255, 255, .72); }

/* ---------- section surfaces ---------- */
.section--paper { background: var(--id-sand); }
.section--ink { background: linear-gradient(160deg, #071f1e 0%, #0a2b28 60%, #0d3a35 100%); }
.kicker { color: var(--id-orange); }
.kicker::before { background: var(--id-orange); }
.sect-head { border-top-color: var(--id-line); }
.section--ink .kicker { color: #ff9d63; }
.section--ink .kicker::before { background: #ff9d63; }

/* ---------- cards & tiles ---------- */
.card {
  border-radius: 14px;
  border-color: var(--id-line);
  background: #fff;
  box-shadow: 0 14px 30px -26px rgba(7, 31, 30, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #f5c9a5;
  box-shadow: 0 22px 44px -26px rgba(7, 31, 30, .55);
}
.card__body { border-top-color: #f3ece1; }
.card__title { font-size: 1.03rem; line-height: 1.38; }
.card__cat { color: #a4663a; }
.mosaic__item {
  border-radius: 14px;
  overflow: hidden;
  border-color: var(--id-line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mosaic__item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(7, 31, 30, .55); }
.mosaic__chips a { border-radius: 999px; }
.mosaic__chips a:hover { border-color: var(--id-orange); color: var(--id-orange); }
.scene { border-radius: 14px; overflow: hidden; }
.solution-card { border-radius: 14px; overflow: hidden; border-color: var(--id-line); }
.solution-card:hover { border-color: #f5c9a5; box-shadow: 0 20px 40px -28px rgba(7, 31, 30, .5); }
.solution-card__cta { color: var(--id-orange); font-weight: 600; }
.info-card, .guide-intro, .doc-request, .support-card {
  border-radius: 14px;
  border-color: var(--id-line);
}
.info-card h3 { font-size: 1.06rem; }
.doc-request { background: var(--id-orange-soft); border-color: #f7d3b8; }
.feature { border-radius: 12px; }
.feature__no { color: var(--id-orange); }
.qa-item summary::before { color: var(--id-orange); }
.cert { border-radius: 10px; }

/* ---------- tables ---------- */
.spec-table th {
  background: #0c3b38;
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  border-bottom: 0;
}
.spec-table td { border-bottom-color: #f0e7db; }
.spec-table tbody tr:nth-child(even) { background: #fcf8f3; }
.app-table th {
  background: #0c3b38;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}
.app-table th, .app-table td { border-color: #efe6da; }
.table-scroll { border-radius: 12px; border-color: var(--id-line); }

/* ---------- forms (dark inquiry block) ---------- */
.field label { color: rgba(255, 255, 255, .74); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .30);
  padding: .8rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #ff9558;
  border-color: #ff9558;
}
.form__note { color: rgba(255, 255, 255, .62); }

/* ---------- product detail ---------- */
.pd-model { color: var(--id-orange); }
.pd-fact { border-bottom-color: #f0e7db; }
.pd-fact dt { color: #566661; }
.pd-actions { gap: .7rem; }
.pd-actions .btn--accent { flex: 1 1 auto; justify-content: center; }
.pd-cta {
  border-radius: 14px;
  border: 1px solid #f7d3b8;
  background: linear-gradient(180deg, #fff8f1 0%, #fff 100%);
  box-shadow: 0 18px 36px -30px rgba(7, 31, 30, .55);
}
.pd-cta .mono { color: var(--id-orange); font-weight: 600; }
.pd-cta .link-arrow:hover { color: var(--id-orange); }
.side-nav { border-top-color: var(--id-line); }
.side-nav__fam { color: #0c3b38; }
.side-nav__links a { color: #566661; }
.side-nav__links a:hover { color: var(--id-orange); }
.page-head { border-bottom-color: var(--id-line); }

/* ---------- contact blocks ---------- */
.contact-card { border-color: rgba(255, 255, 255, .18); }
.contact-line { color: #fff; }
.contact-line:hover { color: #ffb98c; }

/* ---------- footer ---------- */
.site-footer { background: #061b1a; }
.footer-col h3 { color: #ff9d63; }
.footer-bottom a:hover { color: #ff9d63; }

/* ---------- mobile inquiry bar (existing component) ---------- */
.quote-bar {
  background: linear-gradient(90deg, #06191d 0%, #0c3b38 100%);
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: .72rem 1rem calc(.72rem + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 30px -22px rgba(0, 0, 0, .9);
}
.quote-bar span {
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: .82rem;
  letter-spacing: 0;
  color: #fff;
  opacity: .92;
}
.quote-bar .btn {
  padding: .72rem 1.15rem;
  font-size: .88rem;
  white-space: nowrap;
}

/* ---------- injected credibility strip ---------- */
.id-trust {
  background: #fff;
  border-bottom: 1px solid var(--id-line);
}
.id-trust__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1.5rem;
  padding: .6rem 0;
  font-size: .8rem;
  color: #55655f;
}
.id-trust__item { display: inline-flex; align-items: center; gap: .42rem; }
.id-trust__item b { color: var(--id-orange); font-weight: 700; }
.id-trust__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--id-orange); flex: none;
}
.id-trust__link {
  margin-left: auto;
  font-weight: 600;
  color: var(--id-orange);
  white-space: nowrap;
}
.id-trust__link:hover { color: var(--id-orange-deep); }

/* ---------- readable tap targets & focus ---------- */
a, button, .btn { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--id-orange); outline-offset: 2px; }

@media (max-width: 999px) {
  body { font-size: 16.5px; }
  .site-footer { padding-bottom: 5.4rem; }
  .pd-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .id-trust__row { font-size: .76rem; gap: .35rem 1rem; }
  .id-trust__link { margin-left: 0; }
}

@media (min-width: 1000px) {
  .section { padding: clamp(4.2rem, 6.6vw, 7.4rem) 0; }
  /* keep the inquiry card in view while the buyer reads specifications */
  .pd-cta {
    position: sticky;
    top: 128px;
    z-index: 5;
  }
}
