:root {
    --bg: #ffffff;
    --bg-warm: #f8f6f2;
    --navy: #14213d;
    --navy-mid: #1f325c;
    --gold: #b47b34;
    --gold-bright: #d99b43;
    --sky: #3b82f6;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --text: #161e2e;
    --text-muted: #525d73;
    --border: #e2dfd7;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.66;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text strong {
    display: block;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.brand-text small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    color: var(--gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--gold);
    background: var(--bg-warm);
}

.nav-link.active {
    background: var(--navy);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--navy);
}

/* Sections */
.section {
    padding: 94px 0;
}

.bg-warm {
    background-color: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bg-navy {
    background-color: var(--navy);
}

.text-white {
    color: #ffffff;
}

.sec-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 52px;
}

.sec-kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 10px;
}

.sec-kicker.light {
    color: #f3c87b;
}

.sec-head h2 {
    font-size: 2.45rem;
    line-height: 1.16;
    margin-bottom: 12px;
}

.sec-head p {
    color: var(--text-muted);
}

.bg-navy .sec-head p {
    color: #cbd5e1;
}

/* =========================================================
   MENU 1: HOME
   ========================================================= */
.hero-section {
    padding: 132px 0 84px;
    background: radial-gradient(circle at top right, #f3efe6 0%, #ffffff 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3efe6;
    border: 1px solid #e2d7c1;
    color: #7c521c;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.dot-gold {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.hero-copy h1 {
    font-size: 3rem;
    line-height: 1.14;
    margin-bottom: 18px;
    color: var(--navy);
}

.accent-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.03rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(180, 123, 52, 0.3);
}

.btn-outline {
    background: var(--bg-warm);
    border: 1.5px solid var(--border);
    color: var(--navy);
}

.full-width {
    width: 100%;
}

/* Social Bar */
.social-bar {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.soc-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.soc-icons {
    display: flex;
    gap: 10px;
}

.soc-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.soc-link:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* Hero Visual Card */
.showcase-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: 0 24px 48px rgba(20, 33, 61, 0.12);
    background: #ffffff;
}

.showcase-card > img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    display: block;
}

.company-badge-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
}

.cb-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: var(--navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.mono-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2px;
}

.company-badge-strip h3 {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.company-badge-strip p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 4 KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kpi-item {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.kpi-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.kpi-val {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 6px;
}

.kpi-item strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.kpi-item p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* =========================================================
   MENU 2: TENTANG (4 Sub-Sections)
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.photo-mosaic {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pm-main,
.pm-sub div {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.pm-main {
    height: 245px;
}

.pm-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pm-sub div {
    height: 175px;
}

.photo-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.pm-main:hover img,
.pm-sub div:hover img {
    transform: scale(1.06);
}

.photo-mosaic span {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(20, 33, 61, 0.92));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 16px 12px 9px;
}

.about-text h2 {
    font-size: 2.35rem;
    line-height: 1.16;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.skill-tags span {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--navy);
}

/* 4 Grade Cards */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.grade-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.grade-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.gc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.gc-badge {
    background: var(--navy);
    color: #f3c87b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
}

.gc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.grade-card h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.grade-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.gc-foot {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
}

/* Spec Table */
.spec-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid var(--border);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 720px;
}

.spec-table th {
    background: var(--navy);
    color: #f3c87b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 16px 20px;
}

.spec-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spec-table td strong {
    color: var(--navy);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Legal & Timeline */
.legal-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lt-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: 16px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
}

.lt-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.lt-left strong {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.lt-right h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.lt-right h4 {
    font-size: 0.94rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.lt-right p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* =========================================================
   MENU 3: LAYANAN & KALKULATOR GROSIR
   ========================================================= */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.f-btn {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.f-btn:hover,
.f-btn.active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 48px;
}

.srv-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srv-card.hide {
    display: none;
}

.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(20, 33, 61, 0.1);
}

.srv-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.srv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.srv-card:hover .srv-img img {
    transform: scale(1.06);
}

.srv-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: #f3c87b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
}

.srv-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srv-body h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.srv-body p {
    font-size: 0.91rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-detail {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-detail:hover {
    text-decoration: underline;
}

/* Order Calculator */
.order-calc-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #ffffff;
    border-radius: 22px;
    padding: 38px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: center;
}

.oc-left h3 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.oc-left p {
    color: #cbd5e1;
    font-size: 0.94rem;
}

.oc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.oc-inputs label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #f3c87b;
}

.oc-inputs input,
.oc-inputs select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
}

.oc-inputs select option {
    color: var(--navy);
}

.oc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 16px 20px;
}

.oc-results small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #f3c87b;
    margin-bottom: 4px;
}

.oc-results strong {
    font-size: 1.35rem;
    color: #ffffff;
}

/* =========================================================
   MENU 4: KONTAK + GOOGLE MAPS + SOSMED
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: start;
}

.factory-map-card {
    background: var(--navy-mid);
    border: 1px solid rgba(243, 200, 123, 0.25);
    border-radius: 22px;
    overflow: hidden;
}

.fm-pad {
    padding: 28px;
}

.fm-pad h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.fm-addr {
    color: #e2e8f0;
    font-size: 0.94rem;
    margin-bottom: 22px;
}

.fm-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fm-meta small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #f3c87b;
    margin-bottom: 4px;
}

.fm-meta strong {
    font-size: 0.9rem;
}

.fm-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.fm-socials a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.fm-socials a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.fm-map iframe {
    display: block;
    width: 100%;
    height: 250px;
}

.btn-map-ext {
    display: block;
    text-align: center;
    background: #0c1426;
    color: #f3c87b;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 12px;
    transition: background 0.2s ease;
}

.btn-map-ext:hover {
    background: var(--gold);
    color: #ffffff;
}

/* Form Kontak */
.quote-form {
    background: #ffffff;
    color: var(--text);
    border-radius: 22px;
    padding: 32px;
}

.quote-form h3 {
    font-size: 1.55rem;
    margin-bottom: 18px;
}

.qf-group {
    margin-bottom: 15px;
}

.qf-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.qf-group input,
.qf-group select,
.qf-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.93rem;
}

.qf-group input:focus,
.qf-group select:focus,
.qf-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.qf-msg {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: #15803d;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #0c1426;
    color: #94a3b8;
    padding: 26px 0;
    font-size: 0.88rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.back-top {
    color: #f3c87b !important;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 33, 61, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

.modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-warm);
    font-weight: 800;
    cursor: pointer;
}

.modal-card h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.info-pill {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.modal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-wa-modal {
    background: #ecfdf5;
    border: 1.5px solid var(--wa);
    color: #065f46;
}

/* Floating WhatsApp Button di Pojok Kanan Bawah */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--wa), var(--wa-dark));
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.94rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
    z-index: 1500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-wa:hover {
    transform: translateY(-4px) scale(1.03);
}

.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid var(--wa);
    animation: waRipple 2s infinite;
    pointer-events: none;
}

@keyframes waRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .order-calc-box,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid,
    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .srv-grid {
        grid-template-columns: 1fr;
    }

    .lt-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 680px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .kpi-grid,
    .grade-grid,
    .pm-sub,
    .oc-inputs,
    .oc-results,
    .fm-meta {
        grid-template-columns: 1fr;
    }

    .footer-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .floating-wa {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
    }
}
