:root {
    --bg: #fdfbf7;
    --bg-warm: #f5efe6;
    --espresso: #1c140d;
    --tobacco: #3b2616;
    --gold: #c88a2b;
    --gold-light: #e5a93c;
    --emerald: #1f513f;
    --text: #1c140d;
    --text-muted: #5c4d40;
    --border: #e2d6c5;
    --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.65;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Cinzel', 'Plus Jakarta Sans', serif;
}

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

/* Navbar (4 Menu: Home, Tentang, Layanan, Kontak) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(28, 20, 13, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.brand span:last-child {
    color: var(--gold-light);
}

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

.nav-link {
    text-decoration: none;
    color: #e7dccb;
    font-weight: 700;
    font-size: 0.94rem;
    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(--gold);
    color: var(--espresso);
}

.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-warm {
    background-color: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.sec-tag {
    display: inline-block;
    background: var(--espresso);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sec-tag.tag-gold {
    background: rgba(200, 138, 43, 0.2);
    border: 1px solid rgba(200, 138, 43, 0.45);
}

.section-header h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

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

/* Menu 1: Home / Hero dengan Background Foto Asli */
.hero-section {
    position: relative;
    padding-top: 138px;
    padding-bottom: 0;
    color: #ffffff;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(28, 20, 13, 0.94) 0%, rgba(59, 38, 22, 0.86) 55%, rgba(28, 20, 13, 0.92) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200, 138, 43, 0.16);
    border: 1px solid rgba(229, 169, 60, 0.5);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

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

.hero-content h1 {
    font-size: 2.85rem;
    line-height: 1.18;
    margin-bottom: 18px;
}

.gold-text {
    color: var(--gold-light);
    transition: opacity 0.25s ease;
}

.hero-desc {
    font-size: 1.04rem;
    color: #e7dccb;
    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-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--espresso);
    box-shadow: 0 10px 24px rgba(200, 138, 43, 0.35);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

.spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-pills span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f3eadc;
}

/* Kartu Profil Foto Asli */
.hero-card-wrap {
    position: relative;
}

.float-stat {
    position: absolute;
    background: var(--espresso);
    border: 1.5px solid var(--gold);
    color: #fde68a;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    animation: floatPulse 3.6s infinite ease-in-out;
}

.fs-1 { top: -14px; left: -14px; }
.fs-2 { top: 44%; right: -18px; animation-delay: 1.1s; }
.fs-3 { bottom: -14px; left: 16px; animation-delay: 2.2s; }

@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.profile-photo-card {
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--gold);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.photo-frame {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.photo-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(28, 20, 13, 0.88);
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 8px;
}

.profile-meta {
    padding: 20px 22px 24px;
    text-align: center;
}

.profile-meta h3 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.profile-meta .subtitle {
    color: var(--emerald);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

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

.st-box {
    background: var(--bg-warm);
    border-radius: 12px;
    padding: 10px 8px;
}

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

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

/* Gold Ticker */
.gold-ticker {
    background: var(--gold);
    color: var(--espresso);
    padding: 13px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-flow {
    display: inline-flex;
    gap: 28px;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.94rem;
    letter-spacing: 0.05em;
    animation: tickerRoll 24s linear infinite;
}

@keyframes tickerRoll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Menu 2: Tentang & Kolase Foto Asli */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

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

.collage-main, .collage-sub {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: 0 14px 32px rgba(28, 20, 13, 0.08);
}

.collage-main {
    height: 250px;
}

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

.collage-sub {
    height: 175px;
}

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

.collage-main:hover img,
.collage-sub:hover img {
    transform: scale(1.07);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(28, 20, 13, 0.9));
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 18px 14px 10px;
}

.about-details h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

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

.career-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    background: #ffffff;
    border-left: 4px solid var(--gold);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.25s ease;
}

.step-card:hover {
    transform: translateX(6px);
}

.step-year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 4px;
}

.step-card h4 {
    font-size: 1.06rem;
    margin-bottom: 2px;
}

.step-card small {
    display: block;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Menu 3: Layanan */
.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: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.f-btn:hover,
.f-btn.active {
    background: var(--espresso);
    color: var(--gold-light);
    border-color: var(--espresso);
}

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

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

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

.service-card:hover {
    box-shadow: 0 18px 38px rgba(28, 20, 13, 0.12);
}

.card-img-box {
    position: relative;
    height: 215px;
    overflow: hidden;
}

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

.service-card:hover .card-img-box img {
    transform: scale(1.07);
}

.cat-label {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(28, 20, 13, 0.88);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
}

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

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

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

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

/* Menu 4: Kontak */
.contact-panel {
    background: linear-gradient(135deg, var(--espresso), var(--tobacco));
    color: #ffffff;
    border-radius: 26px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
    border-bottom: 5px solid var(--gold);
}

.contact-left h2 {
    font-size: 2.15rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.contact-left p {
    color: #e7dccb;
    margin-bottom: 28px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 18px;
    border-radius: 14px;
}

.c-item span {
    font-size: 1.4rem;
}

.c-item strong {
    display: block;
    font-size: 0.95rem;
}

.c-item small {
    color: #e7dccb;
    font-size: 0.84rem;
}

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

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}

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

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

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

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

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

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.back-home {
    text-decoration: none;
    font-weight: 800;
    color: var(--espresso);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 13, 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-close {
    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.45rem;
    margin-bottom: 10px;
}

.metric-pill {
    display: inline-block;
    background: #ecfdf5;
    color: var(--emerald);
    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;
}

/* Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

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

/* Responsive */
@media (max-width: 920px) {
    .hero-grid,
    .about-layout,
    .services-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 32px 24px;
    }
}

@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-content h1 {
        font-size: 2.15rem;
    }

    .float-stat {
        display: none;
    }

    .collage-sub-row {
        grid-template-columns: 1fr;
    }

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