/* === Afitt Bistro — Homepage === */
/* Layout / light structure only. All visual values reference tokens. */

/* ---- Site header / nav ---- */
.site-header {
    position: relative;
    z-index: var(--z-sticky);
    background: var(--color-brand-charcoal);
    color: var(--color-text-inverse);
}

.site-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-md) clamp(var(--space-md), 4vw, var(--space-2xl));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--color-text-inverse);
    /* The chef in the mark is cropped at the bottom edge, so the logo sits
       flush on the header's bottom line instead of being vertically centred. */
    align-self: flex-end;
}

.site-logo .custom-logo {
    display: block;
    /* Nearly the full header height: the negative margins bleed over the
       inner paddings so the mark spans from 4px below the header top to its
       bottom border. */
    height: clamp(72px, 6vw, 84px);
    width: auto;
    max-width: 100%;
    margin-top: -12px;
    margin-bottom: calc(-1 * var(--space-md));
}

.site-logo__mark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
    font-synthesis:none;
}

.site-logo__sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.site-nav__list {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__item a {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-subtitle);
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-inverse);
    transition: color var(--transition-fast);
    line-height:var(--leading-ui);
}

.site-nav__item a:hover {
    color: var(--color-brand-orange);
}

.site-header__cta {
    flex-shrink: 0;
}

/* ---- Hero (HERO redesign 2026-10-03) ---- */
.home .site-main {
    padding-top: 0;
}

/* Full-bleed photo backdrop: left-side copy over the dark texture, platter
   anchored bottom-right. The portrait crop swaps in at ≤860px. */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: clamp(520px, 40vw, 700px);
    padding-block: clamp(3rem, 5vw, 5.5rem);
    background-color: var(--color-brand-charcoal);
    background-image: url('../../images/hero-bg/hero_background_home.webp');
    background-repeat: no-repeat;
    background-position: 100% 100%;
    background-size: cover;
    color: var(--color-text-inverse);
}

/* Copy sits on the GLOBAL content box (same max-width + padding as the site
   header / status bar / menu head), so its edges line up with the header. */
.home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(var(--space-md), 4vw, var(--space-2xl));
}

.home-hero__eyebrow {
    font-size: clamp(0.8125rem, 1.18vw, 1.1875rem);
    letter-spacing: 0.16em;
    margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
    color: var(--color-text-inverse);
}

.home-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7.4vw, 8rem);
    text-transform: none;
    line-height: 0.94;
    letter-spacing: -0.015em;
    margin-bottom: clamp(1rem, 2.2vw, 1.75rem);
    font-synthesis: none;
}

.home-hero__title-main,
.home-hero__title-sub {
    display: block;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.home-hero__title :is(strong, b, em) {
    font: inherit;
}

.home-hero__title-main {
    color: var(--color-bg-cream);
}

.home-hero__title-sub {
    color: var(--color-brand-red-bright);
}

.home-hero__lead {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.125rem, 1.6vw, 1.625rem);
    line-height: 1.35;
    max-width: 29ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
    color: var(--color-text-inverse);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.75rem);
}

/* Primary CTA — design pill. Scoped to the hero: the shared .btn-primary
   keeps the site's orange everywhere else (incl. the header). */
.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.875rem);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(1.0625rem, 1.5vw, 1.5625rem);
    line-height: var(--leading-ui);
    background: var(--color-brand-red-bright);
    color: var(--color-text-inverse);
    border-radius: var(--radius-full);
    padding: clamp(0.875rem, 1.55vw, 1.625rem) clamp(1.5rem, 3vw, 3.4rem);
    box-shadow: var(--shadow-button);
    transition: background var(--transition-fast), transform var(--transition-fast);
    min-height: 44px;
}

.home-hero__cta:hover {
    background: var(--color-brand-red-bright-hover);
}

.home-hero__cta:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-text-inverse);
    outline-offset: var(--focus-ring-offset);
}

.home-hero__cta:active {
    transform: scale(var(--scale-active));
}

.home-hero__cta svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

/* Secondary text link in the mock ("Sültestálak"). */
.home-hero__link {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(1.0625rem, 1.45vw, 1.5rem);
    line-height: var(--leading-ui);
    color: var(--color-text-inverse);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5em;
    transition: color var(--transition-fast);
}

.home-hero__link:hover,
.home-hero__link:focus-visible {
    color: var(--color-brand-red-bright);
}

/* ---- Kiemelt sültestálak — flagship feast pair (HOME redesign 2026-10-03) ---- */
.home-feast {
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(var(--space-md), 4vw, var(--space-2xl)) clamp(1.75rem, 3.5vw, 3rem);
}

.home-feast__head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 2.5vw, 2.25rem);
}

.home-feast__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(1.875rem, 3.6vw, 3.25rem);
    line-height: var(--leading-heading);
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
}

