/* ==========================================================================
   Home page.

   Requires css/design-tokens.css.

   Replaces the template hero this page shipped with: a 100vh auto-rotating
   carousel of stock restaurant photography, with the headline held invisible
   until AOS initialised. Three problems with that — it was the most dated
   element on the site, it showed food we don't sell instead of the thing we
   actually make, and the first paint was a blank photo.

   What replaces it shows the product: a mock of tomorrow's generated menu,
   built in markup rather than a screenshot so it stays sharp and weighs
   nothing.
   ========================================================================== */

body.home-page {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

/* Scoped to content, and excluding both button systems: a page-wide `a`
   rule outranks Bootstrap's `.btn.btn-primary` colour and silently repaints
   button labels. */
.home-shell a:not(.btn-app):not(.btn) {
    color: var(--cardamom);
    text-decoration: none;
}

.home-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--r-md);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-app--primary {
    background: var(--cardamom);
    color: var(--paper);
}

.btn-app--primary:hover {
    background: var(--cardamom-strong);
    color: var(--paper);
    box-shadow: var(--shadow-raised);
}

.btn-app--primary:active {
    transform: translateY(1px);
}

.btn-app--outline {
    background: transparent;
    color: var(--cardamom-strong);
    box-shadow: inset 0 0 0 1.4px rgba(11, 68, 51, 0.45);
}

.btn-app--outline:hover {
    background: rgba(11, 68, 51, 0.08);
    color: var(--cardamom-strong);
}

.btn-app:focus-visible {
    outline: 3px solid var(--turmeric);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Pre-launch notice

   Sits with the call to action rather than as a strip above the hero: the fact
   that you cannot get in yet matters at the moment you reach for the button,
   and a full-width bar between header and hero read as a cookie notice.
   -------------------------------------------------------------------------- */

.hero__invite {
    /* Deliberately not flex: as flex items the tag and the link became
       separate rows and the sentence stopped reading as a sentence. Normal
       inline flow, with the tag as an inline-block, keeps it one paragraph. */
    max-width: 46ch;
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--turmeric);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(201, 138, 34, 0.1);
    font-size: 0.88rem;
    line-height: 1.55;
    color: #6B4A0F;
}

.hero__invite-tag {
    display: inline-block;
    margin-right: 7px;
    padding: 2px 8px;
    vertical-align: baseline;
    border-radius: 999px;
    background: var(--turmeric);
    color: #3A2606;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero__invite a {
    color: #6B4A0F;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero__invite a:hover { color: #4A3208; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background: linear-gradient(180deg, var(--tile-green) 0%, var(--paper) 68%);
    padding: 56px 0 64px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(201, 138, 34, 0.14);
    color: #7A5210;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    /* Scales with the viewport so the line breaks stay deliberate rather than
       wherever a fixed size happens to land them. */
    font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.hero__title em {
    font-style: italic;
    color: var(--cardamom);
}

.hero__lead {
    max-width: 46ch;
    margin: 20px 0 0;
    font-size: 1.08rem;
    line-height: 1.62;
    color: var(--dark-grey);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__note {
    margin: 18px 0 0;
    font-size: 0.85rem;
    color: var(--cement-grey);
}

/* --------------------------------------------------------------------------
   The menu mock — the product, shown rather than described.

   Deliberately built from markup: it stays crisp at any density, weighs
   nothing next to a screenshot, and updating it is a text edit.
   -------------------------------------------------------------------------- */

.menu-card {
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: 0 18px 50px rgba(11, 68, 51, 0.13);
    overflow: hidden;
}

.menu-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--cardamom);
    color: var(--paper);
}

.menu-card__day {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-size: 0.76rem;
    color: rgba(245, 247, 243, 0.85);
}

.menu-card__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--turmeric);
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--divider);
}

.menu-row:last-child {
    border-bottom: 0;
}

.menu-row__thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    background-color: var(--tile-green);
    background-size: cover;
    background-position: center;
}

.menu-row__text {
    min-width: 0;
    flex: 1 1 auto;
}

.menu-row__slot {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--turmeric-text);
}

.menu-row__name {
    display: block;
    margin-top: 1px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-row__time {
    flex-shrink: 0;
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cement-grey);
}

.menu-card__foot {
    padding: 12px 20px;
    background: var(--tile-green);
    font-size: 0.8rem;
    color: var(--cardamom);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 72px 0;
}

.section--tint {
    background: #fff;
}

.section__head {
    max-width: 60ch;
    margin: 0 0 40px;
}

.section__kicker {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--turmeric-text);
}

.section__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
    line-height: 1.15;
    color: var(--ink);
}

.section__lead {
    margin: 14px 0 0;
    font-size: 1.02rem;
    line-height: 1.62;
    color: var(--dark-grey);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    padding: 28px 24px;
    border-radius: var(--r-lg);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.section--tint .step {
    background: var(--paper);
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--cardamom);
    color: var(--paper);
    font-family: var(--font-data);
    font-size: 0.82rem;
    font-weight: 700;
}

.step__title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

.step__body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cement-grey);
}

/* --------------------------------------------------------------------------
   Value props
   -------------------------------------------------------------------------- */

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.value__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
}

.value__title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
}

.value__body {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.58;
    color: var(--cement-grey);
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.closer {
    padding: 72px 0;
    background: var(--cardamom);
    color: var(--paper);
    text-align: center;
}

.closer__title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
    line-height: 1.15;
    color: #fff;
}

.closer__lead {
    max-width: 52ch;
    margin: 0 auto 28px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(245, 247, 243, 0.82);
}

.closer .btn-app--primary {
    background: var(--turmeric);
    color: #3A2606;
}

.closer .btn-app--primary:hover {
    background: #DE9C2C;
    color: #3A2606;
}

.closer .btn-app--outline {
    color: var(--paper);
    box-shadow: inset 0 0 0 1.4px rgba(245, 247, 243, 0.5);
}

.closer .btn-app--outline:hover {
    background: rgba(245, 247, 243, 0.1);
    color: var(--paper);
}

.closer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .home-shell {
        padding: 0 16px;
    }

    .hero {
        padding: 36px 0 44px;
    }

    .section,
    .closer {
        padding: 52px 0;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn-app,
    .closer__actions .btn-app {
        width: 100%;
    }
}
