/* =============================================================================================
   Ashtota design system
   ---------------------------------------------------------------------------------------------
   A direct translation of the design handoff's token table. Every colour, radius, shadow and
   motion timing below is taken from that document rather than re-derived, so the built site and
   the prototype stay comparable value for value.

   This is one stylesheet rather than per-component isolated CSS on purpose: the design is a
   single cohesive system where cards, pills and blobs share the same primitives, and splitting it
   would force each component to restate the same tokens. Sections below map one-to-one onto the
   components in Components/.

   The whole document is RTL. Everything directional uses logical properties
   (inset-inline-start, margin-inline, padding-inline) so no rule needs an RTL counterpart.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------------------------- */

:root {
    --color-bg: #FBF9F4;
    --color-surface: #FFFFFF;
    --color-text: #16193F;
    --color-accent: #283088;
    --color-accent-2: #D8E020;
    --kraft: #C89A63;
    --choc: #5A3A24;
    --color-divider: color-mix(in srgb, #283088 12%, transparent);

    /* Brand blue ramp */
    --color-accent-100: #EEEFF9;
    --color-accent-200: #D6D9F0;
    --color-accent-300: #B0B6E2;
    --color-accent-400: #808AD0;
    --color-accent-500: #5561B4;
    --color-accent-600: #3B4699;
    --color-accent-700: #283088;
    --color-accent-800: #1E2569;
    --color-accent-900: #141949;

    /* Brand lime ramp */
    --color-accent-2-100: #FAFCE2;
    --color-accent-2-200: #F2F7B4;
    --color-accent-2-300: #E9F272;
    --color-accent-2-400: #DFE93F;
    --color-accent-2-500: #D8E020;
    --color-accent-2-600: #B8C011;
    --color-accent-2-700: #8E960B;
    --color-accent-2-800: #666C08;
    --color-accent-2-900: #3F4305;

    /* Neutrals */
    --color-neutral-100: #F5F4F0;
    --color-neutral-200: #EAE8E2;
    --color-neutral-300: #D8D5CD;
    --color-neutral-400: #B9B5AA;
    --color-neutral-500: #96917F;

    --font-heading: "Baloo Bhaijaan 2", "Barlow Condensed", system-ui, sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Barlow", system-ui, sans-serif;
    --lat: "Barlow Condensed", system-ui, sans-serif;

    --shadow-soft: 0 10px 30px color-mix(in srgb, #283088 10%, transparent);
    --shadow-lift: 0 26px 60px color-mix(in srgb, #283088 20%, transparent);

    /* The decorative crumb pattern used behind the hero and on unphotographed product plates. */
    --crumbs:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, #C89A63 55%, transparent) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, color-mix(in srgb, #C89A63 40%, transparent) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 45% 85%, color-mix(in srgb, #283088 22%, transparent) 0 1.5px, transparent 2.5px);

    /* The standard easing for every hover and reveal in the design. */
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Height reserved for the sticky navbar when scrolling to an anchor. */
    --nav-offset: 110px;

    --blob-radius: 58% 42% 52% 48% / 45% 52% 48% 55%;
}

/* ---------------------------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    /* Anchor targets stop below the sticky bar instead of underneath it. */
    scroll-padding-top: var(--nav-offset);
}

body {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;

    /*
       The hero glows and the About orbs are deliberately positioned outside the viewport
       (inset-inline-start: -140px and similar), which would otherwise let the page scroll
       sideways by about 120px.

       'clip' rather than 'hidden': hidden on one axis forces the other to 'auto', turning this
       element into a scroll container and re-anchoring the sticky navbar and category rail to it.
       'clip' cuts the overflow without creating a scroll container, so sticky keeps working.
    */
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.24;
    font-weight: 800;
    font-family: var(--font-heading);
}

p {
    margin: 0;
}

a {
    color: var(--color-accent-700);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-600);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--color-accent-2-300);
}

:focus-visible {
    outline: 3px solid var(--color-accent-2);
    outline-offset: 3px;
    border-radius: 999px;
}

/* Visually hidden but still announced — used for the search field's label and skip link. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: -100px;
    transform: translateX(50%);
    z-index: 100;
    background: var(--color-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 999px 999px;
    font-weight: 600;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ---------------------------------------------------------------------------------------------
   3. Motion
   --------------------------------------------------------------------------------------------- */

