/* ==========================================
   LOMA EATERY & SOCIAL SPACE - MODERN CSS
   ========================================== */

/* === RESET & VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #f5f5f0;
    --accent: #c9a96e;
    --accent-dark: #a88a59;
    --text: #2d2d2d;
    --text-light: #666;
    --green: #4a6741;
    --cream: #faf8f3;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 25px;
    background: var(--accent);
    color: white;
    border-radius: 25px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 110, 0.3);
}

.nav-cta::after {
    display: none;
}

#burger-menu {
    display: none;
}
/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f5f0 100%);
    padding: 140px 0 100px; /* aman untuk navbar fixed */
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    max-width: 1400px;
    padding: 0 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    padding: 16px 40px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* === HERO IMAGES === */
.hero-images {
    position: relative;
    height: 600px;
    margin-top: 40px;
}

.hero-img {
    position: absolute;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg);
    z-index: 10;
}

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

.hero-img:nth-child(1) {
    width: 350px;
    height: 450px;
    top: 40px;
    left: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero-img:nth-child(2) {
    width: 280px;
    height: 350px;
    bottom: 40px;
    right: 0;
    z-index: 2;
    animation: float 6s ease-in-out infinite 2s;
}

.hero-img:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 140px;
    right: 100px;
    z-index: 1;
    animation: float 6s ease-in-out infinite 4s;
}

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

/* === STATS SECTION === */
.stats {
    padding: 100px 60px;
    background: var(--primary);
    color: white;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}


/* === SECTION STYLES === */
section {
    padding: 120px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === FEATURES SECTION === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(201, 169, 110, 0.08); 
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--accent);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* === MENU SECTION === */
.menu-category-title {
    text-align: center;
    margin: 90px 0 40px;
    font-size: 2.625rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 1.2s ease forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.menu-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.menu-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

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

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-content {
    padding: 28px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.menu-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--primary);
}

.menu-price {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
}

.menu-desc {
    color: var(--text-light);
    margin-bottom: 18px;
}

.menu-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(201, 169, 110, 0.12);
    color: var(--accent);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

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

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

/* === TESTIMONIALS === */
.testimonials {
    background: white;
    border-radius: 40px;
    padding: 80px;
}

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

.testimonial-card {
    background: var(--cream);
    padding: 40px;
    border-radius: 25px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-info h5 {
    color: var(--primary);
    font-weight: 600;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(201, 169, 110, 0.3);
}

.info-details i {
    color: var(--accent);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.info-details h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.info-details p {
    color: var(--text-light);
    line-height: 1.8;
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.accent-link:hover {
    text-decoration: underline;
}

/* === MAP CONTAINER === */
.map-container {
    border-radius: 30px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === FOOTER === */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 60px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-links h4, .footer-brand h3 {
    color: #c9a96e;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #c9a96e;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #c9a96e;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ========================================== */

/* === TABLET LANDSCAPE (1200px and below) === */
@media (max-width: 1200px) {
    nav {
        padding: 15px 40px;
    }
    
    .hero-grid {
        gap: 60px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    section {
        padding: 100px 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* === TABLET PORTRAIT (992px and below) === */
@media (max-width: 992px) {
    #burger-menu {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
        z-index: 1002;
    }

    .nav-content {
        position: relative;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        padding: 20px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out;
    }

    .nav-links.active {
        display: flex;
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
        overflow: auto;
    }
    
    .nav-links a {
        padding: 15px 40px;
        text-align: left;
        width: 100%;
    }

    .nav-links .nav-cta {
        background: var(--accent);
        color: white !important;
        padding: 12px 20px;
        border-radius: 25px;
        text-align: center;
        margin: 10px 40px 0;
    }
    
    .nav-links .nav-cta:hover {
        background: var(--accent-dark);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-images {
        margin: 60px auto 0;
        height: 450px; /* Reduced height for tablet */
        width: 90%;   /* Use percentage for width */
        max-width: 500px; /* Max width to avoid being too large */
    }

    .hero-img:nth-child(1) {
        width: 70%; /* Use percentage */
        height: 80%;
        top: 0;
        left: 0;
    }

    .hero-img:nth-child(2) {
        width: 55%; /* Use percentage */
        height: 65%;
        bottom: 0;
        right: 0;
    }

    .hero-img:nth-child(3) {
        width: 40%; /* Use percentage */
        height: 40%;
        top: 25%;
        right: 20%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* === MOBILE (768px and below) === */
@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    section { padding: 80px 20px; }

    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { 
        flex-direction: column;
        align-items: center; /* Center items horizontally when flex-direction is column */
    }
    
    .stats { padding: 60px 20px; }
    .stat-number { font-size: 2.5rem; }

    .section-title { font-size: 2.2rem; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        padding: 40px 20px;
    }

    .contact-info {
        padding: 40px 30px;
    }

    .map-container { height: 400px; }

    .hero-images {
        height: 350px; /* Further reduce height for mobile */
        margin-top: 40px;
    }
}

/* === EXTRA SMALL (480px and below) === */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}
/* === EXTRA SMALL (480px and below) === */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* === LOADING SCREEN STYLES === */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream); /* Use your theme's background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.7s ease-out;
    opacity: 1; /* Initially visible */
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allows clicks on content below */
}

.loader {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif; /* Ensure font is applied */
}

.loader-logo span {
    color: var(--accent);
}

.loader-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif; /* Use your theme's body font */
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--accent);
    animation: loading-bar-animation 2s infinite ease-in-out;
    margin: 0 auto; /* Center the bar */
}

@keyframes loading-bar-animation {
    0% {
        width: 0;
        opacity: 0;
        transform: translateX(-75px);
    }
    25% {
        opacity: 1;
        width: 75px;
        transform: translateX(-37.5px);
    }
    50% {
        width: 150px;
        transform: translateX(0);
    }
    75% {
        opacity: 1;
        width: 75px;
        transform: translateX(37.5px);
    }
    100% {
        width: 0;
        opacity: 0;
        transform: translateX(75px);
    }
}