/* =========================================================
   PT Surya Tirta Cemerlang – Website v1
   Warna diambil dari logo: biru #2951A8, oranye #E5511D
   ========================================================= */
:root {
  --blue: #2951a8;        /* biru logo */
  --navy: #14275a;        /* navy gelap (turunan biru logo) */
  --navy-900: #0d1b40;
  --orange: #e5511d;      /* oranye logo */
  --orange-dark: #c94313;
  --ink: #1b2437;
  --muted: #5c6880;
  --line: #e3e8f2;
  --bg-alt: #f4f7fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 39, 90, .08);
  --shadow-lg: 0 20px 50px rgba(20, 39, 90, .16);
  --nav-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.65; font-size: 16px; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy) 60%, #1b3577); color: #dfe6f5; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: #b9c5e0; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; position: relative; padding-left: 28px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: currentColor; }
.section-head .eyebrow { padding: 0 28px; }
.section-head .eyebrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 2px; background: currentColor; }
.eyebrow-light { color: #ff8a5c; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(229, 81, 29, .3); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(20,39,90,.08); border-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 44px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { color: var(--blue); font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.btn) { padding: 8px 14px; font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 8px; position: relative; transition: color .2s; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.nav-menu a:not(.btn):hover, .nav-menu a.active:not(.btn) { color: var(--blue); }
.nav-menu a.active:not(.btn)::after, .nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-shrink: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 640px; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 80px; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,27,64,.95) 0%, rgba(20,39,90,.86) 45%, rgba(41,81,168,.45) 100%); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 46px solid rgba(229,81,29,.85); border-left-color: transparent; border-top-color: transparent; transform: rotate(10deg); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 1180px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; max-width: 780px; margin-bottom: 20px; }
.hero h1 .accent { color: #ff7a45; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d5ddf0; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; max-width: 720px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.hero-stats li { flex: 1 1 180px; padding-right: 24px; }
.hero-stats strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .88rem; color: #b9c5e0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; padding: 0 60px 70px 0; }
.about-img-main { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: -16px; top: 32px; background: var(--orange); color: #fff; padding: 16px 20px; border-radius: 12px; box-shadow: 0 12px 26px rgba(229,81,29,.35); line-height: 1.2; }
.about-badge strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.about-badge span { font-size: 1.15rem; font-weight: 800; }
.about-text > p { color: var(--muted); font-size: 1.02rem; }
.about-text > p strong { color: var(--ink); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 24px; }
.pillar { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pillar h3 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: .88rem; color: var(--muted); margin: 0; }
.pillar-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: rgba(41,81,168,.1); display: grid; place-items: center; }
.pillar-icon svg { width: 22px; height: 22px; fill: var(--blue); }
.segments { display: flex; flex-wrap: wrap; gap: 8px; }
.segments span { font-size: .82rem; font-weight: 600; color: var(--blue); background: rgba(41,81,168,.08); padding: 6px 14px; border-radius: 999px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.product-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }
.product-no { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--orange); background: rgba(229,81,29,.1); border-radius: 8px; padding: 4px 10px; margin-bottom: 16px; }
.product-card h3 { font-size: 1.12rem; }
.product-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.product-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; }
.product-cta p { margin: 0; font-size: 1.05rem; font-weight: 600; }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; align-items: center; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-logo { height: 110px; width: 100%; display: grid; place-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.brand-logo img { max-height: 84px; max-width: 220px; width: auto; object-fit: contain; }
.brand-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--blue); background: rgba(41,81,168,.08); border-radius: 999px; padding: 6px 14px; }
.brand-also { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.brand-also img { height: 70px; width: auto; }

/* ---------- Projects ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.highlight { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--orange); border-radius: 12px; padding: 20px 22px; transition: background .25s; }
.highlight:hover { background: rgba(255,255,255,.1); }
.highlight h3 { color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.highlight p { color: #b9c5e0; font-size: .9rem; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 48px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }

.ref-panel { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); }
.ref-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ref-head h3 { font-size: 1.35rem; margin-bottom: 2px; }
.ref-count { margin: 0; color: var(--muted); font-size: .9rem; }
.ref-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; }
.search input, .ref-controls select { font: inherit; font-size: .92rem; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--bg-alt); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input { padding-left: 40px; width: 280px; }
.search input:focus, .ref-controls select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,81,168,.15); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.chip span { display: inline-block; min-width: 22px; font-size: .75rem; background: var(--bg-alt); border-radius: 999px; padding: 1px 6px; margin-left: 4px; color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 560px; overflow-y: auto; }
.ref-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ref-table th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; text-align: left; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 13px 16px; white-space: nowrap; }
.ref-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ref-table tbody tr:nth-child(even) { background: #fafbfe; }
.ref-table tbody tr:hover { background: rgba(41,81,168,.05); }
.td-name { font-weight: 700; color: var(--navy); }
.field-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(41,81,168,.1); color: var(--blue); white-space: nowrap; }
.f-pabrik { background: rgba(229,81,29,.1); color: var(--orange-dark); }
.f-pln { background: rgba(234,179,8,.15); color: #8a6a00; }
.f-pdam, .f-wtp { background: rgba(14,165,233,.12); color: #0b6e99; }
.f-pertambangan { background: rgba(100,116,139,.15); color: #475569; }
.ref-empty { padding: 30px; text-align: center; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--navy); font-size: .95rem; }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--orange); }
.ci { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(229,81,29,.25); }
.ci svg { width: 22px; height: 22px; fill: #fff; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; background: var(--bg-alt); }
.map { position: relative; display: flex; flex-direction: column; }
.map iframe { width: 100%; flex: 1; min-height: 420px; border: 0; display: block; }
.map-link { display: block; text-align: center; padding: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; }
.map-link:hover { background: var(--blue); }
.ref-more { display: flex; margin: 8px auto 0; }
.ref-more[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aab6d3; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #ff8a5c; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo strong { display: block; color: #fff; font-size: 1.02rem; }
.footer-logo small { color: #8d9bbd; }
.logo-chip { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.logo-chip img { width: 38px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; color: #7d8bb0; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(229,81,29,.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu a:not(.btn) { padding: 8px 10px; }
  .brand-text small { display: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .brand-text small { display: block; }
  .nav-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px 24px 24px; box-shadow: 0 18px 30px rgba(20,39,90,.12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 560px; margin: 0 auto; width: 100%; }
  .product-grid, .brand-grid, .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .brand img { width: 38px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .68rem; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 48px) 0 64px; }
  .hero::after { width: 300px; height: 300px; border-width: 28px; right: -110px; bottom: -120px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 18px 0; }
  .hero-stats li { flex: 1 1 33%; padding-right: 10px; }
  .hero-stats strong { font-size: 1.6rem; }
  .hero-stats span { font-size: .76rem; display: block; line-height: 1.35; }
  .about-media { padding: 0 34px 48px 0; }
  .about-badge { left: -6px; top: 18px; padding: 12px 14px; }
  .pillars { grid-template-columns: 1fr; }
  .brand-grid, .highlight-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 16px 14px; }
  .product-no { margin-bottom: 10px; }
  .product-card h3 { font-size: .95rem; }
  .product-card p { font-size: .8rem; line-height: 1.5; }
  .highlight { padding: 16px 18px; }
  .eyebrow-light { letter-spacing: .08em; font-size: .7rem; }
  .product-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .brand-also { flex-direction: column; gap: 10px; }
  .ref-panel { padding: 20px 16px; border-radius: 14px; }
  .ref-controls, .search, .search input { width: 100%; }
  .ref-controls select { width: 100%; }
  .table-wrap { max-height: none; border: 0; overflow: visible; }
  .ref-table thead { display: none; }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td { display: block; width: 100%; }
  .ref-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fff !important; }
  .ref-table td { border: 0; padding: 4px 0; display: flex; gap: 12px; font-size: .88rem; }
  .ref-table td::before { content: attr(data-label); flex: 0 0 76px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  .ref-table td[data-label="No"] { display: none; }
  .map, .map iframe { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}