@keyframes riseIn {
    from { opacity: 0; transform: translateY(26px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(3deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-26px); }
}

@keyframes morph {
    0%, 100% { border-radius: 58% 42% 52% 48% / 45% 52% 48% 55%; }
    33%      { border-radius: 44% 56% 40% 60% / 56% 42% 58% 44%; }
    66%      { border-radius: 60% 40% 60% 40% / 42% 58% 42% 58%; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Scroll reveal. Elements start hidden and are shown by adding .is-revealed.
   The observer in ashtota.js has a safety sweep so this can never strand content invisible. */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .9s ease, transform .9s var(--ease);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Honours the visitor's system setting. Note the reveal override: without forcing opacity,
   disabling the transition would leave every revealed element permanently invisible. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------------------------------- */

.shell {
    position: relative;
    min-height: 100vh;

    /* Same reasoning as on body — see the note there. Applied here too so the clipping holds
       even if the host page ever wraps this in another scrolling element. */
    overflow-x: clip;
}

.container {
    max-width: 1280px;
    margin-inline: auto;
}

.section {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding: 110px 24px 0;
    scroll-margin-top: var(--nav-offset);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.section-heading--centered {
    display: block;
    text-align: center;
    margin-bottom: 48px;
}

.section-heading__eyebrow {
    display: inline-block;
    background: var(--color-accent-100);
    color: var(--color-accent-700);
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.section-heading__eyebrow--lime {
    background: var(--color-accent-2-200);
    color: var(--color-accent-2-800);
}

.section-heading__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.6vw, 58px);
    color: var(--color-accent-700);
}

.section-heading__lede {
    max-width: 38ch;
    font-size: 17px;
    color: color-mix(in srgb, var(--color-text) 68%, transparent);
    text-wrap: pretty;
}

/* Small Latin caption under an Arabic name. */
.latin-label {
    font-family: var(--lat);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
    margin: 0;
}

/* Latin digits inside RTL text must be isolated or the surrounding direction reorders them. */
.latin-digits {
    unicode-bidi: isolate;
    font-family: var(--lat);
    letter-spacing: .06em;
}

/* A category illustration rendered as a masked background, so one <span> covers every size. */
.brand-icon {
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex: none;
}

/* The raw illustrations are low-contrast; on solid blue plates they are forced to white. */
.brand-icon--inverted {
    filter: brightness(0) invert(1);
}

/* ---------------------------------------------------------------------------------------------
   5. Navbar
   --------------------------------------------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 70;
    padding: 16px 20px 0;
}

.navbar__bar {
    max-width: 1280px;
    margin-inline: auto;
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    padding: 10px 12px 10px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-end: auto;
    color: inherit;
}

.navbar__logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: none;
}

.navbar__wordmark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 25px;
    line-height: 1;
    color: var(--color-accent-700);
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.navbar__link {
    color: inherit;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background .3s ease, color .3s ease;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.navbar__link:hover,
.navbar__link:focus-visible {
    background: var(--color-accent-2-200);
    color: var(--color-accent-700);
}

.navbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .35s var(--ease), background .3s ease;
}

.navbar__phone:hover {
    background: var(--color-accent-600);
    transform: translateY(-2px);
    color: #fff;
}

.navbar__phone .brand-icon {
    width: 18px;
    height: 18px;
}

.navbar__phone .latin-digits {
    font-size: 17px;
}

/* The bar wraps below this width; the handoff calls this out as the only nav breakpoint. */
@media (max-width: 760px) {
    .navbar__bar {
        justify-content: center;
        padding: 12px 16px;
        border-radius: 32px;
    }

    .navbar__brand {
        margin-inline-end: 0;
    }

    .navbar__nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .navbar__link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* ---------------------------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 56px 24px 0;
}

.hero__glow,
.hero__glow--secondary {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero__glow {
    inset-inline-start: -140px;
    top: -40px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 38% 34%, var(--color-accent-2-200), transparent 68%);
    animation: floatSlow 12s ease-in-out infinite;
}

.hero__glow--secondary {
    inset-inline-end: -120px;
    top: 220px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 40% 40%, var(--color-accent-100), transparent 70%);
    animation: floatSlow 15s ease-in-out infinite 1.5s;
}

.hero__crumbs {
    position: absolute;
    inset: 0;
    background-image: var(--crumbs);
    background-size: 220px 220px;
    opacity: .5;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 56px;
    align-items: center;
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent-2);
    color: var(--color-accent-700);
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-soft);
}

