/* ============================================================
   Home page — Card-over-image hero, stats bar, menu highlights,
   asymmetric gallery, testimonials with stars, CTA block.
   ============================================================ */

/* --- Hero: Full image with floating content card --- */

.hero {
    position: relative;
    background: var(--color-primary);
}

.hero-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.hero-card {
    background: var(--color-background);
    padding: 2rem 1.25rem 2.5rem;
}

.hero-card-inner {
    max-width: 560px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-area {
    font-size: 0.875rem;
    color: var(--color-text_muted);
}

@media (min-width: 768px) {
    .hero {
        min-height: 540px;
        display: flex;
        align-items: stretch;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        height: auto;
    }

    .hero-image img {
        height: 100%;
    }

    .hero-card {
        position: relative;
        z-index: 1;
        align-self: flex-end;
        margin: 0 0 3rem 3rem;
        max-width: 520px;
        padding: 2.5rem;
        border-radius: 6px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero-card {
        margin: 0 0 4rem 4rem;
        padding: 3rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }
}

/* --- Stats / trust bar --- */

.stats-bar {
    background-color: var(--color-surface);
    padding: 1.75rem 0;
    border-bottom: 2px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-family: var(--font-heading), Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text_muted);
    font-weight: 500;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* --- Menu highlights: dish cards --- */

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.highlight-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.highlight-image {
    height: 200px;
    overflow: hidden;
}

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

.highlight-card:hover .highlight-image img {
    transform: scale(1.03);
}

.highlight-body {
    padding: 1.25rem;
}

.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.highlight-header h3 {
    font-size: 1.125rem;
}

.highlight-price {
    font-family: var(--font-heading), Georgia, serif;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1rem;
    white-space: nowrap;
}

.highlight-body p {
    color: var(--color-text_muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Featured (first) dish — spans full width */
    .highlight-featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }

    .highlight-featured .highlight-image {
        height: auto;
        min-height: 280px;
    }

    .highlight-featured .highlight-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .highlight-featured .highlight-header h3 {
        font-size: 1.375rem;
    }

    .highlight-featured .highlight-body p {
        font-size: 1rem;
    }
}

/* --- Gallery: asymmetric image grid --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
}

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

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

/* Asymmetric: first and last items span wider on desktop */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:first-child img {
        height: 100%;
        min-height: 460px;
    }
}

/* --- Testimonials: cards with stars --- */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 1.75rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.star {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.5;
}

.star-filled {
    fill: var(--color-accent);
    stroke: var(--color-accent);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-initial {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading), Georgia, serif;
    font-weight: 700;
    font-size: 1.0625rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* If only 2 testimonials, center them */
    .testimonials-grid:has(> :last-child:nth-child(2)) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}
