/* ============================================
   Oakwood Lounge — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #781F2E;
    color: #FAD4C0;
}

/* --- Geometric Background Shapes --- */
.geo-shapes {
    z-index: 0;
    pointer-events: none;
}

.geo-shape-1 {
    position: absolute;
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 208, 185, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-shape-2 {
    position: absolute;
    top: 60%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 31, 46, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.geo-shape-3 {
    position: absolute;
    top: 40%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 148, 133, 0.06) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 15s ease-in-out infinite;
}

.geo-shape-4 {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(249, 208, 185, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 18s ease-in-out infinite;
}

.geo-shape-5 {
    position: absolute;
    top: 25%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(120, 31, 46, 0.05) 0%, transparent 70%);
    border-radius: 20% 80% 40% 60% / 60% 30% 70% 40%;
    animation: morphShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(5deg); }
    66% { transform: translate(-20px, 15px) rotate(-3deg); }
}

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* --- Navbar --- */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background: rgba(51, 11, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FAD4C0;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

.mobile-nav-link {
    position: relative;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #330b12 0%, #781F2E 35%, #a11535 60%, #c72048 80%, #781F2E 100%);
    position: relative;
}

.hero-gradient {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(249, 208, 185, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 148, 133, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(120, 31, 46, 0.3) 0%, transparent 50%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.hero-float {
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-float-2 { animation-delay: -2s; animation-duration: 10s; }
.hero-float-3 { animation-delay: -4s; animation-duration: 7s; }
.hero-float-4 { animation-delay: -1s; animation-duration: 9s; }

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, -35px) rotate(-3deg); }
    75% { transform: translate(20px, -15px) rotate(4deg); }
}

.hero-content {
    animation: heroFadeIn 1s ease forwards;
}

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

.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-scroll {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn-primary {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    backdrop-filter: blur(10px);
}

/* --- Section Styles --- */
.section {
    position: relative;
}

.section-tag {
    letter-spacing: 0.1em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-subtitle {
    line-height: 1.7;
}

.section-tag-light {
    letter-spacing: 0.1em;
}

.section-title-light {
    letter-spacing: -0.02em;
}

/* --- Menu Cards --- */
.menu-card {
    position: relative;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #781F2E, #c72048, #FAD4C0);
    border-radius: 2xl 2xl 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-card:hover .card-accent {
    opacity: 1;
}

.card-inner {
    transform: translateY(0);
}

.menu-card:hover .card-inner {
    transform: translateY(-8px);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 40%);
}

/* --- About Section --- */
.about-bg-shape {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.about-img-wrap {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.about-img-wrap:hover {
    transform: scale(1.02);
}

.about-img {
    transition: transform 0.7s ease;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(51, 11, 18, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-img {
    transition: transform 0.7s ease, filter 0.4s ease;
    filter: saturate(0.85);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    filter: saturate(1);
}

/* --- Visit Section --- */
.visit-card {
    box-shadow: 0 4px 25px rgba(120, 31, 46, 0.08);
    transition: box-shadow 0.3s ease;
}

.visit-card:hover {
    box-shadow: 0 8px 40px rgba(120, 31, 46, 0.12);
}

.visit-info-item {
    transition: transform 0.3s ease;
}

.visit-info-item:hover {
    transform: translateX(4px);
}

.visit-icon {
    transition: background 0.3s ease;
}

.visit-label {
    letter-spacing: -0.01em;
}

.map-wrap {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.map-frame {
    transition: filter 0.3s ease;
}

.map-wrap:hover .map-frame {
    filter: saturate(1.1);
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #330b12 0%, #781F2E 50%, #a11535 100%);
    position: relative;
}

.cta-gradient {
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(249, 208, 185, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(255, 148, 133, 0.08) 0%, transparent 40%);
}

.cta-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px, 35px 35px;
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #781F2E, #c72048, #FAD4C0, #c72048, #781F2E);
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

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

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

/* Stagger delays for grid items */
.menu-card:nth-child(1) .reveal { transition-delay: 0.05s; }
.menu-card:nth-child(2) .reveal { transition-delay: 0.1s; }
.menu-card:nth-child(3) .reveal { transition-delay: 0.15s; }
.menu-card:nth-child(4) .reveal { transition-delay: 0.2s; }
.menu-card:nth-child(5) .reveal { transition-delay: 0.25s; }
.menu-card:nth-child(6) .reveal { transition-delay: 0.3s; }

.gallery-item:nth-child(1) .reveal { transition-delay: 0.05s; }
.gallery-item:nth-child(2) .reveal { transition-delay: 0.1s; }
.gallery-item:nth-child(3) .reveal { transition-delay: 0.15s; }
.gallery-item:nth-child(4) .reveal { transition-delay: 0.2s; }
.gallery-item:nth-child(5) .reveal { transition-delay: 0.25s; }
.gallery-item:nth-child(6) .reveal { transition-delay: 0.3s; }

/* --- 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-float {
        animation: none;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .about-bg-shape {
        clip-path: none;
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-img-grid {
        gap: 0.75rem !important;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-stats {
        gap: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-bg-shape {
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

@media (min-width: 1024px) {
    .about-bg-shape {
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    }
}