.home-feast__lead {
    margin-top: clamp(0.375rem, 0.8vw, 0.75rem);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-secondary);
}

/* The 4-person flagship leads with the wider column; both cards share a row
   height (grid stretch), the photo fills the card with object-fit: cover. */
.home-feast__grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: clamp(0.75rem, 1.6vw, 1.5rem);
    align-items: stretch;
}

.home-feast__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: clamp(280px, 30vw, 430px);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

.home-feast__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.home-feast__card:hover img,
.home-feast__card:focus-visible img {
    transform: scale(1.03);
}

.home-feast__card:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-brand-red-bright);
    outline-offset: var(--focus-ring-offset);
}

.home-feast__band {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 1vw, 1rem);
    padding: clamp(0.875rem, 1.6vw, 1.5rem) clamp(1rem, 2vw, 1.875rem);
    background: var(--color-brand-charcoal);
    color: var(--color-text-inverse);
}

.home-feast__id {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.home-feast__name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.18;
    color: var(--color-text-inverse);
}

.home-feast__persons {
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    color: rgba(255, 255, 255, 0.78);
}

.home-feast__buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(0.375rem, 0.9vw, 0.75rem);
    flex-shrink: 0;
}

.home-feast__price {
    font-family: var(--font-price);
    font-weight: 800;
    font-size: clamp(1rem, 1.35vw, 1.375rem);
    color: var(--color-text-inverse);
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

/* CTA: the vivid hero red (owner pick). */
.home-feast__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: clamp(0.4rem, 0.8vw, 0.6rem) clamp(0.85rem, 1.4vw, 1.25rem);
    border-radius: var(--radius-full);
    background: var(--color-brand-red-bright);
    color: var(--color-text-inverse);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(0.875rem, 1vw, 1.0625rem);
    line-height: var(--leading-ui);
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.home-feast__card:hover .home-feast__cta {
    background: var(--color-brand-red-bright-hover);
}

.home-feast__cta svg {
    width: 1.05em;
    height: 1.05em;
    flex-shrink: 0;
}

/* ---- Product sections ---- */
.home-section {
    padding: clamp(var(--space-2xl), 6vw, var(--space-3xl)) clamp(var(--space-md), 5vw, var(--space-3xl));
}

.home-section__head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.home-section__eyebrow {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: var(--text-micro);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand-orange);
    margin-bottom: var(--space-xs);
    line-height:1.3;
}

.home-section__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    font-size: var(--text-display);
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    font-synthesis:none;
    line-height:var(--leading-heading);
}

/* ---- A vendégek kedvencei — Top Picks cards (HOME redesign 2026-10-03) ---- */
.home-favorites {
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(var(--space-md), 4vw, var(--space-2xl)) clamp(2.5rem, 5vw, 4.5rem);
}

.home-favorites__head {
    position: relative;
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.home-favorites__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: var(--leading-heading);
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
}

.home-favorites__lead {
    margin-top: clamp(0.3rem, 0.6vw, 0.5rem);
    font-family: var(--font-body);
    font-size: var(--text-subtitle);
    color: var(--color-text-secondary);
}

/* "Teljes étlap" — a real button (owner request 2026-10-03), same vivid hero
   red as the other CTAs. */
.home-favorites__all {
    position: absolute;
    right: 0;
    top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: clamp(0.4rem, 0.8vw, 0.6rem) clamp(0.85rem, 1.4vw, 1.25rem);
    border-radius: var(--radius-full);
    background: var(--color-brand-red-bright);
    color: var(--color-text-inverse);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(0.875rem, 1vw, 1.0625rem);
    line-height: var(--leading-ui);
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.home-favorites__all:hover,
.home-favorites__all:focus-visible {
    background: var(--color-brand-red-bright-hover);
    color: var(--color-text-inverse);
}

.home-favorites__all svg {
    width: 1.05em;
    height: 1.05em;
}

.home-favorites__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.home-fav-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-fav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.home-fav-card:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-brand-red-bright);
    outline-offset: var(--focus-ring-offset);
}

.home-fav-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.home-fav-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-fav-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: clamp(0.75rem, 1.3vw, 1.25rem);
    padding: clamp(0.875rem, 1.3vw, 1.25rem) clamp(0.875rem, 1.3vw, 1.375rem) clamp(1rem, 1.6vw, 1.5rem);
}

/* Long names always show in full; two lines are reserved so single-line
   names keep the four cards visually aligned. */
.home-fav-card__name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.22;
    color: var(--color-text-primary);
    min-height: 2.44em;
}

