:root {
    --bg: #faf8f5;
    --bg-ivory: #f2ece1;
    --espresso: #1b1714;
    --olive: #2c3e2e;
    --gold: #a67c37;
    --gold-bright: #c59b4c;
    --text: #1b1714;
    --text-muted: #595149;
    --border: #dcd3c4;
    --wa: #1f8f4e;
}

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

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

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

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
}

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

/* Top Editorial Notice */
.top-notice {
    background: var(--espresso);
    color: #d6cbb9;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(166, 124, 55, 0.35);
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 78px;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(10px);
    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(--espresso);
}

.brand-monogram {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gold);
    background: var(--espresso);
    color: var(--gold-bright);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.brand-text small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.06em;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--espresso);
}

.nav-link.active {
    color: var(--espresso);
    font-weight: 800;
    border-bottom-color: var(--gold);
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--espresso);
}

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

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

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

.text-light {
    color: #f6f2eb;
}

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

.sec-kicker.gold {
    color: var(--gold-bright);
}

.section-header-left {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-header-left h2,
.section-header-center h2 {
    font-size: 2.65rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-header-left p,
.section-header-center p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.bg-espresso .section-header-center p {
    color: #c5bcad;
}

.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

/* =========================================================
   MENU 1: HOME (Editorial Split & Metrics Strip)
   ========================================================= */
.hero-section {
    padding: 64px 0 84px;
}

.hero-editorial-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--olive);
    margin-bottom: 18px;
}

.line-gold {
    width: 36px;
    height: 2px;
    background: var(--gold);
}

.hero-left h1 {
    font-size: 3.45rem;
    line-height: 1.1;
    margin-bottom: 22px;
    color: var(--espresso);
}

.hero-left h1 em {
    color: var(--gold);
    font-style: italic;
}

.hero-summary {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.btn-dark {
    background: var(--espresso);
    color: #ffffff;
}

.btn-dark:hover {
    background: var(--olive);
}

.btn-outline {
    border-color: var(--espresso);
    color: var(--espresso);
    background: transparent;
}

.btn-outline:hover {
    background: var(--espresso);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

.hero-specialties {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

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

.hero-specialties p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--espresso);
}

/* Portrait Frame */
.portrait-frame {
    position: relative;
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 24px 48px rgba(27, 23, 20, 0.08);
}

.portrait-frame img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.03);
}

.portrait-overlay-card {
    background: var(--espresso);
    color: #ffffff;
    padding: 20px 22px;
    margin-top: 14px;
}

.badge-gold {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold-bright);
    margin-bottom: 4px;
}

.portrait-overlay-card h3 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.portrait-overlay-card p {
    font-size: 0.84rem;
    color: #cfc6b8;
}

/* 4 Metrik Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    background: #ffffff;
}

.metric-box {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
}

.metric-box:last-child {
    border-right: none;
}

.metric-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-box strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.metric-box p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================
   MENU 2: TENTANG (Multi-Section)
   ========================================================= */
.about-intro-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 54px;
    align-items: center;
}

.about-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stack-img-top,
.stack-img-bottom {
    position: relative;
    background: #ffffff;
    padding: 10px;
    border: 1px solid var(--border);
}

.stack-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.stack-img-bottom img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.stack-img-top span,
.stack-img-bottom span {
    display: block;
    padding-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-narrative h2 {
    font-size: 2.45rem;
    line-height: 1.16;
    margin-bottom: 18px;
}

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

.cert-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 26px;
}

.cert-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--olive);
    padding: 14px 16px;
}

.cert-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cert-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section 2B: Interactive 6-Step Workflow */
.workflow-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.wf-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 11px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wf-btn:hover {
    border-color: var(--espresso);
    color: var(--espresso);
}

.wf-btn.active {
    background: var(--espresso);
    color: var(--gold-bright);
    border-color: var(--espresso);
}

.workflow-display {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #ffffff;
    border: 1px solid var(--border);
}

.wf-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wf-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--olive);
    margin-bottom: 10px;
}

.wf-text h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

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

.wf-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.wf-params small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold);
    margin-bottom: 4px;
}

.wf-params strong {
    font-size: 0.9rem;
}

