/* ========================================
   Meglios — Premium Dark Luxury Restaurant
   Colors: Plum (#1a0a2e, #2d1b4e, #4a2c6e) + Amber/Gold (#d4a84b, #f0c75e)
   Fonts: Cormorant Garamond + Inter
======================================== */

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

:root {
    --plum-darkest: #0d0514;
    --plum-dark: #1a0a2e;
    --plum-mid: #2d1b4e;
    --plum-light: #4a2c6e;
    --plum-glow: #6b3fa0;
    --gold: #d4a84b;
    --gold-light: #f0c75e;
    --gold-pale: #fde8a0;
    --cream: #f5f0e8;
    --white: #ffffff;
    --text-muted: #9b8fb0;
    --text-light: #c4b8d4;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 5, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    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(--gold);
}

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

.nav-cta {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 10px 24px;
    font-size: 0.8125rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
}

.nav-cta:hover {
    color: var(--plum-darkest) !important;
}

.nav-cta::before {
    left: 0;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    display: block;
}

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

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

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

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(13,5,20,0.3) 0%, rgba(13,5,20,0.1) 40%, rgba(13,5,20,0.8) 100%),
        linear-gradient(90deg, rgba(13,5,20,0.7) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 100px;
    background: rgba(212, 168, 75, 0.06);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 700px;
}

.gold-text {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-primary {
    background: var(--gold);
    color: var(--plum-darkest);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 168, 75, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Floating Stat Cards */
.hero-cards {
    position: absolute;
    right: 8%;
    bottom: 12%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(26, 10, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    animation: floatCard 3s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
    margin-left: 40px;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

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

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 168, 75, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- SECTIONS ---- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 300;
}

/* ---- ABOUT ---- */
.about {
    background: var(--plum-darkest);
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    width: 75%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--plum-dark);
    z-index: 3;
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent-box {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: var(--plum-mid);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 12px;
    padding: 24px 28px;
    z-index: 4;
    text-align: center;
}

.about-accent-box .accent-number {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.about-accent-box .accent-year {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.about-content .section-label {
    margin-bottom: 16px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--cream);
    font-weight: 400;
}

.about-feature svg {
    flex-shrink: 0;
}

/* ---- MENU ---- */
.menu {
    background: linear-gradient(180deg, var(--plum-darkest) 0%, var(--plum-dark) 50%, var(--plum-darkest) 100%);
}

.menu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-tab {
    background: transparent;
    border: 1px solid rgba(212, 168, 75, 0.2);
    color: var(--text-muted);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.menu-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.menu-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--plum-darkest);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.menu-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    background: rgba(45, 27, 78, 0.4);
    border: 1px solid rgba(212, 168, 75, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.menu-item:hover {
    border-color: rgba(212, 168, 75, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.menu-item-img {
    height: 140px;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-item-body {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-item-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream);
}

.menu-item-tag {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-darkest);
    background: var(--gold);
    padding: 3px 8px;
    border-radius: 3px;
}

.menu-item-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.menu-item[data-category] {
    display: grid;
}

.menu-item.hidden {
    display: none;
}

/* ---- GALLERY ---- */
.gallery {
    background: var(--plum-darkest);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13,5,20,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    font-style: italic;
}

.gallery-item--wide {
    grid-column: span 7;
}

.gallery-item:not(.gallery-item--wide) {
    grid-column: span 5;
}

/* ---- RESERVE ---- */
.reserve {
    background: linear-gradient(180deg, var(--plum-darkest) 0%, var(--plum-dark) 100%);
}

.reserve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.reserve-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.reserve-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.reserve-detail {
    display: flex;
    gap: 16px;
}

.reserve-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.reserve-detail strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--cream);
    margin-bottom: 4px;
    font-weight: 500;
}

.reserve-detail p, .reserve-detail a {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.reserve-detail a:hover {
    color: var(--gold);
}

/* Form */
.reserve-form-wrap {
    background: rgba(45, 27, 78, 0.5);
    border: 1px solid rgba(212, 168, 75, 0.15);
    border-radius: 16px;
    padding: 40px;
}

.reserve-form h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(13, 5, 20, 0.6);
    border: 1px solid rgba(212, 168, 75, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--cream);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a84b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--plum-dark);
    color: var(--cream);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.form-success a {
    color: var(--gold);
    text-decoration: underline;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--plum-darkest);
    border-top: 1px solid rgba(212, 168, 75, 0.1);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 16px;
    font-weight: 300;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4,
.footer-hours h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul,
.footer-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 300;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
    gap: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 168, 75, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ---- ANIMATIONS ---- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-cards {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 60px;
        padding: 0 24px;
    }

    .stat-card {
        min-width: auto;
        flex: 1;
        min-width: 160px;
    }

    .stat-card:nth-child(2) {
        margin-left: 0;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-headline {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .reserve-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .gallery-item--wide {
        grid-column: span 12;
    }

    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 5, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(212, 168, 75, 0.15);
    }

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

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

    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

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

    .stat-card {
        min-width: 100%;
    }

    .section {
        padding: 80px 0;
    }

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

    .menu-item {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }

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

    .reserve-form-wrap {
        padding: 28px;
    }

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

    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 1;
        height: 260px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.8125rem;
        width: 100%;
        justify-content: center;
    }

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

    .menu-tabs {
        gap: 6px;
    }

    .menu-tab {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
}
