/* =========================================================
   PT Berlina Tbk — Redesign v4 "Modern Elegant"
   Direction: Swiss Modernism 2.0 × Trust & Authority
   (UI/UX Pro Max: strict grid, generous whitespace, single
   accent discipline, WCAG AA+, 44px tap targets everywhere)
   Brand palette from the official BRNA logo:
   Navy #1E3681 / Orange #F1501A — kept, executed lighter.
   ========================================================= */

:root {
  --charcoal: #1e3681;        /* brand navy */
  --charcoal-dark: #101f52;   /* deep navy, dark sections/footer */
  --slate: #5b6a95;           /* cool blue-gray, secondary text/dividers */
  --slate-light: #93a0c4;
  --light-gray: #dfe3ee;
  --pale: #f6f8fc;
  --white: #ffffff;
  --accent: #c73e10;          /* AA-safe orange for text/buttons on white (5.1:1) */
  --accent-vivid: #f1501a;    /* raw brand orange — large/bold/decorative only */
  --accent-light: #b83810;    /* hover/active — keeps white text AA-safe (5.8:1) */
  --accent-pale: #fff3ee;     /* pale tint — keeps --accent text AA-safe on it */
  --text: #1b2133;
  --text-muted: #59637f;
  --border: #e7eaf3;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 31, 82, 0.05), 0 4px 16px rgba(16, 31, 82, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 31, 82, 0.05), 0 16px 40px rgba(16, 31, 82, 0.12);
  --max-width: 1200px;
  --font-head: "Lexend", "Inter", "Helvetica Neue", Arial, "DejaVu Sans", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, "DejaVu Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Respect users who've asked the OS for reduced motion (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--charcoal-dark);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 2px; border-radius: 2px; background: currentColor;
}
.section-head.center .eyebrow, .card .eyebrow { padding-left: 0; }
.section-head.center .eyebrow::before, .card .eyebrow::before { display: none; }

.section { padding: 108px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: var(--pale); }
.section.dark {
  background: var(--charcoal-dark);
  color: #ccd4ea;
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--white); }
@media (max-width: 640px) { .section { padding: 72px 0; } }

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons (pill, 48px target) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(199, 62, 16, 0.28); }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 8px 22px rgba(199, 62, 16, 0.34); }
.btn-outline { background: transparent; border-color: var(--light-gray); color: var(--charcoal); }
.btn-outline:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.45); color: var(--white); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal-dark); }
.btn-sm { min-height: 44px; padding: 9px 22px; font-size: 0.85rem; }

/* ---------- Header / Nav (glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(16, 31, 82, 0.07);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--charcoal-dark);
  letter-spacing: -0.015em;
}
.logo-img { height: 38px; width: 38px; display: block; flex-shrink: 0; }
.logo-text { white-space: nowrap; }
.logo .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}
.logo .sub { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--text-muted); font-weight: 600; display: block; }
@media (max-width: 420px) {
  .logo { font-size: 1.08rem; gap: 8px; }
  .logo-img { height: 30px; width: 30px; }
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .main-nav > .has-drop { position: relative; }
.main-nav a.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--accent); background: var(--accent-pale); }

/* Hover bridge: no dead gap between link and dropdown (fixes "hard to click") */
.has-drop::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.has-drop .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 244px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.dropdown a:hover { background: var(--accent-pale); color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Language switcher (ID / EN) ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: var(--pale); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.03em; color: var(--text-muted);
  padding: 5px 13px; border-radius: 999px; transition: all 0.15s ease;
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
}
.lang-btn.active { background: var(--charcoal-dark); color: #fff; }
.lang-btn:not(.active):hover { color: var(--charcoal-dark); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); line-height: 1; padding: 8px; min-width: 44px; min-height: 44px; border-radius: var(--radius-sm); touch-action: manipulation; }

/* Desktop: has-drop parent link is a real link; caret only on mobile */
.nav-caret { display: none; }

