/* ==========================================================
   FLORIAN RISTORANTE — DARK & MOODY PREMIUM THEME
   ========================================================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-overlay: rgba(10, 10, 10, 0.85);
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.35s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================================
   TICKER
   ========================================================== */

.ticker {
    background: var(--gold);
    color: var(--bg-dark);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-track span {
    padding-right: 4rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
}

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

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

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

.cta-nav {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    transition: var(--transition);
}

.cta-nav:hover {
    background: var(--gold);
    color: var(--bg-dark) !important;
}

.cta-nav::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    background-image: url('../images/hero_bg_0001.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================
   ABOUT
   ========================================================== */

.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3/4;
    background: var(--bg-card);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    position: relative;
    z-index: 1;
}

.about-image:hover img {
    transform: scale(1.05);
}

.img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
    z-index: 0;
}

/* ==========================================================
   MENU
   ========================================================== */

.menu-section {
    padding: 8rem 0;
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--text-primary);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.tab-btn:hover {
    border-color: var(--gold);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
}

.tab-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
}

.menu-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.menu-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.menu-line {
    flex: 1;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    min-width: 20px;
}

.menu-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.menu-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==========================================================
   GALLERY
   ========================================================== */

.gallery {
    padding: 8rem 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.2rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-card);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    position: relative;
    z-index: 1;
}

.masonry-item:hover img {
    transform: scale(1.08);
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

/* ==========================================================
   BOOKING
   ========================================================== */

.booking {
    padding: 8rem 0;
    background: var(--bg-card);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.booking-info h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.booking-info p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-list a {
    color: var(--gold);
    border-bottom: 1px solid transparent;
}

.contact-list a:hover {
    border-bottom-color: var(--gold);
}

.booking-form {
    background: var(--bg-dark);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 2px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================
   MODAL
   ========================================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    border-radius: 4px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal[aria-hidden="false"] .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    padding: 5rem 0 0;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {
    .about-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid var(--border);
        transition: right 0.35s ease;
    }

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

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .masonry-item.tall,
    .masonry-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .menu-row {
        flex-wrap: wrap;
    }

    .menu-line {
        display: none;
    }

    .menu-price {
        width: 100%;
        text-align: left;
        margin-top: 0.2rem;
    }
}

@media (max-width: 480px) {
    .booking-form {
        padding: 1.5rem;
    }

    .about {
        padding: 5rem 0;
    }

    .menu-section,
    .gallery,
    .booking {
        padding: 5rem 0;
    }
}
