/* Custom CSS - Candles Event Hire Landing Page */
/* Animations, transitions, and custom styles */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Header styling */
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Logo styling */
.logo-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Button hover effects */
button, .btn {
    transition: all 0.3s ease;
}

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

button:active, .btn:active {
    transform: translateY(0);
}

/* Card hover effects */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #D32027 0%, #F26522 50%, #FDB913 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D32027, #F26522);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F26522, #FDB913);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Mobile menu slide animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Mobile menu button styling */
#mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

#mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

#mobile-menu-btn i {
    font-size: 1.5rem;
    line-height: 1;
}

/* FORCE HIDE HAMBURGER ON DESKTOP */
@media (min-width: 768px) {
    #mobile-menu-btn {
        display: none !important;
    }
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact widget pulse effect */
#contact-btn {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 32, 39, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(211, 32, 39, 0);
    }
}

/* Image hover zoom */
.group:hover img {
    transform: scale(1.05);
}

/* FAQ accordion icon rotation */
.faq-question i {
    transition: transform 0.3s ease;
}

/* Star rating colors */
.text-accent {
    color: #FDB913;
}

/* Success color for checkmarks */
.text-success {
    color: #4CAF50;
}

/* Responsive iframe */
iframe {
    width: 100%;
    height: 100%;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Gradient buttons */
.btn-gradient {
    background: linear-gradient(135deg, #D32027 0%, #F26522 50%, #FDB913 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 10px 25px -5px rgba(211, 32, 39, 0.4);
    transform: translateY(-2px);
}

/* Social icons hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Table hover effects */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(245, 245, 245, 0.5);
}

/* Form input focus effects */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #D32027;
    box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.1);
}

/* Backdrop blur for modals */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error state */
.error {
    border-color: #ef4444 !important;
}

/* Success state */
.success {
    border-color: #4CAF50 !important;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Print styles */
@media print {
    header, footer, #contact-widget, #contact-modal {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #D32027;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button, .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ========================================
   RENTALS CAROUSEL STYLES
   ======================================== */

/* Carousel wrapper */
.rentals-carousel-wrapper {
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.rentals-carousel-wrapper:active {
    cursor: grabbing;
}

/* Navigation arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(211, 32, 39, 0.95), rgba(242, 101, 34, 0.95));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(211, 32, 39, 1), rgba(242, 101, 34, 1));
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.left {
    left: 1rem;
}

.carousel-nav-btn.right {
    right: 1rem;
}

/* Hide nav buttons on mobile */
@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none;
    }
}

/* Carousel track - contains all items */
.rentals-carousel-track {
    display: flex;
    gap: 1rem;
    will-change: transform;
    transition: none;
}

/* Individual rental item */
.rental-item {
    flex: 0 0 auto;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
}

.rental-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

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

/* Label overlay */
.rental-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.rental-item:hover .rental-label {
    opacity: 1;
    background: linear-gradient(to top, rgba(211, 32, 39, 0.9), rgba(211, 32, 39, 0.7), transparent);
}

/* Responsive sizing for rental items */
/* Mobile: smaller, compact items */
@media (max-width: 640px) {
    .rental-item {
        width: 140px;
        height: 140px;
    }
    
    .rental-label {
        font-size: 0.7rem;
        padding: 1.5rem 0.5rem 0.5rem;
    }
    
    .rentals-carousel-track {
        gap: 0.75rem;
    }
}

/* Small tablet */
@media (min-width: 641px) and (max-width: 768px) {
    .rental-item {
        width: 160px;
        height: 160px;
    }
    
    .rental-label {
        font-size: 0.75rem;
    }
}

/* Medium tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .rental-item {
        width: 180px;
        height: 180px;
    }
    
    .rental-label {
        font-size: 0.8rem;
    }
}

/* Small desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .rental-item {
        width: 200px;
        height: 200px;
    }
    
    .rental-label {
        font-size: 0.875rem;
        padding: 2rem 1rem 1rem;
    }
}

/* Medium desktop */
@media (min-width: 1281px) and (max-width: 1536px) {
    .rental-item {
        width: 220px;
        height: 220px;
    }
    
    .rental-label {
        font-size: 0.875rem;
        padding: 2rem 1rem 1rem;
    }
}

/* Large desktop */
@media (min-width: 1537px) and (max-width: 1920px) {
    .rental-item {
        width: 240px;
        height: 240px;
    }
    
    .rental-label {
        font-size: 1rem;
    }
}

/* Extra large desktop */
@media (min-width: 1921px) {
    .rental-item {
        width: 260px;
        height: 260px;
    }
    
    .rental-label {
        font-size: 1rem;
    }
}

/* Touch device support */
@media (hover: none) and (pointer: coarse) {
    .rental-item:active {
        transform: translateY(-4px);
    }
    
    .rentals-carousel-wrapper {
        cursor: default;
    }
    
    .rentals-carousel-wrapper:active {
        cursor: default;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .rentals-carousel-track {
        animation: none !important;
    }
    
    .rental-item {
        transition: none !important;
    }
}

/* ========================================
   HERO BACKGROUND SLIDESHOW
   ======================================== */

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero section height adjustments */
#home {
    min-height: 100vh;
}

/* Mobile hero optimization - show more of the image */
@media (max-width: 768px) {
    #home {
        min-height: 100vh;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-slide {
        background-size: cover;
        background-position: center center;
    }
    
    /* Adjust content padding and sizing for mobile */
    #home .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Compact hero heading on mobile */
    #home h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    #home p.text-xl {
        font-size: 1.125rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Reduce badge size and spacing on mobile */
    #home .flex.flex-wrap {
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #home .flex.flex-wrap span {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    #home .flex.flex-wrap span i {
        font-size: 0.875rem;
    }
    
    /* CTA button sizing on mobile */
    #home button {
        font-size: 1rem !important;
        padding: 0.75rem 2rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    #home {
        min-height: 90vh;
    }
}

