/* --- Global Resets & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-green: #0e3d26;
    --dark-green-soft: #14522f;
    --cream-bg: #fffcd1;
    --cream-card: #fffde2;
    --orange-primary: #ff9326;
    --orange-dark: #e57f18;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #706f5b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
}

/* --- Common UI Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-orange {
    background-color: var(--orange-primary);
    color: var(--text-light);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 147, 38, 0.35);
}

.btn-orange:hover {
    background-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 147, 38, 0.45);
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-content .btn {
    padding: 16px 36px;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

/* --- Scroll-reveal animation --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* --- Navbar (shared across pages) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar .logo {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
}

.navbar .logo a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    height: 42px;
    width: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    opacity: 0.9;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.current {
    background-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.95;
    padding: 9px 18px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Logged-in account chip (rendered by site.js) */
.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    background-color: rgba(255, 147, 38, 0.25);
    border: 1px solid rgba(255, 147, 38, 0.6);
}

.nav-logout-btn {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

/* --- Hero Section --- */
.hero-container {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.6)), url('image/story6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    min-height: 82vh;
    padding: 24px 80px;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 147, 38, 0.18);
    border: 1px solid rgba(255, 147, 38, 0.7);
    color: #ffd9a8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeIn 0.7s ease forwards;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    opacity: 0;
    animation: heroFadeIn 0.7s ease forwards;
    animation-delay: 0.15s;
    max-width: 900px;
}

.hero-content .hero-sub {
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 640px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    opacity: 0;
    animation: heroFadeIn 0.7s ease forwards;
    animation-delay: 0.3s;
}

/* Hero search bar */
.hero-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    animation: heroFadeIn 0.7s ease forwards;
    animation-delay: 0.45s;
}

.hero-search .search-glyph {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hero-search input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
}

.hero-search button {
    flex-shrink: 0;
    border: none;
    background: var(--orange-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-search button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.hero-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
    opacity: 0;
    animation: heroFadeIn 0.7s ease forwards;
    animation-delay: 0.6s;
}

.hero-quick-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.hero-quick-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Section shells --- */
.section {
    padding: 90px 80px;
}

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

.section-head h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--dark-green);
    margin-bottom: 14px;
}

.section-head p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- How it works --- */
.steps-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 38px 30px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(14, 61, 38, 0.07);
    border: 1px solid rgba(14, 61, 38, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(14, 61, 38, 0.12);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 147, 38, 0.14);
    color: var(--orange-dark);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Cuisine tiles --- */
.cuisine-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.cuisine-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
    text-decoration: none;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cuisine-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cuisine-tile:hover img {
    transform: scale(1.07);
}

.cuisine-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 14px 14px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

/* --- Featured restaurants --- */
.featured-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(14, 61, 38, 0.07);
    border: 1px solid rgba(14, 61, 38, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(14, 61, 38, 0.14);
}

.featured-card .thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.featured-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.featured-card .body {
    padding: 20px 22px 24px 22px;
}

.featured-card .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.featured-card .cuisine-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.featured-card .rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-green);
    background: rgba(14, 61, 38, 0.07);
    padding: 4px 10px;
    border-radius: 999px;
}

.featured-card .rating svg {
    color: #f5a623;
}

.featured-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.featured-card .hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2b8a3e;
}

/* --- Story Section --- */
.story-section {
    background-color: var(--cream-bg);
    padding: 90px 80px;
}

.story-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-text h2 {
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 620px;
    color: var(--dark-green);
}

.story-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 520px;
}

.story-image-container {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.story-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Testimonials --- */
.testimonial-section {
    background: var(--dark-green);
    color: var(--text-light);
}

.testimonial-section .section-head h2 {
    color: var(--text-light);
}

.testimonial-section .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.testimonial-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px 28px;
}

.testimonial-card .stars {
    color: #f5a623;
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.testimonial-card .who {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.testimonial-card .who strong {
    display: block;
    font-size: 0.92rem;
}

.testimonial-card .who span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- CTA band --- */
.cta-band {
    background: linear-gradient(120deg, var(--orange-primary), #ffb25e);
    border-radius: 28px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 48px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 44px rgba(255, 147, 38, 0.35);
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.cta-band p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

.cta-band .btn {
    background: var(--dark-green);
    color: #fff;
    text-decoration: none;
}

.cta-band .btn:hover {
    background: #0b3120;
    transform: translateY(-2px);
}

/* --- Footer Section --- */
.footer {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 70px 80px 40px 80px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand h3 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-brand h3 a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h3 img {
    height: 40px;
    width: 40px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icons a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.92rem;
    transition: opacity 0.2s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1280px;
    margin: 50px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* --- Responsive Layout Breaks --- */
@media (max-width: 992px) {
    .hero-container, .story-section, .footer, .section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-text h2, .story-text p {
        max-width: 100%;
    }

    .steps-grid, .featured-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .cuisine-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-container, .story-section, .footer, .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

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

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
        padding: 14px;
    }

    .hero-search input {
        width: 100%;
        padding: 8px 4px;
    }

    .hero-search button {
        width: 100%;
    }

    .footer-links {
        gap: 30px;
    }
}