.hero__chip .brand-icon {
    width: 22px;
    height: 22px;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(48px, 6.4vw, 94px);
    line-height: 1.1;
    margin-bottom: 22px;
    color: var(--color-accent-700);
}

/* The lime bar sits behind the final words, not through them. */
.hero__underline {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.hero__underline > span {
    position: relative;
    z-index: 1;
}

.hero__underline::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: .12em;
    width: 100%;
    height: .22em;
    background: var(--color-accent-2);
    border-radius: 999px;
    z-index: 0;
}

.hero__subline {
    font-size: 19px;
    line-height: 1.9;
    max-width: 44ch;
    color: color-mix(in srgb, var(--color-text) 74%, transparent);
    margin-bottom: 34px;
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

.btn--primary {
    background: var(--color-accent-2);
    color: var(--color-accent-700);
    padding: 16px 32px;
    box-shadow: 0 12px 26px color-mix(in srgb, #D8E020 45%, transparent);
    transition: transform .4s var(--ease), box-shadow .4s ease;
}

.btn--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 38px color-mix(in srgb, #D8E020 55%, transparent);
    color: var(--color-accent-700);
}

.btn--secondary {
    background: transparent;
    color: var(--color-accent-700);
    border: 2px solid var(--color-accent-200);
    padding: 14px 28px;
    font-weight: 600;
    transition: background .3s ease, border-color .3s ease;
}

.btn--secondary:hover {
    background: var(--color-accent-100);
    border-color: var(--color-accent-300);
    color: var(--color-accent-700);
}

.btn--solid {
    background: var(--color-accent);
    color: #fff;
    padding: 13px 26px;
    font-weight: 600;
    font-size: 16px;
    transition: background .3s ease, transform .3s var(--ease);
}

.btn--solid:hover {
    background: var(--color-accent-600);
    color: #fff;
}

.btn .brand-icon {
    width: 20px;
    height: 20px;
}

/* The hero photograph inside its morphing blob. */
.hero__figure {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__blob-shadow {
    position: absolute;
    width: 92%;
    aspect-ratio: 1 / 1;
    background: var(--color-accent);
    border-radius: var(--blob-radius);
    animation: morph 18s ease-in-out infinite;
    opacity: .1;
}

.hero__blob {
    position: relative;
    width: 86%;
    aspect-ratio: 1 / 1;
    border-radius: var(--blob-radius);
    overflow: hidden;
    animation: morph 16s ease-in-out infinite;
    box-shadow: var(--shadow-lift);
}

.hero__blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__float {
    position: absolute;
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
}

.hero__float--one {
    top: 6%;
    inset-inline-start: 2%;
    width: 82px;
    height: 82px;
    animation: floatY 7s ease-in-out infinite;
}

.hero__float--one .brand-icon { width: 44px; height: 44px; }

.hero__float--two {
    bottom: 10%;
    inset-inline-end: 0;
    width: 74px;
    height: 74px;
    background: var(--color-accent-2);
    animation: floatY 9s ease-in-out infinite 1.2s;
}

.hero__float--two .brand-icon { width: 40px; height: 40px; }

.hero__float--three {
    top: 44%;
    inset-inline-end: -2%;
    width: 60px;
    height: 60px;
    animation: floatY 8s ease-in-out infinite .6s;
}

.hero__float--three .brand-icon { width: 32px; height: 32px; }

.hero__stats {
    position: relative;
    max-width: 1280px;
    margin: 56px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stat-card {
    flex: 1 1 200px;
    background: var(--color-surface);
    border-radius: 32px;
    padding: 22px 28px;
    box-shadow: var(--shadow-soft);
    transition: transform .4s var(--ease);
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card--lime {
    background: var(--color-accent-2-100);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    color: var(--color-accent-700);
}

.stat-card--lime .stat-card__value {
    color: var(--color-accent-2-700);
}

.stat-card__label {
    font-size: 14px;
    color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* Single column below the handoff's stated hero breakpoint. */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__figure {
        min-height: 320px;
    }
}

/* ---------------------------------------------------------------------------------------------
   7. Marquee
   --------------------------------------------------------------------------------------------- */

.marquee {
    margin-top: 80px;
    background: var(--color-accent);
    border-radius: 48px 48px 0 0;
    padding-top: 6px;
}

.marquee__viewport {
    overflow: hidden;
    padding: 18px 0;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
}

.marquee__run {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-inline: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-accent-2);
    white-space: nowrap;
}

.marquee__dot {
    opacity: .5;
}

.wave {
    display: block;
    width: 100%;
}

/* ---------------------------------------------------------------------------------------------
   8. Signature showcase
   --------------------------------------------------------------------------------------------- */

.signature {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding: 40px 24px 0;
}

.signature__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
    align-items: start;
}

.signature-card {
    display: block;
    color: inherit;
    transition: transform .55s var(--ease);
    animation: riseIn .7s var(--ease) both;
}

.signature-card:hover {
    transform: translateY(-10px);
}

.signature-card__media {
    position: relative;
}

/* All three cards share one blob shape and one plate — the handoff is explicit that they are
   visually identical and differ only by staggered entry delay. */
.signature-card__frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--blob-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    background: var(--color-accent-100);
    animation: morph 17s ease-in-out infinite;
}

.signature-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.signature-card__crumbs {
    position: absolute;
    inset: 0;
    background-image: var(--crumbs);
    background-size: 140px 140px;
    opacity: .6;
}

.signature-card__plate-icon {
    position: relative;
    width: 110px;
    height: 110px;
}

.signature-card__price {
    position: absolute;
    bottom: -16px;
    inset-inline-start: 18px;
    background: var(--color-accent-2);
    color: var(--color-accent-700);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

.signature-card__badge {
    position: absolute;
    top: -14px;
    inset-inline-end: -6px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    animation: floatY 8s ease-in-out infinite;
}

.signature-card__badge .brand-icon {
    width: 34px;
    height: 34px;
}

.signature-card__body {
    padding: 34px 8px 0;
}

.signature-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    color: var(--color-accent-700);
}

.signature-card__latin {
    font-family: var(--lat);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
    margin-top: 4px;
}

/* ---------------------------------------------------------------------------------------------
   9. Category index
   --------------------------------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: start;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    background: var(--color-surface);
    border-radius: 36px;
    border: 0;
    padding: 26px 24px 28px;
    box-shadow: var(--shadow-soft);
    transition: transform .5s var(--ease), box-shadow .5s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lift);
}

.category-card__plate {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--color-accent-100);
    margin-bottom: 12px;
}

.category-card__plate .brand-icon {
    width: 46px;
    height: 46px;
}

.category-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 21px;
    color: var(--color-accent-700);
    line-height: 1.3;
}

.category-card__latin {
    font-family: var(--lat);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

.category-card__count {
    font-size: 13px;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* ---------------------------------------------------------------------------------------------
   10. Menu — search, chip rail, product grid
   --------------------------------------------------------------------------------------------- */

.menu__heading {
    margin-bottom: 26px;
}

.menu__search {
    font-family: var(--font-body);
    font-size: 16px;
    min-width: 270px;
    max-width: 340px;
    min-height: 54px;
    padding: 8px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    color: inherit;
}

.menu__search::placeholder {
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

/* The rail is load-bearing: fifteen categories never fit, so it scrolls with arrows and a
   masked fade at both ends. */
.chip-rail {
    position: sticky;
    top: 96px;
    z-index: 50;
    margin-bottom: 44px;
    padding: 10px 0;
}

.chip-rail__inner {
    position: relative;
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.chip-rail__track {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding: 9px 52px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}

.chip-rail__track::-webkit-scrollbar {
    display: none;
}

.chip-rail__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-accent-700);
    box-shadow: 0 4px 14px rgba(40, 48, 136, .16);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    font-family: var(--font-heading);
    transition: background .3s ease;
}

.chip-rail__arrow:hover {
    background: var(--color-accent-2-200);
}

.chip-rail__arrow--prev {
    inset-inline-start: 6px;
}

.chip-rail__arrow--next {
    inset-inline-end: 6px;
}

.chip {
    flex: none;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    transition: background .35s ease, color .35s ease;
}

.chip:hover {
    background: var(--color-accent-2-200);
}

.chip .brand-icon {
    width: 22px;
    height: 22px;
}

.chip--active {
    background: var(--color-accent);
    color: #fff;
}

.chip--active:hover {
    background: var(--color-accent);
    color: #fff;
}

.menu-group {
    margin-bottom: 84px;
}

.menu-group__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
}

