/* PT Besi Jaya Asia - public site styles */
:root {
    --primary: #123a5e;
    --secondary: #e07b1f;
    --accent: #0b1b2b;
    --ink: #1f2933;
    --muted: #667685;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(11, 27, 43, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--accent); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: .5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .8rem 1.5rem;
    border-radius: 6px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s ease;
}
.btn--primary { background: var(--secondary); color: #fff; }
.btn--primary:hover { background: #c9691a; color: #fff; }
.btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--block { display: block; text-align: center; }
.link { font-weight: 600; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 27, 43, .1); }

.topbar { background: var(--accent); color: #cdd8e3; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { color: #cdd8e3; margin-left: 1rem; }
.topbar a:hover { color: #fff; }
.topbar__login { color: var(--secondary) !important; font-weight: 600; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__mark {
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; letter-spacing: .04em;
}
.brand__text strong { display: block; color: var(--accent); font-size: 1.05rem; }
.brand__text small { color: var(--muted); font-size: .75rem; }

.nav__menu { display: flex; align-items: center; gap: 1.4rem; }
.nav__menu a { font-weight: 600; font-size: .92rem; color: var(--ink); }
.nav__menu a.is-active { color: var(--secondary); }
.nav__cta { color: #fff !important; }
.nav__checkbox, .nav__burger { display: none; }

/* Hero */
.hero { position: relative; min-height: 560px; background: var(--accent); overflow: hidden; }
.hero__slides { position: relative; min-height: 560px; }
.hero__slide {
    position: absolute; inset: 0;
    display: none;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 27, 43, .92), rgba(18, 58, 94, .75)), var(--accent);
    background-size: cover;
    background-position: center;
}
.hero__slide.is-active { display: flex; }
.hero__content { color: #fff; padding: 4.5rem 0; max-width: 720px; }
.hero__content h1 { color: #fff; }
.hero__content p { color: #d7e0ea; font-size: 1.08rem; margin-bottom: 1.6rem; }
.hero__eyebrow { color: var(--secondary); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
.hero__dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; }
.hero__dot { width: 30px; height: 4px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; border-radius: 2px; }
.hero__dot.is-active { background: var(--secondary); }

/* Stats */
.stats { background: var(--primary); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; text-align: center; }
.stats__grid strong { display: block; font-size: 2rem; color: #fff; }
.stats__grid span { font-size: .85rem; color: #c6d5e4; }

/* Sections */
.section { padding: 4.5rem 0; }
.section--muted { background: var(--bg-soft); }
.section__head { margin-bottom: 2.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card__icon {
    width: 46px; height: 46px; border-radius: 8px; margin-bottom: 1rem;
    background: rgba(224, 123, 31, .12); color: var(--secondary);
    display: grid; place-items: center; font-weight: 800;
}
.card--post { padding: 0; overflow: hidden; }
.card--post img { height: 190px; object-fit: cover; width: 100%; }
.card__pad { padding: 1.2rem 1.4rem 1.5rem; }
.card__pad small { color: var(--muted); font-size: .8rem; }

.tile { display: block; border-radius: var(--radius); overflow: hidden; background: var(--accent); position: relative; }
.tile img { height: 240px; width: 100%; object-fit: cover; opacity: .95; transition: .3s ease; }
.tile:hover img { transform: scale(1.04); opacity: .8; }
.tile__body { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(11, 27, 43, .92)); color: #fff; }
.tile__body strong { display: block; font-size: 1rem; }
.tile__body small { color: #c6d5e4; font-size: .82rem; }

.cta { background: var(--primary); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: #c6d5e4; margin: 0; }

.page-head { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; padding: 3.5rem 0; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: #c6d5e4; margin: 0; }

.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.sidebar { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.sidebar h4 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar__list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.sidebar__list li { border-bottom: 1px solid var(--line); padding: .55rem 0; font-size: .9rem; }
.sidebar__list--plain li { color: var(--muted); }

.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.2rem; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

.project__hero { border-radius: var(--radius); margin-bottom: 1.8rem; box-shadow: var(--shadow); }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Forms */
.form label { display: block; margin-bottom: 1.1rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
.form input[type="text"], .form input[type="email"], .form textarea {
    width: 100%; margin-top: .35rem; padding: .75rem .9rem;
    border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400;
    background: #fff;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hp { position: absolute; left: -9999px; }

.alert { border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: .92rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert--success { background: #e7f6ed; color: #1e6b3f; border: 1px solid #bfe4cd; }
.alert--error { background: #fdecec; color: #a12424; border: 1px solid #f3c9c9; }

.pagination { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--accent); color: #b9c6d4; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer a { color: #b9c6d4; }
.site-footer a:hover { color: var(--secondary); }
.footer__social { display: flex; gap: 1rem; margin-top: 1rem; font-size: .85rem; }
.footer__muted { font-size: .8rem; color: #7f8fa0; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; flex-wrap: wrap; }

@media (max-width: 900px) {
    .split, .layout-sidebar, .grid--2, .grid--3, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
    .stats__grid { gap: 1.5rem; }
    .nav__burger { display: block; position: relative; width: 40px; height: 34px; cursor: pointer; }
    .nav__burger span, .nav__burger span::before, .nav__burger span::after {
        content: ""; position: absolute; left: 8px; width: 24px; height: 2px; background: var(--accent);
    }
    .nav__burger span { top: 16px; }
    .nav__burger span::before { top: -8px; }
    .nav__burger span::after { top: 8px; }
    .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: flex-start; padding: 1.2rem 4%; border-bottom: 1px solid var(--line); }
    .nav__checkbox:checked ~ .nav__menu { display: flex; }
    .hero, .hero__slides { min-height: 460px; }
}
