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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #d4a574;
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    margin-left: auto; /* push to the right in the flex container */
    align-self: center;
    z-index: 1100; /* stay above mobile panel */
}
.hamburger .hamburger-box {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 16px;
}
.hamburger .hamburger-inner,
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
    display: block;
    background: #fff;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger .hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger .hamburger-inner::before {
    content: "";
    top: -8px;
}
.hamburger .hamburger-inner::after {
    content: "";
    top: 8px;
}

/* Mobile nav (dropdown panel) */
nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* The dropdown panel styles are applied inside the mobile media query below */

@media (max-width: 768px) {
    .hamburger {
        display: inline-block;
        background: #fff;
        border-radius: 8px;
        padding: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        margin-right: 6px;
    }
    nav ul {
        display: none;
    }

    /* Dropdown panel */
    nav .nav-links {
        display: none; /* hidden by default on mobile */
        position: absolute;
        top: calc(100% + 8px);
        right: 1rem;
        width: 220px;
        background: #fff;
        color: #222;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        transform-origin: top right;
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        transition: opacity 0.22s ease, transform 0.22s ease;
        z-index: 1050;
    }
    nav.open .nav-links.open {
        display: block;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    nav .nav-links li {
        margin: 0.5rem 0;
    }
    nav .nav-links li a {
        color: #222;
        font-size: 0.95rem;
        display: block;
        padding: 0.45rem 0.25rem;
        text-decoration: none;
    }

    /* refined hamburger inner lines */
    .hamburger .hamburger-box {
        width: 18px;
        height: 12px;
    }
    .hamburger .hamburger-inner,
    .hamburger .hamburger-inner::before,
    .hamburger .hamburger-inner::after {
        background: #222;
        height: 1px;
    }
    .hamburger .hamburger-inner::before { top: -5px; }
    .hamburger .hamburger-inner::after { top: 5px; }

    /* Subtle overlay to capture clicks outside panel */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.04);
        z-index: 900; /* below the nav so dropdown links are clickable */
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .nav-overlay.show {
        display: block;
        opacity: 1;
    }
} 

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fefefe; /* Light background to match the hero */
    display: flex;
    flex-direction: column; /* Stack text and loader vertically */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    gap: 20px; /* Space between text and loader */
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: 'Playfair Display', serif; /* Use a similar elegant font */
    font-size: 3em;
    font-weight: bold;
    color: #FF0000; /* Red color */
    letter-spacing: 3px;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #FF0000; /* Red */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================
   GLOBAL FIX (WAJIB)
===================== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

/* =====================
   HERO SECTION (FIX HEADER + SCROLL)
===================== */

.hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: calc(100vh - 70px);
    padding: 90px 8% 60px; /* aman dari navbar */

    gap: 3rem;
    box-sizing: border-box;
    overflow: visible; /* JANGAN hidden */
}

.hero-left {
    flex: 1;
}

/* =====================
   TEXT
===================== */

.est-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 1rem;
}

.hero-left h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.red-text {
    color: #c1121f;
}

.description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2.2rem;
    max-width: 520px;
}
/* =====================
   GLOBAL FIX
===================== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* =====================
   HERO SECTION (PROPORSI PAS)
===================== */

.hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: calc(100vh + 20px); /* 🔥 PAS: tidak gantung, tidak kepanjangan */
    padding: 100px 8% 80px;         /* atas & bawah seimbang */

    gap: 3rem;
    box-sizing: border-box;
}

/* =====================
   LEFT
===================== */

.hero-left {
    flex: 1;
}

/* =====================
   TEXT
===================== */

.est-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 1rem;
}

.hero-left h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.red-text {
    color: #c1121f;
}

.description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

/* =====================
   BUTTON
===================== */

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    width: 200px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    border-radius: 10px;
    transition: 0.3s ease;
}

