/* =====================================================
   GLOBAL LAYOUT (prevents horizontal scroll issues)
===================================================== */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* =====================================================
   ANIMATIONS
===================================================== */

.animate-fade-up {
    animation: fadeUp 0.6s ease both;
}

.animate-fade-up.delay-1 { animation-delay: 0.15s; }
.animate-fade-up.delay-2 { animation-delay: 0.3s; }
.animate-fade-up.delay-3 { animation-delay: 0.45s; }

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


/* =====================================================
   SPACING UTILITIES (Bootstrap-friendly extensions)
===================================================== */

.my-6 { margin: 6rem 0; }
.py-6 { padding: 6rem 0; }


/* =====================================================
   ICON & PURPOSE BOXES
===================================================== */

.icon-box {
    padding: 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-box i {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

.icon-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.purpose-box {
    text-align: center;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #eee;
    height: 100%;
}

.purpose-box i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 10px;
}


/* =====================================================
   BUSINESS LISTING COMPONENTS
===================================================== */

.business-cover {
    max-height: 280px;
    object-fit: cover;
}

.business-logo {
    width: 90px;
    height: 90px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.business-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.business-description {
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =====================================================
   HOVER CARDS
===================================================== */

.hover-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


/* =====================================================
   HERO NAVBAR
===================================================== */

.hero-nav {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent !important;
    z-index: 10;
}


/* =====================================================
   HERO SECTION
===================================================== */

.hero-section {
    position: relative;
    min-height: 85vh;
    padding-top: 100px; /* navbar offset */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/crawley.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.search-box {
    max-width: 100%;
}


/* =====================================================
   MOBILE TWEAKS
===================================================== */

@media (max-width: 767px) {
    .hero-section {
        min-height: 90vh;
    }
}