/* ===================================
   Palermo — Styles
   =================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Custom Properties ── */
:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fffcf5;
    --cream-100: #fdf8ef;
    --cream-200: #fdf0dc;
    --cream-300: #fae2b8;
    --cream-400: #f5c77e;
    --cream-500: #f5a623;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes scrollLine {
    0% { height: 0; opacity: 0; }
    50% { height: 24px; opacity: 1; }
    100% { height: 24px; opacity: 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--emerald-800);
    color: var(--cream-50);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.3);
}
.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--emerald-800);
    border: 2px solid var(--emerald-200);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-400);
    transform: translateY(-2px);
}

/* ── Section Tags ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--emerald-100);
    color: var(--emerald-800);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.section-tag-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream-200);
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--emerald-950);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-title-light {
    color: var(--cream-50);
}

/* ── Side Navigation ── */
.side-nav {
    background: linear-gradient(180deg, var(--emerald-950) 0%, var(--emerald-900) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    position: relative;
}

.nav-logo-text {
    position: absolute;
    left: calc(100% + 12px);
    white-space: nowrap;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}
.nav-item:hover,
.nav-item.active {
    color: var(--cream-200);
    background: rgba(255, 255, 255, 0.08);
}
.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
}

.nav-dot {
    position: absolute;
    left: -12px;
    width: 4px;
    height: 24px;
    background: var(--cream-400);
    border-radius: 4px;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}
.nav-item.active .nav-dot {
    opacity: 1;
    transform: scaleY(1);
}

.nav-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    background: var(--emerald-950);
    color: var(--cream-200);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-item:hover .nav-tooltip {
    opacity: 1;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.nav-social:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Hero Section ── */
.section-hero {
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, #f0fdf4 100%);
    position: relative;
}

.hero-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: 30%;
}
.hero-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
}
.hero-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 95, 70, 0.06) 0%, transparent 70%);
    top: 30%;
    left: 15%;
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 48%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 48px;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--cream-50) 0%, transparent 30%);
    border-radius: 0 0 0 48px;
}

.hero-float-card {
    position: absolute;
    bottom: 15%;
    left: -40px;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.scroll-indicator {
    z-index: 2;
}
.scroll-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--emerald-400), transparent);
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

/* ── About Section ── */
.section-about {
    background: var(--cream-50);
}

.about-img-main {
    box-shadow: 0 25px 80px rgba(6, 95, 70, 0.15);
}

.about-img-secondary {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-experience-badge {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.about-feature-icon {
    transition: transform 0.3s ease;
}
.about-feature:hover .about-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ── Menu Section ── */
.section-menu {
    background: linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-900) 50%, #046b4a 100%);
}

.menu-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 8px;
    transition: all 0.4s ease;
    backdrop-blur: 10px;
}
.menu-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
}
.menu-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.3) 0%, transparent 50%);
    border-radius: 16px;
}

/* ── Hours Section ── */
.section-hours {
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-50) 100%);
}

/* ── Contact Section ── */
.section-contact {
    background: linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-900) 100%);
}

/* ── Footer ── */
.footer {
    background: var(--emerald-950);
}

/* ── Mobile Header ── */
.mobile-header {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ── Mobile Menu ── */
.mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
    padding: 12px 24px;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.mobile-link:last-child::after {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .side-nav {
        display: none;
    }
    
    main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-image-container {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta a {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}

@media (max-width: 767px) {
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -60px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 80%;
    }
    
    .about-experience-badge {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}
