/* 
    Macha, Jom Tapau! - Global Styles
    Main Colors: 
    - Olive Green: #6B8E23 (Primary)
    - Dark Green: #3D550C (Secondary)
    - Golden Yellow: #F0C419 (Accent)
    - Text: #2C2C2C 
    - Background: #FDFDFD
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --primary: #6B8E23;
    --primary-dark: #3D550C;
    --accent: #F0C419;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --bg-main: #FFFFFF;
    --bg-soft: #F9F9F4;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--strip-height, 0);
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', serif;
}

/* Typography Helpers */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 142, 35, 0.3);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-main);
}

.btn-accent:hover {
    background-color: #dcb316;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(240, 196, 25, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

/* Navbar */
nav {
    position: fixed;
    top: var(--strip-height, 0);
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.8rem 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

nav.scrolled .brand-name {
    color: var(--primary-dark);
}

nav.scrolled .nav-links a {
    color: var(--text-main);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: white; /* White by default on Hero */
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle {
    display: none;
    z-index: 1002;
}

.nav-links a {
    text-decoration: none;
    color: white; /* White by default on Hero */
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0 8%;
    position: relative;
    color: white;
    gap: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-btns-grid {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btns-grid .btn {
    min-width: unset;
}

.btn-icon {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

#hero-rating {
    order: 1;
}

.hero h1 {
    order: 2;
}

.hero p {
    order: 3;
}

.hero-btns-grid {
    order: 4;
}

.hero-visual {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-visual img {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--text-main);
    transform: translateY(-5px);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Menu Section */
.menu-section {
    padding: 8rem 5%;
    background: var(--bg-soft);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.menu-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-10px);
}

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

.menu-info {
    padding: 2rem;
}

.menu-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Locations & Info */
.info-section {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.map-embed {
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 6rem 5% 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

.detail-label {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.ordering-partner-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.ordering-partner-section span {
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ordering-partner-section img {
    height: 35px;
}

.developed-by {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.developed-by a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--accent);
    color: var(--text-main);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.footer-links a i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

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

.quick-links li {
    margin-bottom: 1rem;
}

.quick-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.quick-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 8px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2100;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: var(--transition);
}

.fab i {
    font-size: 1.5rem;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-call { background: var(--primary); }
.fab-order { background: var(--accent); color: var(--text-main); }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.3rem; }
    .section-title { font-size: 2.5rem; }
    .info-section { gap: 2rem; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        order: 2;
    }

    nav.scrolled .menu-toggle {
        color: var(--text-main);
    }

    .brand-name {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .logo-container img {
        height: 45px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: white !important;
    }

    /* Hero Responsive */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 5%;
        padding-top: calc(var(--strip-height, 42px) + 70px);
        padding-bottom: 30px;
        min-height: 100dvh;
        height: auto;
        gap: 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        order: 2;
        text-align: center;
        align-items: center;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns-grid {
        gap: 0.8rem;
        justify-content: center;
    }

    #hero-rating {
        order: 10;
        margin-top: 1.2rem;
        margin-bottom: 0;
    }

    #hero-rating {
        order: 10;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .hero-btns-grid {
        order: 5;
    }

    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    
    .hero-btns-grid {
        justify-content: center;
    }

    .hero-btns-grid .btn {
        width: 100%;
    }

    .btn-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    /* Layout Sections */
    .info-section {
        grid-template-columns: 1fr;
        padding: 4rem 5%;
    }

    .map-embed {
        height: 350px;
        order: 2;
    }

    .info-content {
        order: 1;
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
    }

    .info-content h2 { font-size: 2.5rem; }

    /* Floating Buttons */
    .floating-actions {
        bottom: 20px;
        right: 20px;
        flex-direction: row;
    }

    .fab {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 2.5rem;
    }

    .hours-col {
        display: none;
    }

    .brand-col {
        grid-column: span 2;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .footer-links, .footer-partner-logos {
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .btn { padding: 0.7rem 1.5rem; }
}

/* Animations Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

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