.btn-gradient {
    background: linear-gradient(135deg, #e63946, #b11226);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #c1121f;
    border: 2px solid #c1121f;
}

/* =====================
   HERO IMAGE (DESKTOP KECIL & RAPI)
===================== */

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 240px; /* 🔥 pas: tidak mendominasi */
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

/* =====================
   SCROLL INDICATOR
===================== */

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 0.75rem;
    color: #888;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: #aaa;
    margin: 0.5rem auto 0;
    animation: scrollLine 1.6s infinite;
}

/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        min-height: 100vh;
        padding: 100px 6% 60px;
        text-align: center;
    }

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

    .description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 210px;
    }

    .hero-right {
        margin-top: 2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 300px; /* 🔥 mobile tetap besar & cakep */
        border-radius: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* =====================
   ANIMATION
===================== */

@keyframes scrollLine {
    0%   { height: 0; opacity: 0; }
    50%  { height: 40px; opacity: 1; }
    100% { height: 0; opacity: 0; }
}


/* =========================
   ABOUT SECTION (SAFE)
========================= */
.about {
    padding: 5rem 2rem;
    background: #f9f9f9;
    scroll-margin-top: 80px; /* FIX anchor navbar */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #d4a574;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-info {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.about-info:hover {
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.about-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.about-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Menu Section */
.menu {
    padding: 5rem 2rem;
    background: #fff;
}

.menu-category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: #d4a574;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d4a574;
    display: inline-block;
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-item-content {
    padding: 0.5rem 1rem 0.25rem 1rem;
}

.menu-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.menu-item .price {
    color: #d4a574;
    font-weight: bold;
    font-size: 1.3rem;
}

.menu-item .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}
/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #d4a574;
}

.contact-info .info-item {
    margin-bottom: 1.5rem;
}

.contact-info .info-item h4 {
    color: #d4a574;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-info .info-item p {
    line-height: 1.6;
}

/* WhatsApp Styling */
.whatsapp-link {
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;

    /* warna khas WhatsApp */
    background: linear-gradient(
        45deg,
        #25D366,
        #1ebe5d,
        #128C7E
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.whatsapp-link:hover {
    opacity: 0.85;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(
        45deg,
        #25D366,
        #1ebe5d,
        #128C7E
    );
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.35);
}


.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.contact-map iframe {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.instagram-link {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;

    background: linear-gradient(
        45deg,
        #f58529,
        #dd2a7b,
        #8134af,
        #515bd4
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-map iframe {
        height: 300px;
    }
}

/* Footer */
.site-footer {
    background: #0f0f10;
    color: #dcdcdc;
    padding: 3.5rem 0 1.5rem;
    font-size: 0.95rem;
}

.site-footer .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-col h4,
.site-footer h3 {
    color: #d4a574;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.site-footer .about-text {
    color: #cfcfcf;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Ensure footer-about doesn't inherit the page .about (which has white bg) */
.site-footer .footer-about {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Slightly dim the social circle background to blend with footer */
.site-footer .social { background: rgba(255,255,255,0.03); }

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin: 0.4rem 0;
}

.footer-links-list a {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links-list a:hover {
    color: #d4a574;
}

.socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.12s ease, background 0.12s ease;
}

.social:hover { transform: translateY(-3px); background: rgba(212,165,116,0.12);} 

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.footer-bottom .heart { color: #e25555; margin: 0 6px; }

/* Responsive */
@media (max-width: 900px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-col {
        text-align: center; /* Center content when columns stack */
    }
    .socials {
        justify-content: center; /* Center social icons when columns stack */
    }
}

@media (max-width: 560px) {
    .footer-cols { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 2rem; }
    .social { width: 34px; height: 34px; }
    .footer-col {
        text-align: center; /* Center content when columns stack */
    }
    .socials {
        justify-content: center; /* Center social icons when columns stack */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

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

    .about-content,
    .location-content {
        grid-template-columns: 1fr;
    }

    .menu-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .location iframe {
        height: 300px;
    }

    .footer-content {
        text-align: center;
    }
}