/* ============================================================
   LA NOSTRA PADRONA — Stylesheet
   Design inspired by Skyline Rooftop Bar Venice
   Color palette: Navy Blue + Light Orange + Gold
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary palette */
    --navy:         #1b2d4a;
    --navy-dark:    #0f1a2e;
    --navy-light:   #2a4060;
    --orange:       #d4864a;
    --orange-light: #e09860;
    --gold:         #c9952a;
    --gold-light:   #d4a83a;
    --sand:         #f0e4cf;
    --cream:        #f7f5eb;
    --cream-warm:   #f5efdc;

    /* Text */
    --text-light:   #f7f5eb;
    --text-dark:    #1b2d4a;
    --text-muted:   rgba(247, 245, 235, 0.6);

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --nav-right:    40px;
    --nav-top:      30px;

    /* Transitions */
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--navy-dark);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---------- Intro Video Overlay ---------- */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Feathered vignette — softens the video edge into the white background */
.intro-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.85) 60%,
        white 72%
    );
    pointer-events: none;
    z-index: 1;
}

.intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(27, 45, 74, 0.5);
    background: rgba(27, 45, 74, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(27, 45, 74, 0.2);
    border-radius: 50px;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.intro-skip:hover {
    color: var(--navy);
    background: rgba(27, 45, 74, 0.1);
    border-color: rgba(27, 45, 74, 0.4);
}

/* ---------- Navigation ---------- */
.main-nav {
    position: fixed;
    top: var(--nav-top);
    right: var(--nav-right);
    z-index: 1000;
    text-align: right;
    transition: all 0.4s var(--ease);
    padding: 18px 22px 20px;
    border-radius: 16px;
    background: rgba(15, 26, 46, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links {
    list-style: none;
    margin-bottom: 18px;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    transition: opacity 0.3s var(--ease);
    display: inline-block;
}

.nav-links a:hover {
    opacity: 0.6;
}

.lang-toggle {
    opacity: 0.5 !important;
    cursor: pointer;
}

.lang-toggle:hover {
    opacity: 0.8 !important;
}

.nav-reserve-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    border: 1px solid rgba(247, 245, 235, 0.7);
    border-radius: 50px;
    padding: 10px 28px;
    transition: all 0.3s var(--ease);
}

.nav-reserve-btn:hover {
    background-color: var(--text-light);
    color: var(--navy);
}

/* Nav on light backgrounds — backdrop keeps it readable */
.main-nav.scrolled {
    background: rgba(15, 26, 46, 0.55);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    width: 28px;
    height: 20px;
    position: relative;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    height: 1.5px;
    background-color: var(--cream);
    border-radius: 1px;
    position: absolute;
    right: 0;
    transition: all 0.4s var(--ease-out);
}

/* Staggered widths — elegant cascading lines */
.nav-hamburger span:nth-child(1) { width: 100%; top: 0; }
.nav-hamburger span:nth-child(2) { width: 60%;  top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { width: 30%;  bottom: 0; }

/* Open state — lines expand and rotate into an X */
.nav-hamburger.open span:nth-child(1) {
    width: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    width: 0;
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    width: 100%;
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 26, 46, 0.3) 0%,
        rgba(15, 26, 46, 0.1) 40%,
        rgba(15, 26, 46, 0.4) 70%,
        rgba(15, 26, 46, 0.7) 100%
    );
}

.hero-text {
    position: absolute;
    bottom: -0.05em;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0 20px;
    line-height: 0.82;
    pointer-events: none;
}

.hero-line {
    display: block;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(60px, 14vw, 220px);
    color: var(--cream);
    text-transform: capitalize;
    letter-spacing: -0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Content Sections (Sticky Stacking) ---------- */
.section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

.section__content {
    text-align: center;
    padding: 60px 20px;
}

.section__heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(50px, 10vw, 130px);
    line-height: 0.85;
    text-transform: capitalize;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.section__heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.section__link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out) 0.2s, transform 0.8s var(--ease-out) 0.2s;
}

.section__link.visible {
    opacity: 1;
    transform: translateY(0);
}

.section__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.section__link:hover::after {
    width: 100%;
    left: 0;
}

.section__link--dark {
    color: var(--text-dark);
}

/* --- Section color variants (z-index for stacking order) --- */
.section--navy {
    background-color: var(--navy);
    color: var(--cream);
    z-index: 2;
}

.section--gold {
    background-color: var(--gold);
    color: var(--cream);
    z-index: 3;
}

.section--sand {
    background-color: var(--sand);
    color: var(--navy);
    z-index: 4;
}

.section--sand .section__heading {
    color: var(--navy);
}

.section--orange {
    background-color: var(--orange);
    color: var(--cream);
    z-index: 6;
}

