/*
 * Custom override styles for Mamamia site
 *
 * This stylesheet is loaded after the minified bundle and provides
 * targeted adjustments to improve Lighthouse scores without
 * significantly altering the existing design. Specifically it:
 *  1. Updates the hero call‑to‑action button colours to ensure a
 *     sufficient contrast ratio for accessibility.
 *  2. Defines a font size for <h1> elements that appear inside
 *     sections to avoid impending deprecation warnings around
 *     implicit heading sizes.
 */

/* Ensure hero CTA has high contrast: use the primary red with white text */
.hero-cta-mamamia {
    background-color: var(--mamamia-primary-red) !important;
    color: var(--white) !important;
    border-color: var(--mamamia-primary-red) !important;
}
.hero-cta-mamamia:hover {
    background-color: #802323 !important;
    border-color: #802323 !important;
    color: var(--white) !important;
}

/* Explicit font size for h1 elements within sections to avoid
   deprecation warnings about nested heading sizes. */
section h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem) !important;
}

/* Prevent horizontal scrolling on small devices */
html, body {
    overflow-x: hidden;
}

/*
 * Enhanced layouts for the "למה לבחור במאמאמיה" and "כך מזמינים מאמאמיה" sections.
 * These classes implement card-based designs inspired by luxury catering websites,
 * with subtle borders, rounded corners and hover effects to create depth and
 * sophistication. The order timeline is responsive: it stacks on small screens
 * and displays in a row with connecting lines on larger screens.
 */

/* Why section card grid */
.why-card-grid {
    display: grid;
    /* Reduce min width to ensure cards stack nicely on very small screens */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background-color: var(--mamamia-secondary-cream);
    border: 1px solid var(--mamamia-accent-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.why-card-icon {
    background-color: var(--mamamia-primary-red);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

/* Order process timeline */
.order-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .order-timeline {
        flex-direction: row;
    }
    .order-timeline .order-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        width: 100%;
        height: 2px;
        background-color: var(--mamamia-accent-gold);
        transform: translateY(-50%);
    }
}

.order-step {
    position: relative;
    background-color: var(--mamamia-secondary-cream);
    border: 1px solid var(--mamamia-accent-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    flex: 1;
}

.order-step-number {
    background-color: var(--mamamia-primary-red);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 auto 0.5rem auto;
}

.order-step-icon {
    color: var(--mamamia-primary-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------
 * Redesigned sections for "Why choose Mamamia" and "How to order"
 *
 * These styles replace the previous card-based layouts with cleaner,
 * integrated elements. The features are displayed without card
 * backgrounds, using circular icons and flexible sizing. The order
 * process is presented as a timeline with connected circles on
 * larger screens and stacks vertically on small screens.
 */

/* Why choose features */
.why-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.why-features .feature-item {
    flex: 1 1 200px;
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--mamamia-accent-gold);
    background-color: var(--mamamia-secondary-cream);
    color: var(--mamamia-primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

@media (min-width: 768px) {
    .why-features .feature-item {
        padding: 1rem 2rem;
    }
}

/* Order process timeline redesign */
.order-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.order-line {
    display: none;
}

.order-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--mamamia-secondary-cream);
    border: 2px solid var(--mamamia-accent-gold);
    color: var(--mamamia-primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 0.75rem;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--mamamia-primary-red);
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .order-steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .order-line {
        display: block;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: var(--mamamia-accent-gold);
        z-index: 0;
    }
}