@media (max-width: 980px) {
  /* backdrop-filter on .site-header creates a new containing block for any
     position:fixed descendant, so .main-nav's fixed drawer below would be
     confined to the header's own small box instead of the viewport.
     Disabling the blur on mobile (where the header shrinks to just the bar)
     removes that containing block so the drawer positions correctly. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.97); }
  .main-nav { position: fixed; inset: 66px 0 0 0; z-index: 500; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; display: none; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { border-radius: var(--radius-sm); min-height: 48px; }
  .has-drop { display: flex; align-items: center; flex-wrap: wrap; }
  .has-drop::after { display: none; }
  .has-drop > a.nav-link { flex: 1 1 auto; }
  .nav-caret {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0;
    background: none; border: none; color: var(--charcoal); cursor: pointer;
    transition: transform 0.18s ease;
    touch-action: manipulation; position: relative; z-index: 1;
  }
  .lang-btn { min-height: 44px; padding: 5px 14px; }
  .has-drop.open .nav-caret { transform: rotate(180deg); }
  .has-drop .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 14px; width: 100%; }
  .has-drop.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal) 60%, #2c49a5);
  color: var(--white);
  padding: 128px 0 104px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,80,26,0.28), transparent 70%);
}
.hero.has-photo {
  background: linear-gradient(90deg, rgba(13,24,64,0.94) 0%, rgba(13,24,64,0.84) 40%, rgba(13,24,64,0.32) 78%, rgba(13,24,64,0.08) 100%), var(--hero-photo, none);
  background-size: cover;
  background-position: center;
}
/* Elegant hairline in place of the old hard 4px orange bar */
.hero.has-photo::before, .page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent-vivid), rgba(241,80,26,0.25) 55%, transparent);
}
.hero-inner { position: relative; z-index: 2; max-width: 740px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: var(--white); margin-bottom: 22px; letter-spacing: -0.025em; }
.hero p.lead { font-size: 1.12rem; color: #d9dfef; max-width: 580px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat { border-top: 2px solid rgba(255,255,255,0.28); padding-top: 14px; min-width: 104px; }
.hero-stats .stat b { display: block; font-size: 2.1rem; color: var(--white); font-family: var(--font-head); letter-spacing: -0.02em; }
.hero-stats .stat span { font-size: 0.8rem; color: #c6cfe8; letter-spacing: 0.02em; }

.page-hero {
  position: relative;
  background: var(--charcoal-dark);
  color: var(--white);
  padding: 64px 0 48px;
  overflow: hidden;
}
.page-hero.has-photo {
  background: linear-gradient(90deg, rgba(13,24,64,0.94) 0%, rgba(13,24,64,0.85) 42%, rgba(13,24,64,0.3) 80%, rgba(13,24,64,0.08) 100%), var(--hero-photo, none);
  background-size: cover;
  background-position: center;
}
.page-hero .eyebrow { color: #ff9166; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
.breadcrumb { font-size: 0.82rem; color: #aeb8d6; margin-bottom: 14px; }
.breadcrumb a { color: #d3daee; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sub nav (secondary section nav) ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--pale);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.subnav a {
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.subnav a:hover, .subnav a.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.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-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-vivid), rgba(241,80,26,0.15));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-pale);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.product-card { text-align: left; }
.tag, .product-card .tag { display:inline-block; font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--accent); font-weight:700; margin-top:14px; }
.tag-row .tag { margin-top: 0; background: var(--accent-pale); padding: 5px 12px; border-radius: 999px; }

.stat-strip {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.stat-strip .stat { min-width: 132px; border-top: 3px solid var(--accent); padding-top: 15px; }
.stat-strip .stat b { font-size: 2.3rem; display: block; font-family: var(--font-head); color: var(--charcoal-dark); letter-spacing: -0.02em; }
.stat-strip .stat span { font-size: 0.8rem; color: var(--text-muted); }

/* Dark variant, for use on navy/photo backgrounds */
.stat-strip.dark { background: var(--charcoal-dark); border-color: transparent; }
.stat-strip.dark .stat { border-top-color: var(--accent-vivid); }
.stat-strip.dark .stat b { color: var(--white); }
.stat-strip.dark .stat span { color: #b3bdda; }

/* Process timeline */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step .num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(180deg, var(--slate-light), var(--light-gray));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process-step h4 { margin-bottom: 8px; font-size: 1.08rem; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* Downloads / reports list */
.doc-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s ease;
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--pale); }
.doc-item .meta { display: flex; align-items: center; gap: 16px; }
.doc-item .doc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-pale); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.doc-item .title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.doc-item .date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
/* Download action: real pill button, comfortable 44px target */
.doc-item .dl {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 20px;
  border: 1px solid var(--light-gray); border-radius: 999px;
  font-size: 0.83rem; font-weight: 700; color: var(--accent); white-space: nowrap;
  transition: all 0.15s ease;
}
.doc-item .dl:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* News */
.news-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex; flex-direction: column;
}
.news-card:hover, .news-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.news-card .thumb {
  height: 176px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-family: var(--font-head); font-weight: 800;
  letter-spacing: 0.1em; font-size: 0.9rem;
}
.news-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.news-card:hover .thumb img, .news-card:focus-within .thumb img { transform: scale(1.07); }
.news-card .thumb::after { /* scrim keeps the tag pill readable over any photo */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,24,64,0) 45%, rgba(13,24,64,0.5) 100%);
}
.news-card .thumb .tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  color: #fff; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(13, 24, 64, 0.5); border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(3px);
}
.news-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.news-card h4 { font-size: 1.02rem; margin-bottom: 16px; }
/* Read action: pill button, pinned to card bottom, 44px target */
.news-card .read {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; margin-top: auto;
  min-height: 44px; padding: 8px 20px;
  border: 1px solid var(--light-gray); border-radius: 999px;
  font-size: 0.83rem; font-weight: 700; color: var(--charcoal);
  transition: all 0.15s ease;
}
.news-card .read::after { content: "→"; margin-left: 8px; transition: transform 0.15s ease; }
.news-card .read:hover { background: var(--charcoal-dark); border-color: var(--charcoal-dark); color: #fff; }
.news-card .read:hover::after { transform: translateX(3px); }

/* Scroll-reveal (JS toggles .in-view via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { background: var(--pale); font-weight: 700; color: var(--charcoal-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:hover td { background: var(--pale); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap .data-table { border: none; }

/* Contact */
.contact-card { display:flex; gap:16px; padding: 26px; border:1px solid var(--border); border-radius: var(--radius); background: var(--white); transition: box-shadow 0.2s ease; }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-pale); color: var(--accent); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.contact-card h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--charcoal-dark); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  min-height: 48px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 62, 16, 0.14);
}

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-vivid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(199, 62, 16, 0.26);
}
.cta-band h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { color: #ffffff; opacity: 0.94; }
@media (max-width: 640px) { .cta-band { padding: 40px 28px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--charcoal-dark); color: #b3bdda; padding: 76px 0 30px; }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-vivid), rgba(241,80,26,0.25) 55%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 52px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 34px; font-size: 0.89rem; color: #b3bdda; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; font-family: var(--font-head); letter-spacing: 0.02em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #93a0c4; }

/* Standalone "read" links outside news cards (e.g. investor page cards):
   same pill treatment, comfortable 44px target */
a.read:not(.news-card .read) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 20px;
  border: 1px solid var(--light-gray); border-radius: 999px;
  font-size: 0.83rem; font-weight: 700; color: var(--charcoal);
  transition: all 0.15s ease;
}
a.read:not(.news-card .read):hover { background: var(--charcoal-dark); border-color: var(--charcoal-dark); color: #fff; }

/* Utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.badge { display:inline-block; padding:5px 12px; border-radius:999px; background:var(--accent-pale); color:var(--accent); font-size:0.72rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; }

/* ---------- Icon system (inline SVG) ---------- */
.icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card .icon { color: var(--accent); }

/* Hero decorative pattern */
.hero-pattern {
  position: absolute; right: -60px; bottom: -80px; z-index: 1;
  opacity: 0.45; pointer-events: none;
}
.hero-pattern svg { width: 380px; height: 380px; }

/* ---------- Timeline tabs (Jejak Langkah) ---------- */
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn {
  min-height: 44px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); color: var(--text-muted); font-weight: 700; font-size: 0.86rem;
  cursor: pointer; transition: all 0.15s ease;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--charcoal-dark); border-color: var(--charcoal-dark); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .yr { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Management / bio cards ---------- */
.mgmt-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--white); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.mgmt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.mgmt-card .avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 18px;
}
.mgmt-card h3 { font-size: 1.06rem; margin-bottom: 2px; }
.mgmt-card .role { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; display: block; }
.mgmt-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Subsidiary / factory cards ---------- */
.subsidiary-card, .factory-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--white);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s ease;
}
.subsidiary-card:hover, .factory-card:hover { box-shadow: var(--shadow); }
.subsidiary-card .loc, .factory-card .loc { color: var(--text-muted); font-size: 0.86rem; }
.subsidiary-card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Certification table ---------- */
.cert-table .data-table td { font-size: 0.88rem; }
.cert-table .data-table td.entity { white-space: nowrap; }

