@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

:root {
    --brand-blue: #1a4d8c;
    --brand-blue-dark: #143a6b;
    --brand-blue-light: #2563a8;
    --color-white: #ffffff;
    --color-white-muted: rgba(255, 255, 255, 0.7);
    --font-primary: 'El Messiri', serif;
    --header-height: clamp(56px, 10vw, 65px);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iconify-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Header ── */

.menu-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    height: var(--header-height);
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(26, 77, 140, 0.75);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
}

.header-spacer {
    justify-self: start;
    min-width: 0;
}

.header-logo-link {
    justify-self: center;
    line-height: 0;
}

.header-logo {
    height: clamp(28px, 7vw, 38px);
    width: auto;
}

.header-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-white-muted);
    text-decoration: none;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 600;
    white-space: nowrap;
    min-height: 44px;
    transition: color 0.2s ease;
}

.header-link iconify-icon {
    font-size: 1.15em;
}

.header-link:hover {
    color: var(--color-white);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-white-muted);
    text-decoration: none;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 600;
    justify-self: start;
    min-height: 44px;
    transition: color 0.2s ease;
}

.btn-back iconify-icon {
    font-size: 1.2em;
}

.btn-back:hover {
    color: var(--color-white);
}

/* ── Landing ── */

.landing-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
}

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landing-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(32px) saturate(1.15);
    transform: scale(1.12);
    will-change: transform;
}

.landing-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 55% at 50% 15%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 90% 85%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 5% 60%, rgba(0, 0, 0, 0.28) 0%, transparent 42%),
        conic-gradient(
            from 225deg at 50% 55%,
            var(--brand-blue) 0deg,
            rgba(20, 58, 107, 0.96) 95deg,
            rgba(37, 99, 168, 0.9) 190deg,
            rgba(26, 77, 140, 0.94) 285deg,
            var(--brand-blue) 360deg
        );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.floating-pizzas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-pizza {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background-image: url('assets/pizza-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.2;
    animation: drift var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.16;
    }
    50% {
        transform: translate(10px, -14px) scale(1.05);
        opacity: 0.26;
    }
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    padding-bottom: calc(clamp(1.5rem, 5vw, 3rem) + env(safe-area-inset-bottom, 0));
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo {
    width: min(320px, 82vw);
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
    filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.35));
}

.coming-soon {
    font-size: clamp(2.4rem, 10vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.1;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.7rem, 2.5vw, 0.85rem) clamp(1.6rem, 5vw, 2.4rem);
    min-height: 48px;
    min-width: min(100%, 260px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: var(--color-white);
    text-decoration: none;
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.landing-btn iconify-icon {
    font-size: 1.2em;
}

.landing-btn:hover {
    background: var(--color-white);
    color: var(--brand-blue);
    border-color: var(--color-white);
}

/* ── Menu page ── */

.menu-viewer-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    background-color: var(--brand-blue-dark);
    overflow: hidden;
}

.menu-viewer-body .menu-header {
    background: rgba(26, 77, 140, 0.92);
    flex-shrink: 0;
}

.pdf-viewer-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.pdf-viewer-container object,
.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

.pdf-viewer-container p {
    color: var(--color-white-muted);
    text-align: center;
    padding: clamp(1rem, 4vw, 2rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.7;
}

.pdf-viewer-container a {
    color: var(--color-white);
    text-decoration: underline;
    font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 380px) {
    .header-link span,
    .btn-back span {
        display: none;
    }

    .header-link,
    .btn-back {
        justify-content: center;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .floating-pizza:nth-child(n+5) {
        display: none;
    }
}

@media (min-width: 768px) {
    .landing-main {
        max-width: 800px;
    }

    .hero-logo {
        width: min(360px, 45vw);
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        width: 380px;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .landing-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: clamp(1rem, 3vw, 2rem);
        max-width: 900px;
    }

    .hero-logo {
        width: min(200px, 30vw);
        margin-bottom: 0;
    }

    .coming-soon {
        margin-bottom: 0;
        width: 100%;
        order: 2;
    }

    .landing-btn {
        order: 3;
        min-width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-pizza {
        animation: none;
    }

    .landing-bg-img {
        transform: none;
    }
}
