/* Custom Styles for Whippy Bros */
.content-wrapper {
    overflow-x: hidden;
}

.footer-wrapper {
    position: relative;
    background-color: #fef3e4; /* bg-pale-yellow fallback */
}
.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/footer_bg.svg');
    background-repeat: repeat;
    background-size: auto 50px;
    pointer-events: none;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M1260,1.65c-60-5.07-119.82,2.47-179.83,10.13s-120,11.48-180,9.57-120-7.66-180-6.42c-60,1.63-120,11.21-180,16a1129.52,1129.52,0,0,1-180,0c-60-4.78-120-14.36-180-19.14S60,7,30,7H0v93H1440V30.89C1380.07,23.2,1319.93,6.15,1260,1.65Z'/%3E%3C/svg%3E");
    mask-position: top center;
    mask-repeat: no-repeat;
    mask-size: 100% 100px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M1260,1.65c-60-5.07-119.82,2.47-179.83,10.13s-120,11.48-180,9.57-120-7.66-180-6.42c-60,1.63-120,11.21-180,16a1129.52,1129.52,0,0,1-180,0c-60-4.78-120-14.36-180-19.14S60,7,30,7H0v93H1440V30.89C1380.07,23.2,1319.93,6.15,1260,1.65Z'/%3E%3C/svg%3E");
    -webkit-mask-position: top center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100px;
    z-index: 200;
}
.footer-divider {
    height: 100px;
    background-color: #e9eaf8;
    margin-top: -1px;
}
.footer-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}
footer.footer-content {
    position: relative;
}
footer.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/footer_bg.svg');
    background-repeat: repeat;
    background-size: auto 50px;
    background-position: 0 25px;
    pointer-events: none;
}
/* Mobile responsive width */
@media (max-width: 991px) {
    /* Van image shorter on mobile */
    img[src*="van.webp"] {
        max-height: 350px;
        width: auto;
        object-fit: contain;
    }
}

/* Clouds background for hero section */
.hero-clouds {
    background: url('/assets/img/bg_graphics/clouds.webp') center / cover no-repeat !important;
}

