/* ========== CUSTOM STYLES ========== */

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(44, 78, 44, 0.1);
    background: rgba(254, 253, 248, 0.98) !important;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #386138;
    color: #fefdf8;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #2c4e2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 97, 56, 0.3);
    color: #fefdf8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    color: #386138;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid #386138;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #386138;
    color: #fefdf8;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fefdf8;
    color: #2c4e2c;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background: #f0f5f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #2c4e2c;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    color: #fefdf8;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    border: 2px solid rgba(254, 253, 248, 0.5);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-cta-secondary:hover {
    background: rgba(254, 253, 248, 0.15);
    border-color: #fefdf8;
    transform: translateY(-2px);
    color: #fefdf8;
}

/* --- Badge --- */
.badge-hero {
    background: rgba(56, 97, 56, 0.1);
    border: 1px solid rgba(56, 97, 56, 0.2);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
}

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #386138;
    background: rgba(56, 97, 56, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #fefdf8 0%, #f0f5f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(56, 97, 56, 0.04);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(56, 97, 56, 0.03);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-blob {
    animation: blobFloat 6s ease-in-out infinite;
}

.hero-blob2 {
    animation: blobFloat2 8s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -16px) scale(1.04); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, 12px) scale(1.06); }
}

/* --- Floating Card --- */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

/* --- About --- */
.about-img-blob {
    animation: blobFloat 7s ease-in-out infinite;
}

/* --- Feature Card --- */
.feature-card {
    background: #fefdf8;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(44, 78, 44, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 78, 44, 0.12);
}

/* --- Menu Card --- */
.menu-card {
    background: #fefdf8;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(44, 78, 44, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(44, 78, 44, 0.15);
}

.menu-img-wrap {
    overflow: hidden;
    border-radius: 1.75rem 1.75rem 0 0;
}

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

.menu-card:hover .menu-img {
    transform: scale(1.06);
}

.menu-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #386138;
    background: rgba(56, 97, 56, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
}

/* --- Info Card --- */
.info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(44, 78, 44, 0.1);
}

/* --- Map --- */
.map-container {
    position: relative;
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: none;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e6d9;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-menu.open .mobile-nav-link {
    border-bottom-color: #d9e6d9;
}

/* --- Nav Links --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #386138;
    border-radius: 2px;
    transition: width 0.25s ease;
}

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-image {
        order: 1 !important;
    }
    
    .hero-text {
        order: 2 !important;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .floating-card {
        display: none;
    }
}

/* --- 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-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
