/* ==========================================================================
   Tupelo Honey Festival - Custom Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --honey-gold: #d4a017;
    --honey-dark: #b8860b;
    --honey-light: #f5deb3;
    --honey-cream: #fdf6e3;
    --festival-red: #c0392b;
    --festival-red-dark: #96281b;
    --text-dark: #2c1810;
    --text-warm: #5a3e2b;
    --text-muted: #8b7355;
    --bg-cream: #fefcf6;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

a {
    color: var(--honey-dark);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--festival-red);
}

.text-honey {
    color: var(--honey-gold) !important;
}

.text-warm {
    color: var(--text-warm);
}

.bg-cream {
    background-color: var(--bg-cream);
}

.section-padding {
    padding: 80px 0;
}

/* ---------- Section Headers ---------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--honey-gold);
    margin-bottom: 10px;
}

.section-tag-light {
    color: var(--honey-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}

/* ---------- Buttons ---------- */
.btn-honey {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-dark));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-honey:hover {
    background: linear-gradient(135deg, var(--honey-dark), var(--festival-red));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

/* ---------- Navigation ---------- */
#mainNav {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(44, 24, 16, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#mainNav.scrolled .nav-logo {
    height: 40px;
    width: 40px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 10px;
    vertical-align: middle;
}

#mainNav .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px !important;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--honey-gold);
}

.social-link {
    font-size: 1.2rem !important;
}

/* ---------- Hero Carousel ---------- */
#home {
    position: relative;
}

#heroCarousel {
    position: relative;
}

.hero-honeycomb-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 3;
    background:
        linear-gradient(135deg, var(--honey-gold) 25%, transparent 25%) -14px 0,
        linear-gradient(225deg, var(--honey-gold) 25%, transparent 25%) -14px 0,
        linear-gradient(315deg, var(--honey-gold) 25%, transparent 25%),
        linear-gradient(45deg, var(--honey-gold) 25%, transparent 25%);
    background-size: 28px 6px;
    background-color: var(--honey-dark);
}

#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 600px;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(44, 24, 16, 0.5) 0%,
        rgba(44, 24, 16, 0.6) 50%,
        rgba(44, 24, 16, 0.8) 100%
    );
    z-index: 1;
}

.hero-overlay .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 2;
    width: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    z-index: 2;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--honey-gold);
    border-color: var(--honey-gold);
    transform: scale(1.2);
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--honey-light);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-date {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 600;
    background: rgba(212, 160, 23, 0.25);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(212, 160, 23, 0.4);
}

@media (max-width: 767px) {
    #heroCarousel .carousel-item {
        height: 100vh;
        min-height: 500px;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-date {
        font-size: 0.95rem;
        padding: 8px 20px;
    }

    .carousel-indicators {
        bottom: 60px;
    }
}

/* ---------- Animations ---------- */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; opacity: 0; }
.delay-2 { animation-delay: 0.6s; opacity: 0; }
.delay-3 { animation-delay: 0.9s; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ---------- About Section ---------- */
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-grid-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.about-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-grid-item:hover img {
    transform: scale(1.05);
}

/* ---------- Event Details Section ---------- */
.bg-honey-gradient {
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a2c1a 50%, var(--festival-red-dark) 100%);
}

.event-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 35px 20px;
    transition: all 0.3s ease;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-5px);
}

.event-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-dark));
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
}

.event-card h4 {
    color: var(--honey-gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.event-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- Schedule Section ---------- */
.schedule-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.schedule-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--honey-light);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0ebe3;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex-shrink: 0;
    background: var(--honey-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

.schedule-item h5 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.schedule-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.activity-item {
    text-align: center;
    padding: 20px 10px;
    background: var(--bg-cream);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--honey-light);
    transform: translateY(-3px);
}

.activity-item i {
    font-size: 2rem;
    color: var(--honey-gold);
    margin-bottom: 10px;
    display: block;
}

.activity-item h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.activity-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Related Events ---------- */
.related-events {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.related-event-card {
    padding: 20px;
    background: var(--bg-cream);
    border-radius: 12px;
    border-left: 4px solid var(--honey-gold);
}

.related-event-card h5 {
    color: var(--festival-red);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-event-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-warm);
}

/* ---------- Photo Gallery ---------- */
.gallery-item {
    overflow: hidden;
}

.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    font-size: 1.5rem;
}

.gallery-link:hover img {
    transform: scale(1.1);
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    font-size: 1.2rem;
}

.lightbox-close:hover {
    opacity: 1;
}

#lightboxImage {
    max-height: 80vh;
}

/* ---------- Places to Stay ---------- */
.stay-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.stay-card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--honey-light);
}

.stay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stay-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe3;
    flex-wrap: wrap;
    gap: 5px;
}

.stay-list li:last-child {
    border-bottom: none;
}

.stay-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.stay-phone {
    color: var(--honey-dark);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stay-phone:hover {
    color: var(--festival-red);
}

/* ---------- Location Section ---------- */
.location-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.location-info .lead {
    color: var(--text-warm);
}

.map-container {
    overflow: hidden;
    border: 3px solid var(--honey-light);
}

.map-container iframe {
    display: block;
}

/* ---------- Sponsors ---------- */
.sponsor-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sponsor-link {
    text-decoration: none;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.footer p {
    margin-bottom: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ---------- Honeycomb Decorative Divider ---------- */
.honey-divider {
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.honey-divider::before {
    content: "\2B22 \2B22 \2B22";
    font-size: 1rem;
    color: var(--honey-gold);
    letter-spacing: 10px;
    opacity: 0.5;
}

/* ---------- Utility ---------- */
img {
    max-width: 100%;
}

::selection {
    background: var(--honey-gold);
    color: var(--white);
}

/* ---------- Responsive Fine-Tuning ---------- */
@media (max-width: 991px) {
    .brand-text {
        font-size: 1rem;
    }

    #navbarNav {
        background: rgba(44, 24, 16, 0.97);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .stay-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-link img {
        height: 150px;
    }
}
