/* Custom CSS for VibeVetted - Mobile First & High Conversion */

:root {
    --primary-blue: #003366;
    --primary-light-blue: #00509e;
    --secondary-orange: #FF6B00;
    --secondary-orange-hover: #e65c00;
    --accent-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 40px rgba(0, 51, 102, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Resets & Base Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background-color: var(--accent-white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
ul { list-style: none; }

/* Utility Classes */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-white { color: var(--accent-white); }
.text-orange { color: var(--secondary-orange); }
.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--primary-blue); }
.section-padding { padding: 80px 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* Typography */
h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: var(--primary-blue); }
h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: inherit; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.sub-headline { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }

/* Top Announcement Bar */
.top-bar { background: var(--secondary-orange); color: white; text-align: center; padding: 10px; font-size: 0.9rem; font-weight: 600; }
.top-bar a { text-decoration: underline; margin-left: 10px; }

/* Sticky Navigation */
.header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-soft); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); }
.logo span { color: var(--secondary-orange); }
.desktop-nav { display: none; } /* Hidden on mobile */
.nav-btn { display: none; } /* Hidden on mobile */

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; text-align: center; transition: var(--transition); }
.btn-primary { background: var(--primary-blue); color: white; }
.btn-primary:hover { background: var(--primary-light-blue); }
.btn-orange { background: var(--secondary-orange); color: white; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3); }
.btn-orange:hover { background: var(--secondary-orange-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* Social Buttons */
.btn-social { margin:  10px; color: white; padding: 12px 20px; display:inline-flex; align-items: center; gap: 10px; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-facebook { background: #1877F2; }
.btn-whatsapp { background: #25D366; }
.btn-social:hover { opacity: 0.9; transform: translateY(-2px); }

/* Hero Section */
.hero-section { padding: 60px 0; position: relative; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-cta-group { margin-bottom: 2rem; }
.social-follow-prompt { margin-top: 15px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.social-icons a { width: 35px; height: 35px; background: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--primary-blue); box-shadow: var(--shadow-soft); font-size: 1.1rem; transition: var(--transition); }
.social-icons a:hover { background: var(--secondary-orange); color: white; transform: scale(1.1); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.trust-badges i { color: #10B981; }

.glass-card { background: rgba(255, 255, 255, 0.4); border: 1px solid white; backdrop-filter: blur(10px); padding: 15px; border-radius: 20px; box-shadow: var(--shadow-heavy); }

/* --- Hero Image Crossfade Slideshow --- */
.hero-slideshow {
    display: grid;
    padding: 0; /* Optional: adjust if you want the glass padding removed for the images */
}

.hero-slide {
    grid-area: 1 / 1; /* Stacks all images in the exact same grid cell */
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* 1.5s fade effect */
    border-radius: var(--border-radius);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Grids & Cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.card { background: white; padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid #eaeaea; }
.hover-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); border-color: var(--secondary-orange); }
.card i { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary-blue); }

/* Steps Section */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.step-card { text-align: center; padding: 20px; }
.step-number { width: 60px; height: 60px; background: var(--secondary-orange); color: white; font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2); }

/* WhatsApp Embedded Preview */
.whatsapp-preview-card { max-width: 350px; margin: 0 auto; background: #E5DDD5; border-radius: 12px; overflow: hidden; text-align: left; box-shadow: var(--shadow-heavy); }
.wa-header { background: #075E54; color: white; padding: 15px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.wa-body { padding: 20px; }
.wa-body p { background: white; padding: 10px 15px; border-radius: 0 10px 10px 10px; font-size: 0.9rem; color: #303030; position: relative; }
.wa-body p::before { content: ''; position: absolute; top: 0; left: -10px; border-width: 0 10px 10px 0; border-style: solid; border-color: transparent white transparent transparent; }

/* Video Container */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow-heavy); margin-top: 40px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 80%; height: 80%; border-radius: var(--border-radius); }

/* Slider Section */
.slider-container { position: relative; width: 80%; max-width: 900px; margin: 40px auto 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow-heavy); }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: white; border: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-soft); cursor: pointer; font-size: 1.2rem; color: var(--primary-blue); transition: var(--transition); z-index: 10; }
.slider-btn:hover { background: var(--secondary-orange); color: white; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Testimonials */
.stars { color: #FBBF24; margin-bottom: 10px; font-size: 1.2rem; }

/* Continuous Testimonial Carousel */
.testimonial-slider-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
    /* Soft gradient masks on the edges to fade cards in and out */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonial-track {
    display: flex;
    width: max-content;
    /* Adjust '45s' to make the slider faster or slower */
    animation: scrollTestimonials 45s linear infinite;
}

/* Pause the scrolling when a user hovers to read a review */
.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-group {
    display: flex;
    gap: 30px;
    padding-right: 30px; /* Maintains the gap between the original and cloned group */
}

.testimonial-group .testimonial-card {
    width: 350px; /* Fixed width prevents cards from stretching or crushing */
    flex-shrink: 0;
    margin: 0; 
    text-align: left;
    white-space: normal; /* Ensures text wraps inside the card */
}

/* The math here moves the track exactly 50% of its total width, creating a perfect loop */
@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-group .testimonial-card {
        width: 280px; /* Slightly narrower cards for smaller screens */
    }
    .testimonial-group {
        gap: 20px;
        padding-right: 20px;
    }
    .testimonial-slider-container {
        -webkit-mask-image: none; /* Removes fade edges on mobile for maximum screen real estate */
        mask-image: none;
    }
}

/* Pricing */
.pricing-box { max-width: 450px; margin: 40px auto 0; background: white; border: 3px solid var(--secondary-orange); border-radius: var(--border-radius); box-shadow: var(--shadow-heavy); padding: 40px; text-align: center; }
.pricing-header h2 { font-size: 1.5rem; color: var(--primary-blue); }
.price { font-size: 3rem; font-weight: 800; color: var(--text-dark); margin: 15px 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-features { text-align: left; margin: 30px 0; }
.pricing-features li { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.pricing-features i { color: #10B981; margin-right: 10px; }

@media screen and (max-width: 768px) {
    .pricing-box {
        padding: 30px 20px;
        
    }
}

/* Form / CTA Section */
.grid-2-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
.align-center { align-items: center; }
.glass-form { background: rgba(255,255,255,0.1); backdrop-filter: blur(15px); padding: 40px; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.2); }
.glass-form h3 { margin-bottom: 20px; font-size: 1.5rem; }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 15px; border-radius: 8px; border: none; font-family: inherit; font-size: 1rem; outline: none; }
.form-footer { margin-top: 15px; font-size: 0.8rem; text-align: center; opacity: 0.8; }

/* --- Modern Google Maps Embed --- */
.location-section {
    position: relative;
}

.map-container {
    width: 100%;
    height: 400px;
    padding: 0; /* Removes the default glass-card padding for a flush edge */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 2px solid white; /* Matches your glass theme */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Desaturates the map to fit modern UI trends */
    filter: grayscale(80%) contrast(1.1) opacity(0.9);
    transition: all 0.5s ease;
}

/* Brings the map back to full color and brightness when hovered */
.map-container:hover iframe {
    filter: grayscale(0%) contrast(1) opacity(1);
}

/* Mobile Adjustment for Map Height */
@media (min-width: 768px) {
    .map-container {
        height: 500px;
    }
}

/* Footer */
footer { background: #0f172a; color: white; padding: 40px 0; }
.small { font-size: 0.8rem; opacity: 0.6; margin-top: 5px; }

/* Floating Elements */
.floating-wa { position: fixed; bottom: 80px; right: 20px; width: 60px; height: 60px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: var(--shadow-heavy); z-index: 1000; animation: bounce 2s infinite; }
.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 15px; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); z-index: 999; }

/* Animations */
.animate-on-scroll { opacity: 0; transition: all 0.8s ease-out; }
.fade-up { transform: translateY(40px); }
.slide-left { transform: translateX(40px); }
.scale-up { transform: scale(0.95); }
.active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* Media Queries (Desktop) */
@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .desktop-nav { display: block; }
    .desktop-nav ul { display: flex; gap: 20px; }
    .desktop-nav a { font-weight: 600; color: var(--primary-blue); }
    .desktop-nav a:hover { color: var(--secondary-orange); }
    .nav-btn { display: inline-block; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    @media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-2-col { grid-template-columns: 1fr 1fr; }
    .sticky-mobile-cta { display: none; }
    .floating-wa { bottom: 30px; }
}

/* --- HAMBURGER MENU STYLES --- */

/* 1. Hide the hamburger on Desktop */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-orange);
}

/* 2. Mobile Logic (Max-width 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    /* 3. The Menu: Hidden by default */
    .desktop-nav {
        position: fixed;
        left: -100%; /* Push menu off-screen to the left */
        top: 70px;   /* Below the header */
        gap: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s; /* Smooth slide effect */
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .desktop-nav a {
        margin: 16px 0;
        display: block; /* Make links big targets for fingers */
    }

 /* 4. The "Active" Class (JS adds this) */
    .desktop-nav.active {
        left: 0; /* Slide menu onto screen */
    }

    /* 5. Animate Hamburger into an "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Hide middle bar */
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hide the navigation CTA button on mobile devices */
@media screen and (max-width: 768px) {
    .nav-btn {
        display: none !important;
    }
}

/* --- Choose Your Template Section --- */
.templates-grid {
    /* Creates a responsive grid: 4 columns on desktop, 1-2 on mobile/tablet */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.template-card {
    padding: 20px;
    text-align: center;
    position: relative;
}

.template-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden; /* Keeps the zoom effect inside the border */
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    background-color: #e2e8f0; /* Placeholder background color */
    aspect-ratio: 4 / 3; /* Keeps all template images identical in shape */
}

.template-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The dark blue hover overlay */
.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.85); /* Uses your primary blue variable */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

/* Animations Triggered on Hover */
.template-card:hover .template-image-wrapper img {
    transform: scale(1.1); /* Smooth image zoom */
}

.template-card:hover .template-overlay {
    opacity: 1; /* Fade in the button */
}

/* Base scroll animation classes (if they aren't already defined in your CSS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Cinematic Video Section --- */
.video-section {
    background-color: #18181b; /* Deep zinc/charcoal background */ 
    color: #f4f4f5;
    position: relative;
    overflow: hidden; /* Contains the glow effect */
}

.video-section .section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.video-section .section-subtitle {
    color: #a1a1aa; /* Muted zinc text */
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Industrial framing around the video */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px !important;
    min-height: 600px; /* Maintains 16:9 aspect ratio even if video fails to load */
    margin: 0 auto;
    border-radius: 12px;
    padding: 10px; 
    background: linear-gradient(145deg, #27272a, #18181b);
    border: 1px solid #3f3f46;
    aspect-ratio: 9 / 16 !important; /* The magic 9:16 lock */
    z-index: 2;
}

/* Gritty, neon-orange ambient backlight */
.cinematic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
    z-index: -1;
    filter: blur(30px);
}

/* Perfect 16:9 Responsive Aspect Ratio */
.responsive-iframe-container {
    position: relative;
    padding-bottom: 177.78%; /*9:16 aspect ratio*/
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    background-color: #000;
}s

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 20px) !important;
    height: calc(100% - 20px) !important;
    border: none !important;
    border-radius: 8px;
}
/* Fix mobile hamburger menu visibility */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: flex !important; 
    }
}

