/* ============================================
   PIATTO RESTAURANT AND LOUNGE
   Bold Editorial · Midnight Blue + Mint
   ============================================ */

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

:root {
    --color-midnight: #0a1628;
    --color-midnight-light: #132240;
    --color-mint: #a8e6cf;
    --color-mint-dark: #7cc4a8;
    --color-cream: #f5f0e8;
    --color-cream-light: #faf7f2;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #6b6b6b;
    --color-border: rgba(168, 230, 207, 0.2);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-cream-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.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;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-mint);
    color: var(--color-midnight);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-sm);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- ICON --- */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* --- EYEBROW --- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint-dark);
    display: block;
    margin-bottom: var(--space-sm);
}

/* --- SECTION HEADLINE --- */
.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-midnight);
    margin-bottom: var(--space-lg);
}

.section-headline em {
    font-style: italic;
    color: var(--color-mint-dark);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--accent {
    background: var(--color-mint);
    color: var(--color-midnight);
}

.btn--accent:hover {
    background: var(--color-mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 230, 207, 0.3);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-midnight);
}

.btn--light:hover {
    background: var(--color-cream);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.btn--full {
    width: 100%;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-mint);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.primary-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    transition: color var(--transition);
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-mint);
    transition: width var(--transition);
}

.primary-nav a:hover {
    color: var(--color-white);
}

.primary-nav a:hover::after {
    width: 100%;
}

.primary-nav .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
}

/* --- NAV TOGGLE --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    background: var(--color-midnight);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(168, 230, 207, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: var(--space-2xl) 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.hero-headline em {
    font-style: italic;
    color: var(--color-mint);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.hero-detail .icon {
    color: var(--color-mint);
    width: 1rem;
    height: 1rem;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background: var(--color-mint);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.6;
}

/* --- PHILOSOPHY --- */
.philosophy {
    padding: var(--space-3xl) 0;
    background: var(--color-cream-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-2xl);
    align-items: start;
}

.philosophy-eyebrow-wrap {
    padding-top: 0.5rem;
}

.philosophy-content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* --- MENU --- */
.menu-section {
    padding: var(--space-3xl) 0;
    background: var(--color-midnight);
}

.menu-section .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.menu-section .section-headline {
    color: var(--color-white);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-num {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-mint);
    background: rgba(168, 230, 207, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.menu-items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--space-md);
}

.menu-items li:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-white);
}

.item-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

/* --- LOUNGE --- */
.lounge {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.lounge-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.lounge-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(10, 22, 40, 0.15);
}

.lounge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lounge-content .eyebrow {
    margin-bottom: var(--space-sm);
}

.lounge-content .section-headline {
    margin-bottom: var(--space-md);
}

.lounge-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.lounge-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lounge-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
}

.lounge-features .icon {
    color: var(--color-mint-dark);
    width: 1.125rem;
    height: 1.125rem;
}

/* --- GALLERY --- */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-cream-light);
}

.gallery .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- INFO STRIP --- */
.info-strip {
    background: var(--color-midnight-light);
    padding: var(--space-2xl) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.info-block {
    text-align: center;
}

.info-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-sm);
}

.info-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.info-text a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.info-text a:hover {
    color: var(--color-mint);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.cta-content .eyebrow {
    margin-bottom: var(--space-sm);
}

.cta-content .section-headline {
    margin-bottom: var(--space-md);
}

.cta-content .lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-midnight);
    transition: color var(--transition);
}

.cta-contact-item:hover {
    color: var(--color-mint-dark);
}

.cta-contact-item .icon {
    color: var(--color-mint-dark);
}

/* --- FORM --- */
.cta-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-cream-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-mint);
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(168, 230, 207, 0.15);
    border-radius: var(--radius-sm);
    color: var(--color-mint-dark);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--color-midnight);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.footer-brand .logo {
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.footer-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-mint);
}

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.8;
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        padding: var(--space-xl) 0;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-details {
        align-items: center;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-eyebrow-wrap {
        text-align: center;
    }

    .menu-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .lounge-grid {
        grid-template-columns: 1fr;
    }

    .lounge-image {
        order: 2;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav-toggle {
        display: flex;
        z-index: 200;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--color-midnight);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .primary-nav.open {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .primary-nav a {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-xl);
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-accent {
        width: 80px;
        height: 80px;
        bottom: -16px;
        left: -16px;
    }

    .menu-categories {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .info-block {
        text-align: left;
    }

    .cta-form-wrap {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
