/* ============================================================
   Homepage styles  (css/home.css)
   Depends on the shared tokens in css/main.css
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 96px 28px;
    /* Darker, more even overlay so the text stays easy to read over the photo */
    background:
        linear-gradient(180deg, rgba(23, 11, 7, 0.88) 0%, rgba(23, 11, 7, 0.8) 55%, var(--bg-0) 100%),
        url('../images/street-lok-lok-stall.jpg') center / cover no-repeat;
}

.hero-inner {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber-soft);
    border: 1px solid rgba(255, 167, 51, 0.5);
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 10px;
    margin-bottom: 26px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.12s;
}

.hero-sub {
    /* Brighter than the muted grey so it reads clearly over the photo */
    font-size: 1.1rem;
    color: #eef1ec;
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 38px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.24s;
}

/* Hero search bar */
.hero-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 7px 7px 20px;
    gap: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.36s;
    transition: border-color 0.2s ease;
}

.hero-search:focus-within {
    border-color: var(--amber);
}

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

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

.hero-search input::placeholder {
    color: var(--muted);
}

.hero-search .btn {
    padding: 12px 26px;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.48s;
}

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

.step-card {
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: var(--amber-soft);
    color: var(--amber);
    margin-bottom: 18px;
    transition: transform 0.25s ease;
}

.step-card:hover .step-icon { transform: scale(1.1) rotate(-4deg); }

/* Search, Locate, Feast - one food colour each */
.steps-grid .step-card:nth-child(2) .step-icon { background: var(--herb-soft); color: var(--herb); }
.steps-grid .step-card:nth-child(3) .step-icon { background: var(--chili-soft); color: var(--chili); }

.step-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

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

.cuisine-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    display: block;
    border: 1px solid var(--line);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.cuisine-tile:hover {
    transform: translateY(-3px) scale(1.01);
}

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

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

.cuisine-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 12px 12px 12px;
    background: linear-gradient(transparent, rgba(23, 11, 7, 0.92));
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

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

.featured-card {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.featured-card .thumb {
    position: relative;
    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.05);
}

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

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

.featured-card .cuisine-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--herb);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.featured-card .body p {
    font-size: 0.87rem;
    color: var(--muted);
}

.featured-more {
    text-align: center;
    margin-top: 44px;
}

/* ---------- Story banner ---------- */
.story-banner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.story-banner .eyebrow {
    display: inline-block;
    color: var(--herb);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.story-banner h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.story-banner p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.story-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}

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

/* ---------- Testimonials ---------- */
.testimonial-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    padding: 32px 30px;
}

.testimonial-card .stars {
    color: var(--amber);
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--cream);
    opacity: 0.92;
    margin-bottom: 18px;
}

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

.testimonial-card .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amber-soft);
    border: 1px solid rgba(255, 167, 51, 0.4);
    color: var(--amber);
    font-weight: 800;
    font-size: 0.85rem;
}

/* Reviewer avatars cycle through the food palette */
.testimonial-grid .testimonial-card:nth-child(2) .avatar {
    background: var(--herb-soft);
    border-color: rgba(168, 208, 124, 0.4);
    color: var(--herb);
}
.testimonial-grid .testimonial-card:nth-child(3) .avatar {
    background: var(--chili-soft);
    border-color: rgba(255, 122, 92, 0.4);
    color: var(--chili);
}

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

.testimonial-card .who span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    padding: 72px 44px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 160% at 50% 0%, rgba(255, 167, 51, 0.16) 0%, transparent 60%),
        var(--bg-2);
    border: 1px solid rgba(255, 167, 51, 0.25);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-band p {
    color: var(--muted);
    margin-bottom: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .steps-grid, .featured-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 20px;
    }

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

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

@media (max-width: 576px) {
    /* Smaller hero type and controls, with a bit more room around each */
    .hero { min-height: 0; padding: 64px 20px 56px 20px; }
    .hero-badge { font-size: 0.72rem; padding: 7px 15px; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); margin-bottom: 16px; }
    .hero-sub { font-size: 1rem; margin-bottom: 28px; }
    .hero-chips { margin-top: 20px; gap: 7px; }

    .step-card { padding: 30px 24px; }
    .step-icon { width: 50px; height: 50px; margin-bottom: 16px; }
    .step-card h3 { font-size: 1.04rem; }
    .step-card p { font-size: 0.88rem; }

    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cuisine-tile span { font-size: 0.84rem; padding: 28px 10px 10px 10px; }

    .featured-card .body { padding: 16px 18px 20px 18px; }
    .featured-card h3 { font-size: 1.08rem; }
    .featured-card .body p { font-size: 0.84rem; }

    .testimonial-card { padding: 24px 22px; }
    .testimonial-card blockquote { font-size: 0.9rem; margin-bottom: 20px; }

    .cta-band { padding: 48px 24px; }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
    }

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

    .hero-search .btn {
        width: 100%;
        justify-content: center;
    }
}