.menu-group__plate {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--color-accent-2-100);
    display: grid;
    place-items: center;
    flex: none;
}

.menu-group__plate .brand-icon {
    width: 46px;
    height: 46px;
}

.menu-group__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 38px;
    color: var(--color-accent-700);
}

.menu-group__latin {
    font-family: var(--lat);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
}

/* One card design for all eighty-six items — no per-index variation. */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .5s var(--ease), box-shadow .5s ease;
    animation: riseIn .6s var(--ease) both;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lift);
}

/* Photographed variant: square, matching the 768x768 source assets. Never re-cropped. */
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-accent-100);
}

.product-card__zoom {
    position: absolute;
    inset: 0;
    transition: transform .8s var(--ease);
}

.product-card:hover .product-card__zoom {
    transform: scale(1.07);
}

.product-card__zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
}

.product-card__badge .brand-icon {
    width: 26px;
    height: 26px;
}

/* Unphotographed variant: an illustrated plate rather than an empty box. About half the
   catalogue has no photograph yet, so this is a first-class state, not a fallback. */
.product-card__plate {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: var(--color-accent-100);
    overflow: hidden;
}

.product-card__plate-crumbs {
    position: absolute;
    inset: 0;
    background-image: var(--crumbs);
    background-size: 120px 120px;
    opacity: .55;
}