.wf-image {
    height: 360px;
    overflow: hidden;
}

.wf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

/* Section 2C: Varietas Tembakau */
.variety-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.var-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 155, 76, 0.3);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.var-top {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-bright);
    margin-bottom: 14px;
}

.var-card h3 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.var-card p {
    font-size: 0.9rem;
    color: #cfc6b8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.var-specs {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: #a3b8a6;
}

/* Section 2D: Career Table */
.career-table {
    border-top: 1.5px solid var(--espresso);
}

.career-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.c-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.c-role h3 {
    font-size: 1.65rem;
    margin-bottom: 4px;
}

.c-role h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--olive);
    margin-bottom: 10px;
}

.c-role p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 760px;
}

/* =========================================================
   MENU 3: LAYANAN & KALKULATOR
   ========================================================= */
.service-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.sf-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.srv-box {
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.srv-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(27, 23, 20, 0.08);
}

.srv-photo {
    position: relative;
    height: 210px;
    overflow: hidden;
}

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

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

.srv-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--espresso);
    color: var(--gold-bright);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
}

.srv-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srv-content h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.srv-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.srv-content ul {
    list-style: none;
    margin-bottom: 22px;
    flex-grow: 1;
}

.srv-content ul li {
    position: relative;
    padding-left: 18px;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.srv-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.btn-detail-modal {
    align-self: flex-start;
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 2px;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--espresso);
    cursor: pointer;
}

/* Kalkulator Cut-Filler */
.calculator-card {
    background: var(--olive);
    color: #ffffff;
    padding: 40px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.calc-info .sec-kicker {
    color: #d4e3d6;
}

.calc-info h3 {
    font-size: 2.1rem;
    line-height: 1.18;
    margin-bottom: 12px;
}

.calc-info p {
    color: #d4e3d6;
    font-size: 0.95rem;
}

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

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

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

.calc-inputs select option {
    color: var(--espresso);
}

.calc-output {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.24);
    padding: 18px;
}

.calc-output small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: #b8ccb9;
    margin-bottom: 4px;
}

.calc-output strong {
    font-size: 1.2rem;
    color: #fde68a;
}

/* =========================================================
   MENU 4: KONTAK
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-details h2 {
    font-size: 2.45rem;
    line-height: 1.16;
    margin-bottom: 16px;
}

.contact-details > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-list-box {
    border-top: 1px solid var(--border);
}

.cl-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
}

.cl-row a,
.cl-row span:last-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--espresso);
    text-decoration: none;
}

.cl-row a:hover {
    color: var(--gold);
}

.editorial-form {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 36px;
}

.editorial-form h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.ef-group {
    margin-bottom: 16px;
}

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

.ef-group input,
.ef-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 0.94rem;
}

.ef-group input:focus,
.ef-group textarea:focus {
    outline: none;
    border-color: var(--espresso);
    background: #ffffff;
}

.ef-feedback {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--olive);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--espresso);
    color: #cfc6b8;
    padding: 30px 0;
    font-size: 0.88rem;
}

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

.back-top {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 700;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 23, 20, 0.76);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

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

.modal-dialog {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    padding: 36px;
    position: relative;
    border-top: 4px solid var(--gold);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-weight: 700;
}

.modal-dialog h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-kpi {
    background: var(--bg-ivory);
    color: var(--olive);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
    margin-bottom: 14px;
}

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

/* Floating WhatsApp Minimalis */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--wa);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(31, 143, 78, 0.35);
    z-index: 1500;
    transition: transform 0.25s ease;
}

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

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

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

/* Responsive */
@media (max-width: 980px) {
    .hero-editorial-grid,
    .about-intro-grid,
    .workflow-display,
    .calculator-card,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .metric-box:nth-child(2) {
        border-right: none;
    }

    .metric-box:nth-child(1),
    .metric-box:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

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

    .services-bento-grid {
        grid-template-columns: 1fr;
    }

    .career-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 680px) {
    .top-notice {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .metrics-strip,
    .variety-grid,
    .cert-grid-mini,
    .calc-inputs,
    .calc-output,
    .wf-params {
        grid-template-columns: 1fr;
    }

    .metric-box {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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