/* ---------- Empty state ---------- */
.empty-state {
  border: 1px dashed var(--light-gray); border-radius: var(--radius); padding: 44px; text-align: center; background: var(--pale);
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ---------- Direct-contact panel ---------- */
.contact-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; background: var(--white); box-shadow: var(--shadow); }
.contact-panel .row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.contact-panel .row:last-of-type { border-bottom: none; }
.contact-panel .row .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-pale); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-panel .row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--charcoal-dark); }
.contact-panel .row a:hover { color: var(--accent); }

.disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }
.external-note { font-size: 0.78rem; color: var(--slate); }

/* External-link marker (only for genuinely external destinations) */
a.ext::after { content: "↗"; font-size: 0.75em; margin-left: 4px; opacity: 0.7; }

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute; 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: 12px; top: -64px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Visible keyboard focus ring across interactive elements */
a:focus-visible,
button:focus-visible,
.tab-btn:focus-visible,
.nav-caret:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Product catalog hub: clickable, photo-led category cards ---------- */
.product-cat-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pale);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-cat-card:hover img { transform: scale(1.05); }
.product-cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,24,64,0.86) 0%, rgba(13,24,64,0.32) 45%, rgba(13,24,64,0.02) 70%);
}
.product-cat-card .label {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  color: #fff;
}
.product-cat-card .label .name { font-weight: 700; font-size: 1.04rem; display: block; margin-bottom: 4px; font-family: var(--font-head); }
.product-cat-card .label .go { font-size: 0.78rem; color: #ffc4a3; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.product-cat-card .label .go::after { content: " →"; }

/* ---------- Product detail page ---------- */
.spec-list { display: flex; flex-direction: column; gap: 4px; }
.spec-item { padding: 17px 0; border-bottom: 1px solid var(--border); }
.spec-item:last-child { border-bottom: none; }
.spec-item .mat-name { font-weight: 700; color: var(--charcoal-dark); font-size: 0.96rem; }
.spec-item p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

.tech-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--white); }
.tech-item summary {
  cursor: pointer; padding: 16px 20px; min-height: 48px; font-weight: 700; font-size: 0.92rem; color: var(--charcoal-dark);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tech-item summary::-webkit-details-marker { display: none; }
.tech-item summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.tech-item[open] summary::after { content: "–"; }
.tech-item[open] summary { border-bottom: 1px solid var(--border); }
.tech-item .body { padding: 4px 20px 18px; color: var(--text-muted); font-size: 0.92rem; }

.related-row { display: flex; flex-wrap: wrap; gap: 8px; }
.related-row a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 18px; border-radius: 999px; background: var(--pale); border: 1px solid var(--border);
  font-size: 0.83rem; font-weight: 700; color: var(--charcoal-dark);
  transition: all 0.15s ease;
}
.related-row a:hover { background: var(--accent-pale); border-color: var(--accent); color: var(--accent); }