.product-card__plate-icon {
    position: relative;
    width: 82px;
    height: 82px;
    transition: transform .6s var(--ease);
}

.product-card:hover .product-card__plate-icon {
    transform: translateY(-6px) rotate(-4deg);
}

.product-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 23px;
    color: var(--color-accent-700);
}

.price-pill {
    margin-top: 14px;
    display: inline-flex;
    align-self: flex-start;
    align-items: baseline;
    gap: 7px;
    background: var(--color-accent-2);
    color: var(--color-accent-700);
    border-radius: 999px;
    padding: 8px 18px;
}

.price-pill__value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
}

.price-pill__unit {
    font-size: 12px;
    opacity: .75;
}

/* Empty category and no-results panels. */
.panel {
    position: relative;
    overflow: hidden;
    background: var(--color-accent-2-100);
    border-radius: 44px;
    padding: 64px 32px;
    text-align: center;
}

.panel__blob {
    position: absolute;
    inset-inline-start: -40px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-accent-2) 30%, transparent);
}

.panel__content {
    position: relative;
}

.panel__icon {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--color-surface);
    margin: 0 auto 22px;
    box-shadow: var(--shadow-soft);
    animation: floatY 8s ease-in-out infinite;
}

.panel__icon .brand-icon {
    width: 56px;
    height: 56px;
}

.panel__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--color-accent-700);
}

.panel__text {
    font-size: 16px;
    color: color-mix(in srgb, var(--color-text) 62%, transparent);
    margin-bottom: 24px;
}

.no-results {
    padding: 80px 0;
    text-align: center;
}

.no-results__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--color-accent-700);
}

