/* ========================================
   Las Islitas — Classic & Elegant Restaurant
   Forest Green + Off-White Palette
======================================== */

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

:root {
    --forest: #1B4332;
    --forest-deep: #0D1F17;
    --forest-light: #2D6A4F;
    --forest-muted: #40916C;
    --cream: #FAF3E8;
    --cream-dark: #F0E8D8;
    --cream-light: #FFFDF8;
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --text-dark: #1A1A1A;
    --text-muted: #4A4A4A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
    --shadow-md: 0 8px 30px rgba(27, 67, 50, 0.12);
    --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
    line-height: 1.2;
}

em {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
}

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

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

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

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1.5px;
    background: var(--forest-muted);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--forest);
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
}

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

.navbar.scrolled {
    background: rgba(250, 243, 232, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    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: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--forest);
}

.logo-icon {
    color: var(--gold);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(250, 243, 232, 0.85);
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--cream);
}

.navbar.scrolled .nav-link {
    color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover {
    color: var(--forest);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--forest) !important;
    background: var(--cream);
    padding: 10px 22px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    background: var(--forest);
    color: var(--cream) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--forest-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--cream);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle {
    color: var(--forest);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-deep);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 31, 23, 0.92) 0%,
        rgba(27, 67, 50, 0.85) 50%,
        rgba(45, 106, 79, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    background: rgba(201, 168, 76, 0.08);
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--cream);
    max-width: 800px;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-headline em {
    color: var(--gold-light);
}

.hero-sub {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: rgba(250, 243, 232, 0.75);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-deep);
}

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

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(250, 243, 232, 0.35);
}

.btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(250, 243, 232, 0.1);
    transform: translateY(-2px);
}

/* --- Floating Stat Cards --- */
.hero-stats {
    position: absolute;
    bottom: 60px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(250, 243, 232, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 243, 232, 0.15);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 220px;
    color: var(--cream);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFloat 0.6s ease forwards;
}

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

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cream);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(250, 243, 232, 0.65);
    letter-spacing: 0.05em;
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--cream);
}

.about-img-secondary img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.about-pattern {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--forest-muted) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.3;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.9;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item svg {
    color: var(--forest);
    flex-shrink: 0;
}

/* --- Menu Section --- */
.menu {
    padding: 120px 0;
    background: var(--forest-deep);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--forest-muted), transparent);
}

.menu .section-label {
    color: var(--gold);
}

.menu .section-label::before {
    background: var(--gold);
}

.menu .section-title {
    color: var(--cream);
}

.menu .section-subtitle {
    color: rgba(250, 243, 232, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.menu-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1.5px solid rgba(250, 243, 232, 0.2);
    background: transparent;
    color: rgba(250, 243, 232, 0.7);
    cursor: pointer;
    transition: var(--transition);
}

.menu-tab:hover {
    border-color: rgba(250, 243, 232, 0.4);
    color: var(--cream);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    gap: 20px;
    background: rgba(250, 243, 232, 0.05);
    border: 1px solid rgba(250, 243, 232, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(250, 243, 232, 0.08);
    border-color: rgba(250, 243, 232, 0.15);
    transform: translateY(-2px);
}

.menu-item-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

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

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.menu-item-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: rgba(250, 243, 232, 0.55);
    line-height: 1.7;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    border-top: 1px solid rgba(250, 243, 232, 0.1);
}

.menu-note p {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: rgba(250, 243, 232, 0.5);
    font-style: italic;
}

/* --- Gallery Section --- */
.gallery {
    padding: 120px 0;
    background: var(--cream-dark);
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(13, 31, 23, 0.85), transparent);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

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

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

/* --- Visit Section --- */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    padding: 20px 0;
}

.visit-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    color: var(--forest);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-text strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--forest);
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.detail-text a {
    color: var(--forest-muted);
    transition: var(--transition);
}

.detail-text a:hover {
    color: var(--forest);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* --- Footer --- */
.footer {
    background: var(--forest-deep);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(250, 243, 232, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: rgba(250, 243, 232, 0.5);
    max-width: 300px;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(250, 243, 232, 0.55);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(250, 243, 232, 0.55);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--gold);
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(250, 243, 232, 0.35);
}

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="true"] {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 60px;
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
    }

    .about-img-secondary img {
        width: 280px;
        height: 280px;
    }

    .hero-stats {
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        bottom: 40px;
    }

    .stat-card {
        min-width: auto;
        padding: 18px 22px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-img-main img {
        height: 500px;
    }

    .about-img-secondary {
        right: 20px;
        bottom: -30px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 220px);
    }

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

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

    .visit-map {
        min-height: 350px;
    }

    .visit-map iframe {
        min-height: 350px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--forest-deep);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

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

    .nav-link {
        color: var(--cream) !important;
        font-size: 1.1rem;
    }

    .nav-cta {
        background: var(--gold) !important;
        color: var(--forest-deep) !important;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

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

    .hero-content {
        padding: 120px 24px 120px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        transform: none;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 24px 40px;
        max-width: 1280px;
        margin: 0 auto;
    }

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

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

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

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

    .gallery-item {
        height: 250px;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
    }

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

    .menu-item {
        flex-direction: column;
    }

    .menu-item-image {
        width: 100%;
        height: 180px;
    }

    .menu-item-content {
        padding: 16px 20px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
    .menu-item {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .menu-item.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