.product-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
@media (max-width: 640px) { .product-gallery { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Investor page — coded data visuals
   ========================================================= */
.donut-wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.donut-chart { width: 172px; height: 172px; flex-shrink: 0; }
.donut-seg { transition: stroke-width 0.2s ease; }
.donut-seg-1 { stroke: var(--charcoal); }
.donut-seg-2 { stroke: var(--accent-vivid); }
.donut-seg-3 { stroke: var(--slate); }
.donut-seg-4 { stroke: var(--slate-light); }
.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text); }
.donut-legend li span:nth-of-type(2) { flex: 0 1 auto; }
.donut-legend li b { margin-left: auto; padding-left: 18px; font-family: var(--font-head); font-weight: 800; color: var(--charcoal-dark); }
.donut-legend .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.donut-legend .dot-1 { background: var(--charcoal); }
.donut-legend .dot-2 { background: var(--accent-vivid); }
.donut-legend .dot-3 { background: var(--slate); }
.donut-legend .dot-4 { background: var(--slate-light); }

.org-chart { overflow-x: auto; padding: 4px 0 8px; }
.org-chart-inner { min-width: 600px; width: fit-content; margin: 0 auto; }
.org-root { display: flex; justify-content: center; }
.org-node {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-dark));
  color: #fff; border-radius: var(--radius-sm); padding: 15px 22px; text-align: center; min-width: 168px;
  box-shadow: var(--shadow);
}
.org-node-sub { background: linear-gradient(135deg, var(--slate), var(--charcoal-dark)); }
.org-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.84rem; line-height: 1.35; }
.org-pct { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-top: 6px; letter-spacing: -0.01em; }
.org-root .org-node { max-width: 320px; width: 100%; }
.org-connector, .org-subline { width: 1px; height: 22px; background: var(--light-gray); margin: 0 auto; }
.org-children { display: flex; justify-content: center; gap: 22px; padding-top: 22px; }
.org-branch { position: relative; padding: 0 8px; }
.org-branch::before {
  content: ''; position: absolute; top: -22px; left: 50%;
  width: 1px; height: 22px; background: var(--light-gray);
}
.org-branch::after {
  content: ''; position: absolute; top: -22px; left: 0; right: 0; height: 1px; background: var(--light-gray);
}
.org-branch:first-child::after { left: 50%; }
.org-branch:last-child::after { right: 50%; }
@media (max-width: 640px) {
  .donut-wrap { justify-content: center; text-align: left; }
}