.home-fav-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-fav-card__price {
    font-family: var(--font-price);
    font-weight: 600;
    font-size: clamp(1rem, 1.2vw, 1.1875rem);
    color: var(--color-text-primary);
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

/* CTA: the vivid hero red (owner pick). */
.home-fav-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(34px, 3vw, 42px);
    height: clamp(30px, 2.6vw, 38px);
    border-radius: 10px;
    background: var(--color-brand-red-bright);
    color: var(--color-text-inverse);
    transition: background var(--transition-fast);
}

.home-fav-card:hover .home-fav-card__cta {
    background: var(--color-brand-red-bright-hover);
}

.home-fav-card__cta svg {
    width: 1.05em;
    height: 1.05em;
}

/* ---- Heti menü — bridge to the weekly-menu page (HOME redesign 2026-10-03) ---- */
.home-weekmenu {
    position: relative;
    overflow: hidden;
    background: var(--color-brand-red);
    color: var(--color-text-inverse);
}

/* Subtle brand line-art motif over the warm red (same asset as the category
   tiles, tilted so its composition edges never read as straight lines). */
.home-weekmenu::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: url('../../images/background.svg') center / cover no-repeat;
    opacity: 0.1;
    transform: rotate(-10deg) scale(1.2);
    pointer-events: none;
}

.home-weekmenu__inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.25rem);
}

.home-weekmenu__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(2.25rem, 4.4vw, 3.75rem);
    line-height: var(--leading-heading);
    letter-spacing: -0.015em;
    color: var(--color-text-inverse);
}

.home-weekmenu__lead {
    margin-top: clamp(0.375rem, 0.8vw, 0.625rem);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.94);
}

.home-weekmenu__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: clamp(1rem, 2.2vw, 1.75rem);
    padding: clamp(0.6rem, 1vw, 0.9375rem) clamp(1.1rem, 1.8vw, 1.75rem);
    border-radius: var(--radius-full);
    background: var(--color-bg-cream);
    color: var(--color-text-primary);
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: var(--text-button-size);
    line-height: var(--leading-ui);
    transition: background var(--transition-fast);
}

.home-weekmenu__cta:hover,
.home-weekmenu__cta:focus-visible {
    background: var(--color-bg-white);
}

.home-weekmenu__cta svg {
    width: 1.05em;
    height: 1.05em;
}

.home-weekmenu__deco {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(1.5rem, 7vw, 7rem);
    transform: translateY(-50%);
    width: clamp(120px, 15vw, 230px);
    height: auto;
    color: var(--color-text-inverse);
    opacity: 0.16;
    pointer-events: none;
}

/* ---- Full-width category section (wall to wall, seamless tiles) ---- */
.home-cats {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-cats__head {
    text-align: center;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.home-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 0;
    width: 100%;
}

.home-cat {
    --cat-bg: var(--cat-main);
    --cat-text: var(--color-text-inverse);
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    aspect-ratio: 245 / 321;
    height: auto;
    min-height: 0;
    width: 100%;
    padding: var(--space-lg) var(--space-xs);
    background: var(--cat-bg);
    color: var(--cat-text);
    border-radius: 0;
    text-align: center;
    overflow: hidden;
    transition: filter var(--transition-base);
}

/* Decorative background filling the whole tile. Default (no photo) = the
   faithful black SVG, subtle. With --cat-bg-image set (WM1 redesign) the final
   category photo (2-3) becomes the background, tinted by a --cat-bg-overlay
   scrim so the existing --cat-text contrast rule stays valid.
   inset:-20% keeps it covering the tile even when rotated/scaled (gaps are
   clipped by the tile's overflow:hidden). */
.home-cat__bg {
    position: absolute;
    inset: -20%;
    background: url('../../images/background.svg?v=3') no-repeat center / cover;
    opacity: 0.08;
    transform: rotate(var(--bg-rot, 0deg)) scale(var(--bg-scale, 1.2));
    pointer-events: none;
    z-index: 0;
}

/* WM1 redesign — final category photo backgrounds. The image already carries
   the category colour, so there is NO overlay and the layer is shown at full
   opacity (opacity: 1). The background layer equals the tile (inset:0) so
   background-size: cover fills it exactly; any residual colour/opacity is
   cleared. Text contrast follows the category token luminance (--cat-text). */
.home-cat--photo {
    background: transparent;
}
.home-cat--photo .home-cat__bg {
    inset: 0;
    background: var(--cat-bg-image) center / cover no-repeat;
    opacity: 1;
    transform: none;
}

.home-cat__name,
.home-cat__media {
    position: relative;
    z-index: 1;
    font-synthesis:none;
}

.home-cat:hover {
    filter: saturate(1.08) brightness(1.04);
}

.home-cat:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-brand-orange);
    outline-offset: -var(--focus-ring-offset);
}

.home-cat__name {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    font-size: clamp(28px, 8.2cqw, 44px);
    line-height: var(--leading-heading);
    letter-spacing: -0.015em;
    text-align: center;
    overflow-wrap: normal;
    text-wrap: balance;
    max-width: 100%;
    font-synthesis:none;
}