.no-results__text {
    font-size: 16px;
    color: color-mix(in srgb, var(--color-text) 60%, transparent);
    margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------------------------
   11. About
   --------------------------------------------------------------------------------------------- */

.about {
    position: relative;
    margin-top: 120px;
    scroll-margin-top: var(--nav-offset);
}

.about__body {
    background: var(--color-accent);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about__orb {
    position: absolute;
    inset-inline-end: -120px;
    top: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: color-mix(in srgb, #fff 6%, transparent);
    animation: floatSlow 16s ease-in-out infinite;
}

.about__orb--lime {
    inset-inline-end: auto;
    inset-inline-start: -80px;
    top: auto;
    bottom: -100px;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--color-accent-2) 12%, transparent);
    animation: floatSlow 19s ease-in-out infinite 2s;
}

.about__grid {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding: 24px 24px 90px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    align-items: center;
}

.about__figure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.about__frame {
    position: relative;
    width: 84%;
    aspect-ratio: 1 / 1;
    border-radius: 44% 56% 40% 60% / 56% 42% 58% 44%;
    overflow: hidden;
    animation: morph 20s ease-in-out infinite;
    box-shadow: var(--shadow-lift);
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__badge {
    position: absolute;
    bottom: 4%;
    inset-inline-start: 2%;
    background: var(--color-accent-2);
    color: var(--color-accent-700);
    border-radius: 999px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    box-shadow: var(--shadow-soft);
    animation: floatY 9s ease-in-out infinite;
}

.about__eyebrow {
    display: inline-block;
    background: color-mix(in srgb, #fff 16%, transparent);
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
}

.about__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.6vw, 56px);
    margin-bottom: 24px;
}

.about__title em {
    font-style: normal;
    color: var(--color-accent-2);
}

.about__paragraph {
    font-size: 18px;
    line-height: 1.95;
    color: color-mix(in srgb, #fff 88%, transparent);
    max-width: 50ch;
    text-wrap: pretty;
}

.about__paragraph + .about__paragraph {
    margin-top: 18px;
}

.about__tags {
    display: flex;
    gap: 12px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.about__tag {
    background: color-mix(in srgb, #fff 14%, transparent);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 15px;
}

/* ---------------------------------------------------------------------------------------------
   12. Visit
   --------------------------------------------------------------------------------------------- */

.visit {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding: 60px 24px 110px;
    scroll-margin-top: var(--nav-offset);
}

.visit__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    align-items: start;
}

.visit-card {
    background: var(--color-surface);
    border-radius: 44px;
    padding: 38px 32px;
    box-shadow: var(--shadow-soft);
}

.visit-card:hover {
    transform: translateY(-10px);
}

/* Offsets the middle card, as in the design. */
.visit-card--lime {
    background: var(--color-accent-2-100);
    margin-top: 26px;
}

/* Solid blue plate with the illustration forced to white — the raw SVGs are too low-contrast
   to read on a light plate at this size. */
.visit-card__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-bottom: 22px;
}

.visit-card__icon .brand-icon {
    width: 42px;
    height: 42px;
}

.visit-card__title {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--color-accent-700);
}

.visit-card__text {
    font-size: 17px;
    line-height: 1.9;
    color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.visit-card__phone {
    font-family: var(--lat);
    font-size: 28px;
    letter-spacing: .06em;
    color: var(--color-accent-700);
}

.visit-card__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 17px;
}

.map {
    margin-top: 30px;
    background: var(--color-surface);
    border-radius: 44px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.map__frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--color-accent-100);
}

.map__frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;

    /* Tints Google's default palette towards the brand blue. */
    filter: grayscale(1) sepia(1) hue-rotate(192deg) saturate(2.2) brightness(1.04) contrast(.96);
}

.map__link {
    position: absolute;
    inset-inline-start: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 10px 26px rgba(40, 48, 136, .32);
    transition: transform .3s var(--ease);
}

.map__link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.map__link .brand-icon {
    width: 22px;
    height: 22px;
}

/* ---------------------------------------------------------------------------------------------
   13. Footer
   --------------------------------------------------------------------------------------------- */

.footer {
    background: var(--color-accent-900);
    color: #fff;
    border-radius: 56px 56px 0 0;
    padding: 52px 24px 40px;
}

.footer__inner {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}

.footer__logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-accent-2);
}

.footer__legal {
    font-size: 14px;
    color: color-mix(in srgb, #fff 60%, transparent);
}

.footer__credit {
    color: var(--color-accent-2);
    font-weight: 700;
}

.footer__credit:hover {
    color: var(--color-accent-2-300);
}

/* ---------------------------------------------------------------------------------------------
   14. Loading and error states
   --------------------------------------------------------------------------------------------- */

.state-panel {
    max-width: 720px;
    margin: 120px auto;
    padding: 56px 32px;
    text-align: center;
    background: var(--color-surface);
    border-radius: 44px;
    box-shadow: var(--shadow-soft);
}

.state-panel__title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-accent-700);
    margin-bottom: 10px;
}

.state-panel__text {
    font-size: 16px;
    color: color-mix(in srgb, var(--color-text) 65%, transparent);
    margin-bottom: 24px;
}

/* Skeleton cards shown while the menu is being fetched, so the layout does not jump when it
   arrives. */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: var(--color-surface);
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.skeleton-card__media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, var(--color-accent-100) 25%, var(--color-neutral-100) 50%, var(--color-accent-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-card__body {
    padding: 22px 24px 26px;
    display: grid;
    gap: 10px;
}

.skeleton-card__line {
    height: 14px;
    border-radius: 999px;
    background: var(--color-neutral-200);
}

.skeleton-card__line--short {
    width: 45%;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