footer.footer-content::before {
    z-index: 0;
}
/* Apply Berkshire Swash to all headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Allan', cursive !important;
    text-transform: uppercase;
}

.text-orange {
    color: #ea7830 !important;
}
.btn-orange {
    --bs-btn-bg: #ea7830;
    --bs-btn-border-color: #ea7830;
    --bs-btn-hover-bg: #ea7830;
    --bs-btn-hover-border-color: #ea7830;
    --bs-btn-active-bg: #ea7830;
    --bs-btn-active-border-color: #ea7830;
    --bs-btn-disabled-bg: #ea7830;
    --bs-btn-disabled-border-color: #ea7830;
}

.text-fuchsia {
    color: #da37ab !important;
}
.btn-fuchsia {
    --bs-btn-bg: #da37ab;
    --bs-btn-border-color: #da37ab;
    --bs-btn-hover-bg: #da37ab;
    --bs-btn-hover-border-color: #da37ab;
    --bs-btn-active-bg: #da37ab;
    --bs-btn-active-border-color: #da37ab;
    --bs-btn-disabled-bg: #da37ab;
    --bs-btn-disabled-border-color: #da37ab;
}

.hero-cta {
    --glow-color: 218, 55, 171;
    padding: 0.9rem 2rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(var(--glow-color), 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cta-glow 2s ease-in-out infinite;
    flex: 1 1 0;
    text-align: center;
}
.hero-cta.btn-green {
    --glow-color: 71, 126, 99;
}
.hero-cta.btn-orange {
    --glow-color: 234, 120, 48;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(var(--glow-color), 0.6);
    animation: none;
}
@keyframes cta-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(var(--glow-color), 0.35); }
    50% { box-shadow: 0 4px 30px rgba(var(--glow-color), 0.65); }
}

.hero-cta.btn-orange {
    position: relative;
    overflow: hidden;
}
.hero-cta.btn-orange::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.25) 55%,
        transparent 70%,
        transparent 100%
    );
    background-size: 250% 100%;
    background-position: 150% 0;
    animation: btn-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}
@keyframes btn-shimmer {
    0% { background-position: -50% 0; }
    40% { background-position: 150% 0; }
    100% { background-position: 150% 0; }
}
.hero-cta.btn-orange img.van-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    height: 1.6em;
    transform-origin: center bottom;
    animation: van-drive 1.2s ease-in-out infinite;
}
.hero-cta.btn-orange:hover img.van-icon {
    animation: van-drive-away 1.4s ease-in-out infinite;
}
@keyframes van-drive {
    0%, 100% { transform: translateY(-50%) scaleX(-1) rotate(0deg); }
    25% { transform: translateY(calc(-50% - 1.5px)) scaleX(-1) rotate(1.5deg); }
    50% { transform: translateY(calc(-50% + 0.5px)) scaleX(-1) rotate(0deg); }
    75% { transform: translateY(calc(-50% - 1px)) scaleX(-1) rotate(-1deg); }
}
@keyframes van-drive-away {
    0% { transform: translateX(0) translateY(-50%) scaleX(-1) rotate(0deg); opacity: 1; }
    15% { transform: translateX(-2px) translateY(calc(-50% - 1px)) scaleX(-1) rotate(-1deg); opacity: 1; }
    45% { transform: translateX(25px) translateY(calc(-50% - 1.5px)) scaleX(-1) rotate(2deg); opacity: 0; }
    46% { transform: translateX(-25px) translateY(-50%) scaleX(-1) rotate(0deg); opacity: 0; }
    70% { transform: translateX(-5px) translateY(calc(-50% - 1px)) scaleX(-1) rotate(-1deg); opacity: 1; }
    85% { transform: translateX(1px) translateY(calc(-50% - 0.5px)) scaleX(-1) rotate(0.5deg); opacity: 1; }
    100% { transform: translateX(0) translateY(-50%) scaleX(-1) rotate(0deg); opacity: 1; }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 991px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .hero-cta {
        flex: none;
        width: 100%;
        max-width: 20rem;
    }
}

.text-blue {
    color: #3376e4 !important;
}
.btn-blue, .btn-primary {
    --bs-btn-bg: #3376E4;
    --bs-btn-border-color: #3376E4;
    --bs-btn-hover-bg: #3376E4;
    --bs-btn-hover-border-color: #3376E4;
    --bs-btn-active-bg: #3376E4;
    --bs-btn-active-border-color: #3376E4;
    --bs-btn-disabled-bg: #3376E4;
    --bs-btn-disabled-border-color: #3376E4;
}

.text-red {
    color: #d5302d !important;
}
.btn-red {
    --bs-btn-bg: #d5302d;
    --bs-btn-border-color: #d5302d;
    --bs-btn-hover-bg: #d5302d;
    --bs-btn-hover-border-color: #d5302d;
    --bs-btn-active-bg: #d5302d;
    --bs-btn-active-border-color: #d5302d;
    --bs-btn-disabled-bg: #d5302d;
    --bs-btn-disabled-border-color: #d5302d;
}

.text-green {
    color: #477e63 !important;
}
.btn-green {
    --bs-btn-bg: #477e63;
    --bs-btn-border-color: #477e63;
    --bs-btn-hover-bg: #477e63;
    --bs-btn-hover-border-color: #477e63;
    --bs-btn-active-bg: #477e63;
    --bs-btn-active-border-color: #477e63;
    --bs-btn-disabled-bg: #477e63;
    --bs-btn-disabled-border-color: #477e63;
}

.text-purple {
    color: #372861 !important;
}
.btn-purple {
    --bs-btn-bg: #372861;
    --bs-btn-border-color: #372861;
    --bs-btn-hover-bg: #372861;
    --bs-btn-hover-border-color: #372861;
    --bs-btn-active-bg: #372861;
    --bs-btn-active-border-color: #372861;
    --bs-btn-disabled-bg: #372861;
    --bs-btn-disabled-border-color: #372861;
}

/* Social Media Buttons */
.btn-instagram {
    background: #833ab4;
    background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
    border: none;
    color: #fff !important;
}

.btn-instagram:hover {
    background: #833ab4;
    background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
    color: #fff !important;
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-facebook-f {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.btn-facebook-f:hover {
    background: #1565d8;
    border-color: #1565d8;
    color: #fff;
}

.btn-tiktok {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.btn-tiktok:hover {
    background: #333333;
    border-color: #333333;
    color: #fff;
}

/* Swiper container - uniform image aspect ratio */
.swiper-container figure {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-container figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Offcanvas mobile menu light background */
.navbar-collapse.offcanvas.offcanvas-nav {
    background-color: #ffffff !important;
}

.navbar-collapse.offcanvas.offcanvas-nav .offcanvas-body .navbar-nav .nav-link {
    color: #343f52 !important;
}

.navbar-collapse.offcanvas.offcanvas-nav .offcanvas-body .navbar-nav .nav-link:hover {
    color: #3376e4 !important;
}

/* === ELECTRIC VAN SECTION === */
.ev-section h2,
.ev-section h3,
.ev-section h4,
.ev-section p {
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.ev-section h4 {
    font-size: 1.5rem !important;
}

.ev-glow {
    position: relative;
}

.ev-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.ev-glow > * {
    position: relative;
    z-index: 1;
}

/* === BACKGROUND PATTERN === */
.bg-pattern-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    animation: bgFloat 8s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

/* === PUBLIC MAP === */
#public-map-wrapper {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

#public-map {
    height: 600px;
    width: 100%;
}

@media (max-width: 767px) {
    #public-map {
        height: 50vh;
    }
}

#no-vans-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1000;
    pointer-events: none;
}

.no-vans-content {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

#map-last-updated {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    color: #6c757d;
}

/* Hide reCAPTCHA badge - attribution is shown inline in the contact form */
.grecaptcha-badge {
    visibility: hidden !important;
}
