/* ============================================
   Nana Sushi — design system
   ============================================ */
:root {
    --color-bg: #ffffff;
    --color-ink: #0d0d0d;
    --color-ink-soft: #4a4a4a;
    --color-ink-muted: #8a8a8a;
    --color-line: #ececec;
    --color-line-soft: #f4f4f4;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --color-accent: #a8231d;

    --header-h: 64px;
    --container-max: 1200px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-ink);
    background: var(--color-bg);
    min-height: 100vh;
    min-height: 100svh;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }


/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-h);
    padding: 0 16px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    transition: background 320ms var(--ease), backdrop-filter 320ms var(--ease), border-bottom-color 320ms var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: rgba(0, 0, 0, 0.10);
}

.header-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink);
    border-radius: 0;
    transition: background 180ms var(--ease), transform 180ms var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.header-btn:hover { background: var(--color-line-soft); }
.header-btn:active { transform: scale(0.94); }

.header-btn--menu { justify-self: start; }
.header-btn--cart { justify-self: end; position: relative; }

.hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    width: 22px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 220ms var(--ease), opacity 200ms var(--ease);
}

.icon-cart {
    width: 26px;
    height: 26px;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-pill);
}

.header-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
}
.header-logo img {
    height: 26px;
    width: auto;
}


/* ============================================
   HERO — light cream bg with sushi illustration
   ============================================ */
.hero {
    position: relative;
    min-height: 60vh;
    padding: 64px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #f0eae0;
    background-image: url('/assets/img/hero-bg.jpg');
    background-image: image-set(
        url('/assets/img/hero-bg.webp') type('image/webp') 1x,
        url('/assets/img/hero-bg.jpg') type('image/jpeg') 1x
    );
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 11vw, 4rem);
    font-weight: 500;
    line-height: 1;
    color: var(--color-ink);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    text-wrap: balance;
}
.hero__sub {
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 3.4vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-ink-soft);
    letter-spacing: 0.005em;
    margin-bottom: 32px;
    text-wrap: balance;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hero .btn-primary {
    position: relative;
    background: transparent;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none;
    isolation: isolate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero .btn-primary svg { width: 12px; height: 12px; }
.hero .btn-primary::before {
    content: "";
    position: absolute;
    inset: -3px -5px;
    background-color: #ee5060;
    background-image:
        /* 3 ostre, wąskie luki gdzie pędzel "podrapał" — różne pozycje, kąty, opacity */
        linear-gradient(94deg,
            transparent 0%,
            transparent 19%,
            rgba(248, 244, 232, 0.78) 19.4%,
            rgba(248, 244, 232, 0.45) 20.4%,
            transparent 21.2%,
            transparent 100%),
        linear-gradient(96deg,
            transparent 0%,
            transparent 47%,
            rgba(248, 244, 232, 0.55) 47.5%,
            rgba(248, 244, 232, 0.30) 48.6%,
            transparent 49.5%,
            transparent 100%),
        linear-gradient(93deg,
            transparent 0%,
            transparent 70%,
            rgba(248, 244, 232, 0.68) 70.3%,
            rgba(248, 244, 232, 0.40) 71.4%,
            transparent 72.2%,
            transparent 100%),
        /* uneven base color */
        radial-gradient(ellipse 75% 95% at 30% 35%, rgba(255, 160, 170, 0.30) 0%, transparent 65%),
        radial-gradient(ellipse 65% 80% at 78% 70%, rgba(176, 38, 55, 0.38) 0%, transparent 60%),
        radial-gradient(ellipse 110% 60% at 50% 105%, rgba(150, 25, 45, 0.22) 0%, transparent 75%);
    filter: url(#brush-stroke);
    z-index: -1;
    transition: transform 220ms var(--ease), filter 220ms var(--ease);
}
.hero .btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
}
.hero .btn-primary:hover::before {
    background-color: #db3f4d;
    transform: scale(1.03);
}
.hero .btn-primary:active::before {
    transform: scale(0.98);
}
@supports not (filter: url(#x)) {
    .hero .btn-primary::before { filter: none; }
}


/* ============================================
   PRIMARY CTA
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--color-ink);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 0;
    transition: transform 220ms var(--ease), background 220ms var(--ease), box-shadow 280ms var(--ease);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    will-change: transform;
}
.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg {
    transition: transform 240ms var(--ease);
}
.btn-primary:hover svg { transform: translateX(3px); }


/* ============================================
   TABLET (≥640px)
   ============================================ */
@media (min-width: 640px) {
    :root { --header-h: 72px; }
    .site-header { padding: 0 28px; }
    .header-logo img { height: 30px; }
    .hero { min-height: 65vh; padding: 80px 32px; }
    .hero__lead { font-size: 1.85rem; line-height: 1.2; margin-bottom: 40px; }
    .btn-primary { padding: 18px 36px; font-size: 1.05rem; }
    .hero .btn-primary { padding: 13px 28px; font-size: 0.92rem; }
}


/* ============================================
   DESKTOP (≥960px)
   ============================================ */
@media (min-width: 960px) {
    :root { --header-h: 80px; }
    .site-header { padding: 0 48px; }
    .header-logo img { height: 34px; }
    .hero { min-height: 68vh; padding: 100px 48px; }
    .hero__inner { max-width: 720px; }
    .hero__lead { font-size: 2.4rem; line-height: 1.2; }
    .hero .btn-primary { padding: 14px 32px; font-size: 0.95rem; }
}


/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
