/* Custom CSS for elements Tailwind can't handle */
.hero-image {
    background-image: url('https://images.unsplash.com/photo-1607619056574-7b8d3ee536b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.hero-image-package {
    background-image: url('https://images.unsplash.com/photo-1607619056574-7b8d3ee536b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.nav-link:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #3B82F6;
    margin-top: 2px;
}

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

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

.package-benefit-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.checklist-item::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233B82F6' viewBox='0 0 24 24' stroke-width='1.5' stroke='white' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5' /%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 12px;
    vertical-align: middle;
}

.floating-cta {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    position: sticky;
    bottom: 20px;
}

/* Logo sizing - controls only the logo size without affecting navbar */
.header-logo {
    height: 60px; /* Increased from default - adjust this value to make it larger or smaller */
    width: auto; /* Maintains aspect ratio */
    max-height: 60px; /* Prevents logo from getting too large */
}

/* Footer logo sizing */
footer img {
    height: 50px; /* Increased footer logo size - adjust as needed */
    width: auto;
    max-height: 50px;
}

/* Mobile-specific spacing fixes */
@media (max-width: 768px) {
    .header-logo {
        height: 45px; /* Slightly smaller on mobile to fit better */
        max-height: 45px;
    }
    
    footer img {
        height: 40px;
        max-height: 40px;
    }

    .brand-logo {
        height: 60px;
        max-width: 140px;
    }

    /* AGGRESSIVE MOBILE SPACING FIX - Remove all padding between hero and how-it-works */
    section#hero {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    section#how-it-works {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Also target the container divs inside these sections */
    section#hero .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    section#how-it-works .container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove any margin from the flex container in hero */
    section#hero .flex {
        margin-bottom: 0 !important;
    }

    /* Ensure the hero image doesn't add extra margin */
    section#hero .hero-image {
        margin-bottom: 0 !important;
    }
}

/* FAQ content styling */
.faq-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.faq-content.open {
    max-height: 500px; /* Adjust based on your content */
}

.faq-toggle {
    transition: all 0.3s ease;
}


.faq-icon {
    transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Additional styles from starter.html */
/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Starter page specific FAQ styles */
.starter-faq-content {
    transition: max-height 0.3s ease-out;
}

.starter-faq-toggle:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Form validation styles */
.form-error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-success {
    border-color: #10B981;
    background-color: #F0FDF4;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced hover effects for CTA buttons */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Testimonial card hover effects */
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Progress indicators */
.progress-step {
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 1rem);
    width: 2rem;
    height: 2px;
    background-color: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background-color: #3B82F6;
}

/* Mobile menu animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Products Carousel Styles */
.products-carousel {
    overflow: hidden;
    position: relative;
}

.products-carousel-container {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    transition: transform 0.5s ease;
}


.product-card {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3B82F6;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-placeholder {
    color: white;
    font-size: 4rem;
    opacity: 0.8;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    .product-card {
        width: 240px;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 200px;
        margin-right: 1rem;
        padding: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-placeholder {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .product-card {
        width: 280px;
        margin-right: 1rem;
    }
    
    .products-carousel-container {
        flex-wrap: nowrap;
        will-change: transform;
        animation: autoSlideMobile 25s linear infinite;
    }
}

@keyframes autoSlideMobile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-80%);
    }
}

/* Mobile menu animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#back-to-top { display: none !important; }

.brand-logo {
    height: 80px; /* or use Tailwind's h-20 */
    width: auto;
    max-width: 180px; /* prevent too-wide logos */
    object-fit: contain;
    margin: 0 1rem;
}
.calendly-badge-widget {
    bottom: 100px !important;  /* Move Calendly higher */
    z-index: 9999 !important;  /* Keep Calendly above other elements */
}

.whatsapp-button {
    bottom: 20px !important;   /* WhatsApp stays near the bottom */
}

/* Hover animation for Calendly badge */
.calendly-badge-widget .calendly-badge-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendly-badge-widget .calendly-badge-content:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Carousel Container */
.products-carousel-container {
    display: flex;
    gap: 2rem;               /* Space between products */
    overflow-x: auto;        /* Enables manual scrolling/swiping */
    padding: 1rem 0;
    
    /* Hide scrollbar for a clean look */
    scrollbar-width: none;   /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;            /* Shows it's draggable */
    
    /* Smooth momentum scrolling on mobile */
    -webkit-overflow-scrolling: touch; 
}

/* Hide scrollbar for Chrome/Safari/Opera */
.products-carousel-container::-webkit-scrollbar {
    display: none;
}

/* Ensure Product Cards don't squish on mobile */
.product-card {
    flex: 0 0 auto;          /* Don't shrink, don't grow */
    width: 280px;            /* Fixed width ensures consistency */
    max-width: 80vw;         /* Responsive max width for small phones */
}
