:root {
    --bg: #ffffff;
    --bg-crema: #f7f3ee;
    --espresso: #1c130e;
    --roast-mid: #2b1d15;
    --copper: #c26d2d;
    --copper-light: #e08e4b;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --text: #1f1712;
    --text-muted: #5c4e44;
    --border: #e5dcd2;
}

* {
    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: 'Fraunces', Georgia, serif;
    letter-spacing: -0.015em;
}

.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(28, 19, 14, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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: #ffffff;
}

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

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

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

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

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

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    background: var(--copper);
    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: #ffffff;
}

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

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

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

.text-cream {
    color: #faf6f2;
}

.sec-head {
    text-align: center;
    max-width: 720px;
    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(--copper);
    margin-bottom: 10px;
}

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

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

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

.bg-espresso .sec-head p {
    color: #d6ccc2;
}

/* =========================================================
   MENU 1: HOME (DARK ESPRESSO CENTERED HERO + BENTO GRID)
   ========================================================= */
.hero-roastery {
    padding: 136px 0 88px;
    background: radial-gradient(circle at top center, #362216 0%, var(--espresso) 75%);
    color: #ffffff;
}

.hero-center {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 52px;
}

.roast-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 142, 75, 0.14);
    border: 1px solid rgba(224, 142, 75, 0.38);
    color: #f4b17a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-center h1 {
    font-size: 3.15rem;
    line-height: 1.13;
    margin-bottom: 18px;
}

.copper-text {
    color: var(--copper-light);
}

.hero-lead {
    font-size: 1.05rem;
    color: #e3d8ce;
    margin-bottom: 30px;
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    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-copper {
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(194, 109, 45, 0.35);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

/* Social Row di Hero */
.hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.soc-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #b8aba0;
    font-weight: 700;
}

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

.soc-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.soc-btn:hover {
    background: var(--copper);
    border-color: var(--copper);
    transform: translateY(-3px);
}

/* Bento Grid Hero */
.hero-bento {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 20px;
}

.bento-main {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.bento-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(20, 13, 9, 0.95));
    padding: 36px 26px 24px;
}

.mono-copper {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f4b17a;
    margin-bottom: 4px;
}

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

.bento-overlay p {
    font-size: 0.86rem;
    color: #d6ccc2;
}

.bento-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-stat-card {
    background: var(--roast-mid);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-stat-card.copper-bg {
    background: linear-gradient(135deg, #8c4819, var(--copper));
    border-color: transparent;
}

.bs-num {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 4px;
}

.bento-stat-card strong {
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.bento-stat-card p {
    font-size: 0.82rem;
    color: #e3d8ce;
}

/* =========================================================
   MENU 2: TENTANG (REVERSE SPLIT + 5-STEP PIPELINE + TABS)
   ========================================================= */
.about-reverse-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
}

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

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

.cv-legal-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: var(--bg-crema);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 22px;
}

.cv-legal-box small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--copper);
    font-weight: 700;
    margin-bottom: 2px;
}

.cv-legal-box strong {
    font-size: 0.88rem;
    color: var(--espresso);
}

.about-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avs-top,
.avs-bottom div {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.avs-top {
    height: 245px;
}

.avs-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.avs-bottom div {
    height: 175px;
}

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

.avs-top:hover img,
.avs-bottom div:hover img {
    transform: scale(1.06);
}

.about-visual-stack span {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(28, 19, 14, 0.92));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 16px 12px 9px;
}

/* 5-Step Pipeline */
.pipeline-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pipe-step {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 22px 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pipe-step:hover {
    transform: translateY(-4px);
    border-color: var(--copper);
}

.step-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--espresso);
    color: #f4b17a;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.pipe-step h3 {
    font-size: 1.18rem;
    line-height: 1.22;
    margin-bottom: 8px;
}

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

/* Interactive Roast Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tab-btn {
    background: var(--bg-crema);
    border: 1.5px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text);
    transition: all 0.25s ease;
}

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

.tab-panel {
    display: none;
    background: var(--bg-crema);
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 36px;
}

.tab-panel.active {
    display: block;
}

.tp-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.tp-badge {
    display: inline-block;
    background: var(--copper);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tp-info h3 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

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

.tp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-list li {
    font-size: 0.9rem;
    color: var(--text);
    padding-left: 18px;
    position: relative;
}

.tp-list li::before {
    content: "•";
    color: var(--copper);
    font-weight: 900;
    position: absolute;
    left: 0;
}

.tp-visual img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 16px;
}

/* =========================================================
   MENU 3: LAYANAN (HORIZONTAL WIDE CARDS + ROAST CALCULATOR)
   ========================================================= */
.srv-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 48px;
}

.srv-wide-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.srv-wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(28, 19, 14, 0.08);
}

.swc-img img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.swc-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 6px;
}

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

.swc-content p {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.swc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.swc-moq {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--espresso);
}

.btn-detail {
    background: none;
    border: none;
    color: var(--copper);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

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

/* Roast Calculator Panel */
.roast-calc-panel {
    background: linear-gradient(135deg, var(--espresso), var(--roast-mid));
    color: #ffffff;
    border-radius: 22px;
    padding: 36px;
}

.rc-header {
    margin-bottom: 24px;
}

.rc-header h3 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.rc-header p {
    color: #d6ccc2;
    font-size: 0.94rem;
}

.rc-body {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.9fr 0.9fr;
    gap: 16px;
    align-items: end;
}

.rc-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f4b17a;
    margin-bottom: 6px;
}

.rc-field input,
.rc-field select {
    width: 100%;
    padding: 13px;
    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;
}

.rc-field select option {
    color: var(--espresso);
}

.rc-output {
    background: rgba(0, 0, 0, 0.32);
    border-radius: 12px;
    padding: 12px 16px;
}

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

.rc-output strong {
    font-size: 1.2rem;
    color: #ffffff;
}

/* =========================================================
   MENU 4: KONTAK (FORM DI KIRI, GOOGLE MAPS + SOSMED DI KANAN)
   ========================================================= */
.contact-split-new {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
}

.coffee-form {
    background: #ffffff;
    color: var(--text);
    border-radius: 22px;
    padding: 32px;
}

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

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

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

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

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

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

.roastery-map-panel {
    background: var(--roast-mid);
    border: 1px solid rgba(244, 177, 122, 0.25);
    border-radius: 22px;
    overflow: hidden;
}

.rmp-top {
    padding: 28px;
}

.rmp-top h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.rmp-addr {
    color: #e3d8ce;
    font-size: 0.93rem;
    margin-bottom: 20px;
}

.rmp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rmp-info-grid small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #f4b17a;
    margin-bottom: 4px;
}

.rmp-info-grid strong {
    font-size: 0.9rem;
}

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

.rmp-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;
}

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

.rmp-map iframe {
    display: block;
    width: 100%;
    height: 255px;
}

.btn-map-bar {
    display: block;
    text-align: center;
    background: #120b08;
    color: #f4b17a;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 12px;
    transition: background 0.2s ease;
}

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

/* Footer */
.footer {
    background: #120b08;
    color: #b8aba0;
    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: #f4b17a !important;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 19, 14, 0.8);
    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-crema);
    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-bento,
    .about-reverse-grid,
    .tp-grid,
    .contact-split-new {
        grid-template-columns: 1fr;
    }

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

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

    .rc-body {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

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

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

    .pipeline-row,
    .cv-legal-box,
    .avs-bottom,
    .rc-body,
    .cf-row,
    .rmp-info-grid {
        grid-template-columns: 1fr;
    }

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

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