.home-cat__media {
    position: relative;
    width: min(62%, 260px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
}

.home-cat__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

/* Transparent category cutouts (owner asset drop, 2026-10-03): NO circular
   clip — the complete cutout shows at its natural aspect. */
.home-cat--cutout .home-cat__media {
    width: min(74%, 300px);
    aspect-ratio: auto;
    overflow: visible;
}

.home-cat--cutout .home-cat__media img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    border: 0;
}

/* The two landscape cutouts (hamburgers, sültestálak) get a wider stage so
   their side-by-side composition stays legible. */
.home-cat--cutout.home-cat--wide .home-cat__media {
    width: min(96%, 380px);
}

/* Desktop scrim: with the copy on the global content box the title can reach
   the cover crop, so a left-to-right charcoal falloff keeps it readable. The
   plain cover image stays as the base; the scrim layers only when color-mix
   is supported, so the photo can never be lost. */
@media (min-width: 861px) {
    .home-hero {
        background-image: url('../../images/hero-bg/hero_background_home.webp');
        background-size: cover;
    }

    @supports (background: color-mix(in srgb, red 50%, transparent)) {
        .home-hero {
            background-image:
                linear-gradient(90deg,
                    color-mix(in srgb, var(--color-brand-charcoal) 85%, transparent) 0%,
                    color-mix(in srgb, var(--color-brand-charcoal) 52%, transparent) 45%,
                    color-mix(in srgb, var(--color-brand-charcoal) 0%, transparent) 85%),
                url('../../images/hero-bg/hero_background_home.webp');
            background-size: cover;
        }
    }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .site-nav {
        display: none;
    }

    /* Narrow screens: a tighter minimum gap keeps the bottom-anchored logo
       at its natural ratio instead of being squeezed by the flex line. */
    .site-header__inner {
        gap: var(--space-sm);
    }

    .home-hero {
        align-items: flex-start;
        min-height: clamp(560px, 160vw, 820px);
        padding-block: clamp(2.5rem, 9vw, 4rem);
        /* Portrait crop, always filling the section (cover). */
        background-image: url('../../images/hero-bg/hero_background_home_mobile.webp');
        background-position: 50% 100%;
        background-size: cover;
    }

    /* Scrim keeps the copy on dark texture (mock) before the platter starts;
       layered only when color-mix is supported, so the photo can never be
       lost on older engines. */
    @supports (background: color-mix(in srgb, red 50%, transparent)) {
        .home-hero {
            background-image:
                linear-gradient(180deg,
                    color-mix(in srgb, var(--color-brand-charcoal) 88%, transparent) 0%,
                    color-mix(in srgb, var(--color-brand-charcoal) 68%, transparent) 42%,
                    color-mix(in srgb, var(--color-brand-charcoal) 0%, transparent) 72%),
                url('../../images/hero-bg/hero_background_home_mobile.webp');
            background-size: cover;
        }
    }

    .home-hero__title {
        font-size: clamp(2.5rem, 14vw, 4.25rem);
        line-height: 0.95;
    }

    /* Mobile mock stacks the CTA above the "Sültestálak" link. */
    .home-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Stacked feast cards: the 4-person flagship first, the 2-person below. */
    .home-feast__grid {
        grid-template-columns: 1fr;
    }

    .home-feast__card {
        min-height: clamp(240px, 56vw, 380px);
    }

    /* Feast band on narrow screens: name/persons left, price + CTA right. */
    .home-feast__band {
        padding: var(--space-sm) var(--space-md);
    }

    /* Guest favourites: two calm columns on tablets. */
    .home-favorites__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-favorites__head {
        margin-bottom: clamp(1.25rem, 4vw, 2rem);
    }

    .home-favorites__all {
        position: static;
        display: inline-flex;
        margin-top: 0.75rem;
    }

    .home-weekmenu__deco {
        right: clamp(0.75rem, 4vw, 2rem);
        width: clamp(96px, 22vw, 170px);
        opacity: 0.12;
    }

    .home-cats__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Phones: single-column horizontal favourites — full names, easy tapping. */
@media (max-width: 480px) {
    .home-feast__title {
        font-size: clamp(1.75rem, 8vw, 2.375rem);
    }

    .home-favorites__grid {
        grid-template-columns: 1fr;
    }

    .home-fav-card {
        flex-direction: row;
        align-items: stretch;
    }

    .home-fav-card__media {
        flex: 0 0 40%;
        width: 40%;
        max-width: 150px;
        aspect-ratio: 1 / 1;
    }

    .home-fav-card__body {
        gap: var(--space-xs);
        padding: var(--space-sm) var(--space-md);
    }

    .home-fav-card__name {
        font-size: 1rem;
        min-height: 0;
    }
}
