/* ==========================================================================
   Pizza Near Me — shared design system
   Used by index.html and Application.html so both pages stay consistent.
   ========================================================================== */

:root {
    /* Brand palette — rustic brick red and olive moss green */
    --pizza-red: #8C3B2A;
    --pizza-red-dark: #6E2C1F;
    --pizza-green: #4F5D3A;
    --pizza-green-light: #66754B;
    --cream: #FFF8F0;
    --warm-white: #FFFCF8;
    --charcoal: #2C2C2C;
    --gray-dark: #4A4A4A;
    --gray-medium: #6B6B6B;
    --gray-light: #E8E8E8;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;

    /* Effects */
    --radius: 16px;
    --radius-pill: 50px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.16);
    --transition: all 0.25s ease;
}

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle brand-colored wash behind the whole page */
.page-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 85%, rgba(140, 59, 42, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 82% 15%, rgba(79, 93, 58, 0.05) 0%, transparent 45%);
    pointer-events: none;
    /* Below the content so mix-blend-mode on the logo reaches the body background */
    z-index: -1;
}

/* --------------------------------------------------------------------------
   Landing layout (index.html) — per Visio homescreen sketch:
   location mark on top, two action cards mid-page, info strip at bottom.
   -------------------------------------------------------------------------- */

.landing {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Top: location mark + logo --- */

.locale {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pizza-green);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.locale:hover {
    color: var(--pizza-red);
}

.locale .pin {
    width: 20px;
    height: 20px;
    flex: none;
}

.brand-logo {
    max-width: 300px;
    width: 70%;
    height: auto;
    margin: 1.5rem 0 0.75rem;
    /* The logo PNG has a solid white background; multiply blends it into the cream page */
    mix-blend-mode: multiply;
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* --- Middle: two action cards, side by side --- */

.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 760px;
    margin: 2.5rem 0 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
}

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-4px);
}

.action-card .card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.action-card .card-sub {
    font-size: 0.95rem;
    color: var(--gray-medium);
}

.action-card .card-cta {
    margin-top: 0.9rem;
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.card-order .card-title { color: var(--pizza-red); }
.card-order .card-cta   { background: linear-gradient(135deg, var(--pizza-red), var(--pizza-red-dark)); }

.card-apply .card-title { color: var(--pizza-green); }
.card-apply .card-cta   { background: linear-gradient(135deg, var(--pizza-green), var(--pizza-green-light)); }

/* --- Bottom: address / phone / hours strip --- */

.info-strip {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.6rem 1.5rem;
    text-align: center;
}

.info-block h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--pizza-green);
    margin-bottom: 0.35rem;
}

.info-block p,
.info-block a {
    font-size: 0.9rem;
    color: var(--gray-dark);
    text-decoration: none;
}

.info-block a:hover {
    color: var(--pizza-red);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.hours-row .day {
    font-weight: 600;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--gray-medium);
    text-align: center;
}

.copyright a {
    color: var(--pizza-green);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--pizza-red);
}

/* --- Responsive: stack cards and info blocks on small screens --- */

@media (max-width: 640px) {
    .landing {
        padding-top: 2rem;
    }

    .brand-logo {
        max-width: 230px;
    }

    .action-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 2rem 0;
    }

    .action-card {
        padding: 1.8rem 1.5rem;
    }

    .info-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
