/* ===== Custom Styles for Dawn's Candy Shack ===== */

:root {
    --navy-800: #1e3a5f;
    --navy-900: #152a45;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --cream: #fdf8f0;
    --cream-dark: #f5efe5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--cream);
}

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

.navbar.scrolled {
    background: rgba(21, 42, 69, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(21, 42, 69, 0.85) 0%, rgba(30, 58, 95, 0.75) 100%),
                url('https://images.pexels.com/photos/14994661/pexels-photo-14994661.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--cream), transparent);
    pointer-events: none;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    color: var(--navy-900);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ===== Section Styles ===== */
.section-label {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-title.text-white {
    color: white;
}

/* ===== About Section ===== */
.about-images {
    position: relative;
}

.about-img-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Treats Section ===== */
.treats-bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, var(--gold-400) 1px, transparent 0);
    background-size: 40px 40px;
}

.treat-card {
    position: relative;
    overflow: hidden;
}

.treat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.treat-card:hover::before {
    opacity: 1;
}

/* ===== Visit Section ===== */
.visit-item {
    transition: all 0.3s ease;
}

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

/* ===== Contact Section ===== */
.contact-dots {
    background-image: radial-gradient(circle, var(--gold-400) 1px, transparent 0);
    background-size: 30px 30px;
}

.contact-link {
    transition: all 0.3s ease;
}

/* ===== Form Styles ===== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* ===== Back to Top ===== */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .about-img-float {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .about-badge {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .visit-map order-1 {
        order: -1;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}
