/* ===================================
   Chen's Happy Garden — Styles
   =================================== */

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

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

body {
    overflow-x: hidden;
}

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

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

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

::selection {
    background: rgba(168, 85, 112, 0.15);
    color: #50232f;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #d9a7b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85570;
}

/* ---------- Navbar ---------- */
.nav {
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 167, 184, 0.2);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 250, 245, 0.97);
    box-shadow: 0 1px 0 rgba(217, 167, 184, 0.15);
}

.nav.scrolled .nav-logo {
    color: #50232f;
}

.nav-link {
    position: relative;
}

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

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    transition: color 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #fafaf5 0%, #faf5f7 40%, #fffbeb 100%);
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-image-wrapper {
    opacity: 0;
    animation: fadeLeft 1s ease forwards 0.5s;
}

.hero-image-accent {
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

/* ---------- Buttons ---------- */
.btn-primary {
    box-shadow: 0 4px 20px rgba(94, 40, 56, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 40, 56, 0.25);
}

.btn-secondary {
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ---------- Section Labels & Titles ---------- */
.section-label {
    display: block;
}

.section-title {
    position: relative;
}

/* ---------- Divider ---------- */
.divider {
    background: white;
}

/* ---------- About ---------- */
.about-img {
    transition: transform 0.6s ease;
}

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

.about-img-secondary {
    box-shadow: 0 20px 60px rgba(80, 35, 47, 0.12);
}

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

.menu-category::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #d97706;
    margin-top: 8px;
}

.menu-item {
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 8px;
}

.menu-item:hover h3 {
    color: #d97706;
}

/* ---------- Experience ---------- */
.experience-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
}

/* ---------- Visit ---------- */
.visit-map {
    filter: saturate(0.6) brightness(1.05);
    transition: filter 0.4s ease;
}

.visit-map:hover {
    filter: saturate(0.8) brightness(1);
}

.visit-map-overlay {
    border-radius: 2px;
}

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

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

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #d97706, transparent);
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal],
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title lg\:text-8xl {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-title sm\:text-5xl {
        font-size: 2.25rem;
    }

    .about-img {
        height: 300px !important;
    }

    .hero-image {
        width: 280px !important;
    }

    .hero-image-badge {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
        display: inline-block;
    }

    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .about-img-main {
        height: 280px !important;
    }

    .about-img {
        height: 280px !important;
    }
}

/* ---------- Focus States ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---------- Print ---------- */
@media print {
    .nav,
    .hero-scroll-indicator,
    .mobile-menu {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
