/* =========================================================
   PT Global Carbon Indonesia
   Design tokens live in :root. Change colors here once.
   ========================================================= */

:root {
  --bg: #FAFAF7;          /* off-white page */
  --surface: #FFFFFF;     /* cards */
  --tint: #F2F1EC;        /* alternating sections */
  --ink: #1D1D1F;         /* headlines, primary text */
  --ink-2: #3A3A3C;       /* body text */
  --muted: #6E6E73;       /* secondary text */
  --line: rgba(29, 29, 31, 0.10);
  --green: #2F5D3A;       /* accent: sustainability */
  --green-deep: #244A2E;
  --brown: #8B6B4A;       /* coconut, use sparingly */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 28px rgba(29, 29, 31, 0.06);

  --nav-h: 56px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(88px, 14vw, 168px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: calc(var(--pad) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--pad) + env(safe-area-inset-right, 0px));
}
.container--wide { max-width: 1280px; }
.container--narrow { max-width: 760px; }

.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: clamp(48px, 8vw, 80px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Type ---------- */
.h2 {
  color: var(--ink);
  font-size: clamp(2.25rem, 6.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  margin-top: 20px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Editable placeholder values: easy to spot, easy to replace */
.ph {
  background: rgba(139, 107, 74, 0.12);
  color: #6A4F33;
  border-radius: 6px;
  padding: 0.05em 0.35em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sustain .ph, .contact .ph { background: rgba(255, 255, 255, 0.14); color: #F1E3D2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { color: var(--ink); border-color: rgba(29, 29, 31, 0.22); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #EDEDE8; }
.btn--small { min-height: 34px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(250, 250, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__sub { font-weight: 400; color: var(--muted); }
.logo--footer .logo__mark { width: 40px; height: 40px; }

.nav__menu { margin-left: auto; }
.nav__cta { display: none; }

.nav__toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.nav__toggle-bar { width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-of-type  { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu panel */
.nav__menu {
  position: fixed;
  inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
  background: rgba(250, 250, 247, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--pad) 24px;
  display: none;
}
.nav__menu.is-open { display: block; }
.nav__menu a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.nav__cta-mobile a { color: var(--green); border-bottom: 0; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    display: block;
    background: none;
    border: 0;
    padding: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav__menu ul { display: flex; gap: 28px; }
  .nav__menu a {
    padding: 0;
    border: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink-2);
  }
  .nav__menu a:hover { color: var(--ink); }
  .nav__cta-mobile { display: none; }
  .nav__cta { display: inline-flex; margin-left: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 14vw, 150px) 0 clamp(56px, 8vw, 96px); }
.hero__content { text-align: center; margin-bottom: clamp(48px, 8vw, 88px); }
.hero__title {
  color: var(--ink);
  font-size: clamp(3.25rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.hero__sub {
  max-width: 34ch;
  margin: 24px auto 36px;
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.012em;
}
.hero .btn-row { justify-content: center; }

/* ---------- Image placeholders (replace with real <img>) ---------- */
.placeholder {
  display: grid;
  place-items: center;
  background: #E7E6E0;
  color: var(--muted);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}
.placeholder--hero { aspect-ratio: 4 / 3; background: #E2E1DA; }
.placeholder--card { aspect-ratio: 4 / 3; border-radius: 0; }
.placeholder--tall { aspect-ratio: 4 / 5; }
.placeholder--dark { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.72); }
@media (min-width: 700px) { .placeholder--hero { aspect-ratio: 21 / 9; } }

/* Real images should use .media for the same shape */
.media { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }

/* ---------- Sustainability (the big one) ---------- */
.sustain {
  background: var(--green);
  color: rgba(255, 255, 255, 0.82);
}
.sustain .h2 { color: #fff; }
.sustain .lead { color: rgba(255, 255, 255, 0.78); }
.sustain a { color: #fff; }
.sustain :focus-visible { outline-color: #fff; }

.cycle {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.cycle__step {
  position: relative;
  padding: 0 0 44px 76px;
}
/* vertical connector on mobile */
.cycle__step::before {
  content: "";
  position: absolute;
  left: 27px; top: 60px; bottom: 4px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.24);
}
.cycle__step:last-child::before { display: none; }
.cycle__icon {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.cycle__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cycle__icon svg .fill { fill: currentColor; stroke: none; }
.cycle__num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #D9C3A8; /* coconut, lightened for contrast on green */
  margin-bottom: 4px;
}
.cycle__title {
  color: #fff;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.cycle__step p { font-size: 1rem; max-width: 40ch; }

@media (min-width: 900px) {
  .cycle { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .cycle__step { padding: 92px 0 0 0; }
  /* horizontal connector on desktop */
  .cycle__step::before {
    left: 72px; right: -24px; top: 32px; bottom: auto;
    width: auto; height: 1.5px;
  }
  .cycle__icon { width: 64px; height: 64px; }
  .cycle__icon svg { width: 34px; height: 34px; }
}

.statement {
  margin: clamp(80px, 12vw, 140px) 0 clamp(48px, 8vw, 80px);
  padding-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.statement__big {
  color: #fff;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
}
.statement__small {
  margin-top: 24px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.78);
}

.pillars {
  display: grid;
  gap: 32px;
  margin-bottom: clamp(56px, 8vw, 88px);
}
.pillar h3 {
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.pillar p { font-size: 1rem; max-width: 36ch; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.media-pair { display: grid; gap: 16px; }
@media (min-width: 760px) { .media-pair { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- Comparison ---------- */
.compare-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.compare thead th { text-align: left; }
.compare__head {
  padding: 0 0 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.015em;
  vertical-align: bottom;
}
.compare__head--us { color: var(--green); }
.compare tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.compare tbody td {
  font-size: 1.0625rem;
  color: var(--muted);
}
.compare tbody td.is-us { color: var(--ink); font-weight: 500; }

/* Mobile: attribute name on its own line, two values below */
.compare thead tr,
.compare tbody tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.compare thead td { display: none; }
.compare tbody tr { padding: 20px 0; border-top: 1px solid var(--line); }
.compare tbody th {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}
.compare tbody td { font-size: 1rem; line-height: 1.4; }

@media (min-width: 760px) {
  .compare thead tr,
  .compare tbody tr { grid-template-columns: 1fr 1.4fr 1.4fr; column-gap: 32px; }
  .compare thead td { display: block; }
  .compare tbody tr { padding: 26px 0; align-items: baseline; }
  .compare tbody th { grid-column: auto; margin: 0; font-size: 1.0625rem; color: var(--ink); }
  .compare tbody td { font-size: 1.1875rem; letter-spacing: -0.01em; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- Products ---------- */
.products { display: grid; gap: 20px; }
@media (min-width: 760px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product { display: flex; flex-direction: column; }
.product__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product__title {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.product__body > p { font-size: 1rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.chips li .ph { background: none; padding: 0; }

.facts { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; text-align: right; }

/* ---------- Specs ---------- */
.spec-card { padding: 8px clamp(20px, 4vw, 40px) clamp(20px, 3vw, 28px); }
.specs caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.specs thead th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 18px 0 12px;
}
.specs thead th:last-child, .specs td { text-align: right; }
.specs tbody th, .specs td {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}
.specs tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.specs td { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Export & packaging ---------- */
.packaging { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 760px) { .packaging { grid-template-columns: repeat(3, 1fr); } }
.pack .placeholder { aspect-ratio: 16 / 10; border-radius: 0; }
.pack__body { padding: 24px 26px 28px; }
.pack__step { font-size: 0.8125rem; color: var(--brown); font-weight: 500; margin-bottom: 4px; }
.pack h3 { color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.pack p { font-size: 0.9375rem; color: var(--muted); }
.pack__detail { margin-top: 12px; font-size: 0.9375rem; color: var(--ink); }

.terms {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terms div { padding: 24px 28px; border-top: 1px solid var(--line); }
.terms div:first-child { border-top: 0; }
.terms dt { font-size: 0.875rem; color: var(--muted); margin-bottom: 4px; }
.terms dd { color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
@media (min-width: 640px) {
  .terms { grid-template-columns: repeat(2, 1fr); }
  .terms div { border-left: 1px solid var(--line); }
  .terms div:nth-child(2n+1) { border-left: 0; }
  .terms div:nth-child(2) { border-top: 0; }
}
@media (min-width: 1000px) {
  .terms { grid-template-columns: repeat(4, 1fr); }
  .terms div:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .terms div:nth-child(4n+1) { border-left: 0; }
  .terms div:nth-child(-n+4) { border-top: 0; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 56px; align-items: start; }
.about__text > p:not(.lead) { margin-top: 24px; max-width: 60ch; }
.mv { display: grid; gap: 28px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.mv h3 { color: var(--ink); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.mv p { max-width: 40ch; }
.about__facts { margin-top: 20px; display: grid; gap: 0; }
.about__facts div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.9375rem;
}
.about__facts dt { color: var(--muted); }
.about__facts dd { color: var(--ink); font-weight: 500; text-align: right; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.25fr 1fr; gap: 80px; }
  .mv { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.contact .h2 { color: #fff; }
.contact .lead { color: rgba(255, 255, 255, 0.72); }
.contact :focus-visible { outline-color: #9FC4A8; }
.contact__grid { display: grid; gap: 56px; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact__email { margin-top: 16px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.6); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.25fr; gap: 80px; } }

.form {
  background: #2A2A2C;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: #1D1D1F;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #9FC4A8; box-shadow: 0 0 0 3px rgba(159, 196, 168, 0.28); }
.field [aria-invalid="true"] { border-color: #F2A08F; }
.form .btn--primary { margin-top: 6px; }
.form__status { font-size: 0.9375rem; min-height: 1.5em; color: rgba(255, 255, 255, 0.8); }
.form__status.is-error { color: #F7B7A8; }
.form__status.is-ok { color: #A9D3B3; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; }
.footer__grid { display: grid; gap: 40px; }
.footer__tag { margin-top: 10px; color: var(--muted); max-width: 30ch; }
.footer__h { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer ul span { color: var(--ink-2); }
.footer__bottom { margin-top: 48px; color: var(--muted); }
.footer__bottom p { padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr 1fr; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