/* =========================================================
   v5 — "Tempo Scan"-inspired homepage layer
   Full-screen video hero, oversized display type, catalog
   wall, video CTA band. Applies on top of v4 tokens.
   ========================================================= */

/* Full-screen video hero */
.hero-fs {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--charcoal-dark);
}
.hero-fs video, .hero-fs .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-fs .hero-fallback { background: var(--hero-photo) center/cover; }
.hero-fs::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,24,64,0.35) 0%, rgba(13,24,64,0.25) 45%, rgba(13,24,64,0.82) 100%);
}
.hero-fs .hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 140px 32px 110px;
}
.display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 26px;
}
.display .accent-line { color: #ff9166; display: block; }
.hero-fs .lead { font-size: 1.15rem; color: #dfe4f2; max-width: 620px; margin-bottom: 38px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.55); border-radius: 999px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 9px; border-radius: 4px; background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { top: 8px; opacity: 1; } 55% { top: 22px; opacity: 0.2; } }

/* Stats band overlapping hero bottom */
.stats-overlap { margin-top: -64px; position: relative; z-index: 5; }

/* Oversized split sections (Who We Are) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .display-dark {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em;
  color: var(--charcoal-dark);
}
.split .display-dark em { font-style: normal; color: var(--accent); }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Catalog wall (product categories, Tempo brand-wall equivalent) */
.catalog-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catalog-wall .product-cat-card { aspect-ratio: 1 / 1; border: none; }
.catalog-wall .wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .catalog-wall { grid-template-columns: 1fr 1fr; } }

/* Video CTA band */
.video-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, rgba(13,24,64,0.72), rgba(13,24,64,0.45)), var(--hero-photo, none) center/cover;
  color: #fff; text-align: center;
  cursor: pointer;
}
.video-cta h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 18px 0 6px; }
.video-cta p { color: #d5dbee; }
.play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent-vivid);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px rgba(241,80,26,0.45);
  transition: transform 0.2s ease;
  border: none; cursor: pointer;
}
.play-btn::after {
  content: ""; margin-left: 5px;
  border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-cta:hover .play-btn { transform: scale(1.08); }

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 14, 40, 0.9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal .frame { width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.video-modal video, .video-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal .close {
  position: absolute; top: -48px; right: 0;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.video-modal .frame-wrap { position: relative; width: min(960px, 100%); }

/* Career band */
.career-band {
  background: var(--charcoal-dark);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.career-band::after {
  content: ""; position: absolute; right: -100px; top: -100px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(241,80,26,0.35), transparent 70%);
}
.career-band h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; font-weight: 800; letter-spacing: -0.02em; }
.career-band p { color: #c6cfe8; max-width: 520px; }
@media (max-width: 640px) { .career-band { padding: 40px 28px; } }
