/* Custom styles for Gorrono Ranch */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* Hero shapes */
.hero-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #C5D9C7 0%, #9BBF9C 100%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #E8F0E9 0%, #C5D9C7 100%);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #2D5A3D;
    opacity: 0.06;
    border-radius: 24px;
    top: 25%;
    right: 15%;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 90, 61, 0.06);
    top: 40%;
    left: 5%;
    transform: rotate(-15deg);
}

/* Hero content animation */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s ease forwards 0.3s;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateX(30px);
    animation: heroIn 0.8s ease forwards 0.5s;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Floating cards */
.hero-float-card {
    position: absolute;
    z-index: 10;
}

.float-card-1 {
    top: 15%;
    left: -30px;
    animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
    bottom: 20%;
    right: -20px;
    animation: float2 5s ease-in-out infinite;
}

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

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Marquee */
.marquee-track {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

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

/* Menu tabs */
.menu-tab {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid #E4D9C8;
    background: transparent;
    color: #2D5A3D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: #2D5A3D;
    background: rgba(45, 90, 61, 0.05);
}

.menu-tab.active {
    background: #2D5A3D;
    border-color: #2D5A3D;
    color: #FDFCFA;
}

/* Menu items */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.menu-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #142A1C;
}

.menu-item-price {
    font-weight: 700;
    color: #2D5A3D;
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.menu-item-desc {
    color: #6B8F71;
    font-size: 0.9rem;
    line-height: 1.6;
}

.menu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.menu-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: #E8F0E9;
    color: #2D5A3D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-tag.popular {
    background: #2D5A3D;
    color: #FDFCFA;
}

/* Story section */
.story-img-main {
    border-radius: 1.5rem;
    overflow: hidden;
}

.story-img-accent {
    border: 4px solid #1C3A27;
}

/* Experience cards */
.experience-card {
    opacity: 0;
    transform: translateY(30px);
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 42, 28, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu */
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Contact form */
.contact-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F0E8;
}

::-webkit-scrollbar-thumb {
    background: #9BBF9C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D5A3D;
}

/* Responsive */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-rect-1 {
        width: 80px;
        height: 80px;
    }
    
    .float-card-1 {
        left: -10px;
    }
    
    .float-card-2 {
        right: -10px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    @media (min-width: 640px) {
        #hero h1 {
            font-size: 4rem;
        }
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .marquee-content {
        animation: none;
    }
}