/* Ensure hero content is above background */
#home .container {
    position: relative;
    z-index: 20;
}

/* ===================================
   CUSTOM CSS - Candles Event Hire
   =================================== */

/* Force Light Mode - Prevent Dark Mode */
:root {
    color-scheme: light only !important;
}

html {
    color-scheme: light only !important;
}

body {
    color-scheme: light only !important;
}

/* Force all elements to light mode */
*, *::before, *::after {
    color-scheme: light only !important;
}

/* Dark mode override - force light colors */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #ffffff !important;
        color: #4A4A4A !important;
    }
    
    /* Don't override hero section backgrounds */
    #hero-slideshow,
    #hero-slideshow * {
        background-color: transparent !important;
    }
}

/* ===================================
   BADGE WRAPPING FIXES
   =================================== */

/* Firefox-specific fix for badge wrapping */
@-moz-document url-prefix() {
    .flex.flex-wrap > span {
        display: -moz-inline-box !important;
        display: inline-flex !important;
    }
}

/* Force proper wrapping on mobile - all browsers */
@media (max-width: 640px) {
    .flex.flex-wrap > span[class*="inline-flex"] {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        max-width: fit-content !important;
        min-width: fit-content !important;
    }
}

/* Additional Firefox mobile fix */
@supports (-moz-appearance:none) {
    @media (max-width: 640px) {
        .flex.flex-wrap {
            display: flex !important;
            flex-wrap: wrap !important;
        }
        
        .flex.flex-wrap > span {
            flex-basis: auto !important;
            width: auto !important;
        }
    }
}

/* ========================================
   HERO BADGES 2-ROW HORIZONTAL SCROLL
   ======================================== */

/* Wrapper for mobile scroll */
.hero-badges-scroll-wrapper {
    position: relative;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.hero-badges-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-badges-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: min-content;
    will-change: transform;
}

.hero-badge {
    flex: 0 0 auto;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    color: #4A4A4A;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.hero-badge i {
    font-size: 0.875rem;
}

/* ========================================
   VENUES & EVENTS 2-ROW HORIZONTAL SCROLL
   ======================================== */

/* Venues/Events scroll wrapper */
.venues-scroll-wrapper,
.events-scroll-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

/* Gradient fade indicators on edges */
.venues-scroll-wrapper::before,
.venues-scroll-wrapper::after,
.events-scroll-wrapper::before,
.events-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.venues-scroll-wrapper::before,
.events-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

.venues-scroll-wrapper::after,
.events-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

/* Navigation arrows - HIDDEN by default, show ONLY on hover on DESKTOP */
.scroll-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(211, 32, 39, 0.95), rgba(242, 101, 34, 0.95));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Show arrows ONLY on desktop when hovering over wrapper */
@media (min-width: 769px) {
    .venues-scroll-wrapper:hover .scroll-carousel-nav-btn,
    .events-scroll-wrapper:hover .scroll-carousel-nav-btn {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
}

.scroll-carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(211, 32, 39, 1), rgba(242, 101, 34, 1));
}

.scroll-carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-carousel-nav-btn.left {
    left: 1rem;
}

.scroll-carousel-nav-btn.right {
    right: 1rem;
}

.venues-scroll-track,
.events-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.venues-row,
.events-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    will-change: transform;
}

.venue-item,
.event-item {
    flex: 0 0 auto;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.venue-item:hover,
.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.venue-item i,
.event-item i {
    flex-shrink: 0;
}

.venue-item span,
.event-item span {
    font-size: 0.875rem;
}

/* Touch device support */
@media (hover: none) and (pointer: coarse) {
    .venues-scroll-wrapper,
    .events-scroll-wrapper {
        cursor: default;
    }
    
    .venues-scroll-wrapper:active,
    .events-scroll-wrapper:active {
        cursor: default;
    }
}

/* ========================================
   STATIC RENTALS GRID
   ======================================== */

.rentals-grid {
    justify-items: center;
}

.rentals-grid .rental-item {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
}

/* Mobile: smaller items */
@media (max-width: 640px) {
    .rentals-grid .rental-item {
        max-width: 150px;
    }
}

/* ========================================
   LOCATION CARDS ACCORDION (MOBILE)
   ======================================== */

@media (max-width: 768px) {
    /* Hide full card details on mobile */
    .location-card-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    /* Show content when card is active */
    .accordion-active .location-card-content {
        max-height: 2000px;
        transition: max-height 0.5s ease-in;
    }
    
    /* Make card title clickable */
    .location-card-header {
        cursor: pointer;
        padding: 1.5rem;
        background: white;
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .location-card-header:active {
        background: #f9fafb;
    }
    
    .location-card-header .expand-icon {
        transition: transform 0.3s ease;
        color: #D32027;
        font-size: 1.25rem;
    }
    
    /* Rotate icon when active */
    .accordion-active .location-card-header .expand-icon {
        transform: rotate(180deg);
    }
    
    /* Compact franchise card on mobile */
    #franchise-card {
        min-height: auto;
    }
}

@media (min-width: 769px) {
    /* Desktop: always show full cards */
    .location-card-content {
        max-height: none !important;
    }
    
    .location-card-header {
        pointer-events: none;
    }
    
    .expand-icon {
        display: none;
    }
}