/* ---------- Gallery Section ---------- */
.section--gallery {
    background-color: var(--navy-dark);
    color: var(--cream);
    z-index: 5;
}


/* ---------- Signature Dishes Cards ---------- */
.dishes-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.dish-card {
    flex: 1;
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(247, 245, 235, 0.25);
}

.dish-card__course {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(247, 245, 235, 0.65);
    margin-bottom: 12px;
}

.dish-card__name {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 10px;
}

.dish-card__alt {
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    color: rgba(247, 245, 235, 0.55);
    line-height: 1.4;
}

/* Menu image styles removed — full menu is now on menu.html */

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 7;
    background-color: var(--cream-warm);
    color: var(--navy);
    padding: 50px 40px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr auto;
    gap: 30px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__logo-img {
    width: 110px;
    height: auto;
    opacity: 0.9;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 14px;
    font-style: italic;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--navy);
    line-height: 1.8;
    transition: opacity 0.3s var(--ease);
}

.footer__link:hover {
    opacity: 0.6;
}

.footer__link--underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--navy);
    line-height: 1.8;
}

.btn-reserve {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cream);
    background-color: var(--navy);
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s var(--ease);
    text-align: center;
    max-width: 200px;
}

.btn-reserve:hover {
    background-color: var(--navy-light);
    transform: translateY(-1px);
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(27, 45, 74, 0.3);
    border-radius: 50%;
    color: var(--navy);
    transition: all 0.3s var(--ease);
}

.social-icon:hover {
    background-color: var(--navy);
    color: var(--cream);
    border-color: var(--navy);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(27, 45, 74, 0.15);
    font-size: 12px;
    color: rgba(27, 45, 74, 0.5);
    max-width: 1400px;
    margin: 0 auto;
}

.footer__bottom-link {
    font-size: 12px;
    color: rgba(27, 45, 74, 0.5);
    transition: color 0.3s;
}

.footer__bottom-link:hover {
    color: var(--navy);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(27, 45, 74, 0.7);
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(4px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1000px) {
    .main-nav {
        right: 25px;
        top: 20px;
    }

    .nav-links a {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .nav-reserve-btn {
        font-size: 11px;
        padding: 8px 22px;
    }

    .hero-line {
        font-size: clamp(50px, 12vw, 160px);
    }

    .section__heading {
        font-size: clamp(45px, 9vw, 100px);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 0 40px;
    }

    .footer__logo {
        grid-column: 1 / -1;
    }

    /* Gallery grid removed — now text card */

    /* Dish cards tighter on tablet */
    .dishes-grid {
        gap: 24px;
        max-width: 100%;
        padding: 0 40px;
    }

    .dish-card__name {
        font-size: clamp(18px, 2.5vw, 24px);
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 690px) {
    :root {
        --nav-right: 20px;
        --nav-top: 15px;
    }

    .main-nav {
        right: var(--nav-right);
        top: var(--nav-top);
        padding: 14px 18px 16px;
        background: rgba(15, 26, 46, 0.5);
    }

    .nav-hamburger {
        display: block;
    }

    .nav-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease), margin 0.3s var(--ease);
        margin-bottom: 0;
    }

    .nav-links.open {
        max-height: 320px;
        opacity: 1;
        margin-top: 16px;
        margin-bottom: 14px;
    }

    .nav-links a {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .nav-reserve-btn {
        display: none;
        font-size: 11px;
        padding: 8px 22px;
        letter-spacing: 1.5px;
    }

    .nav-reserve-btn.open {
        display: inline-block;
    }

    .hero {
        height: 60vh;
        height: 60dvh;  /* dynamic viewport height — respects browser chrome */
        min-height: 300px;
    }

    .hero-line {
        font-size: clamp(40px, 13vw, 100px);
    }

    .hero-text {
        padding: 0 15px;
        bottom: 25px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Disable sticky stacking on mobile for performance */
    .section {
        position: relative;
        min-height: auto;
        padding: 80px 0;
    }

    .section__heading {
        font-size: clamp(36px, 11vw, 70px);
    }

    .section__link {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .section--gold {
        padding: 60px 0;
    }

    /* Dish cards stack vertically on mobile */
    .dishes-grid {
        flex-direction: column;
        gap: 30px;
        max-width: 320px;
    }

    .dish-card {
        padding-top: 22px;
    }

    .dish-card__name {
        font-size: 22px;
    }

    .site-footer {
        padding: 40px 20px 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__col {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }

    .intro-skip {
        bottom: 30px;
        right: 20px;
        font-size: 11px;
        padding: 8px 22px;
    }
}

/* ---------- Utility ---------- */
.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;
}
