:root {
    --bg: #fcfaf7;
    --bg-latte: #f4ede3;
    --espresso: #1a110b;
    --roast: #2e1d13;
    --copper: #b86b35;
    --copper-light: #d48349;
    --forest: #244a38;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --text: #1a110b;
    --text-muted: #5c4f45;
    --border: #e4d9cb;
    --radius: 20px;
}

* {
    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;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(26, 17, 11, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 131, 73, 0.35);
    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-name strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.brand-name small {
    font-size: 0.66rem;
    color: var(--copper-light);
    letter-spacing: 0.08em;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: #e6dcd0;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 999px;
    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: 96px 0;
}

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

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

.text-white {
    color: #ffffff;
}

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

.kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: var(--copper);
    margin-bottom: 10px;
}

.kicker.gold {
    color: #f3b583;
}

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

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

.bg-espresso .sec-header p {
    color: #d3c7b8;
}

/* =========================================================
   MENU 1: HOME
   ========================================================= */
.hero-section {
    position: relative;
    padding: 142px 0 96px;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: heroPan 20s infinite alternate ease-in-out;
    z-index: -2;
}

@keyframes heroPan {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(26, 17, 11, 0.94) 0%, rgba(46, 29, 19, 0.85) 58%, rgba(26, 17, 11, 0.92) 100%);
    z-index: -1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(184, 107, 53, 0.2);
    border: 1px solid rgba(212, 131, 73, 0.55);
    color: #f9cfa9;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.hero-main-text h1 {
    font-size: 3.15rem;
    line-height: 1.14;
    margin-bottom: 18px;
}

.hero-main-text h1 em {
    color: var(--copper-light);
    font-style: italic;
}

.hero-lead {
    font-size: 1.04rem;
    color: #e6dcd0;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.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 24px rgba(184, 107, 53, 0.35);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

/* Social Media Icons Bar di Hero */
.hero-socials {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.soc-caption {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #cbbba8;
    margin-bottom: 10px;
}

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

.soc-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    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);
}

/* Kartu Profil Roaster */
.roaster-card {
    background: #ffffff;
    color: var(--text);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.roaster-photo {
    position: relative;
    height: 270px;
    overflow: hidden;
}

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

.roaster-card:hover .roaster-photo img {
    transform: scale(1.05);
}

.roaster-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(26, 17, 11, 0.88);
    color: #f9cfa9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 8px;
}

.roaster-info {
    padding: 22px 24px 26px;
    text-align: center;
}

.roaster-info h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.role-sub {
    color: var(--copper);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.roaster-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.roaster-stats div {
    background: var(--bg-latte);
    border-radius: 12px;
    padding: 10px 6px;
}

.roaster-stats strong {
    display: block;
    font-size: 1.15rem;
    color: var(--espresso);
}

.roaster-stats span {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================================
   MENU 2: TENTANG & KATALOG BIJI KOPI
   ========================================================= */
.story-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

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

.gm-large,
.gm-small {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.gm-large {
    height: 255px;
}

.gm-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gm-small {
    height: 180px;
}

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

.gm-large:hover img,
.gm-small:hover img {
    transform: scale(1.06);
}

.gallery-mosaic span {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(26, 17, 11, 0.9));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 18px 14px 10px;
}

.story-copy h2 {
    font-size: 2.3rem;
    line-height: 1.18;
    margin-bottom: 16px;
}

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

.milestone-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ms-item {
    background: var(--bg-latte);
    border-left: 4px solid var(--copper);
    border-radius: 12px;
    padding: 14px 18px;
}

.ms-year {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 2px;
}

.ms-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

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

/* Katalog 4 Biji Kopi */
.beans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

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

.bean-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(26, 17, 11, 0.09);
}

.bean-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.bean-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roast-level {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 17, 11, 0.88);
    color: #f9cfa9;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}

.bean-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bean-body small {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--copper);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.bean-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.bean-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-grow: 1;
}

.bean-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--forest);
}

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

.filter-chip {
    background: var(--bg-latte);
    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;
}

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

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

.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(26, 17, 11, 0.1);
}

.srv-thumb {
    position: relative;
    height: 205px;
    overflow: hidden;
}

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

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

.srv-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--espresso);
    color: #f9cfa9;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
}

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

.srv-info h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

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

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

.btn-modal-open:hover {
    text-decoration: underline;
}

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

.location-card {
    background: var(--roast);
    border: 1px solid rgba(212, 131, 73, 0.35);
    border-radius: 22px;
    overflow: hidden;
}

.loc-details {
    padding: 28px;
}

.loc-details h3 {
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.loc-address {
    color: #e6dcd0;
    font-size: 0.94rem;
    margin-bottom: 22px;
}

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

.loc-meta-grid small {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f3b583;
    margin-bottom: 4px;
}

.loc-meta-grid strong {
    font-size: 0.9rem;
    color: #ffffff;
}

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

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

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

.map-frame {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.btn-open-maps {
    display: block;
    text-align: center;
    background: #140d08;
    color: #f9cfa9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px;
    transition: background 0.2s ease;
}

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

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

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

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

.cf-group label {
    display: block;
    font-size: 0.84rem;
    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.93rem;
    background: var(--bg);
}

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

.cf-status {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--forest);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #120b07;
    color: #cbbba8;
    padding: 26px 0;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.footer-socials a:hover,
.to-top {
    color: var(--copper-light);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 17, 11, 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-box {
    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-latte);
    font-weight: 800;
    cursor: pointer;
}

.modal-box h3 {
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.benefit-pill {
    display: inline-block;
    background: #ecfdf5;
    color: var(--forest);
    font-weight: 800;
    font-size: 0.84rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

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

.modal-actions {
    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);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.55);
}

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

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

/* Reveal Animation */
.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-wrapper,
    .story-grid,
    .contact-master-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        grid-template-columns: 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;
        display: none;
    }

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

    .hero-main-text h1 {
        font-size: 2.3rem;
    }

    .beans-grid,
    .gm-pair,
    .loc-meta-grid {
        grid-template-columns: 1fr;
    }

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

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