/* 
* ESNaturopathie Maroc - Landing Page Styles
* Custom CSS for the hypnosis training landing page
*/

:root {
    /* Main color palette */
    --primary-green: #2e8b57; /* Sea green - main brand color */
    --light-green: #8fbc8f; /* Light green for accents */
    --dark-green: #006400; /* Dark green for contrast */
    --earth-brown: #8b4513; /* Earth tone for accents */
    --light-earth: #d2b48c; /* Light earth tone */
    --off-white: #f8f9fa; /* Off-white for backgrounds */
    --dark-text: #333333; /* Dark text color */

    /* Font settings */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Global styles */
body {
    font-family: var(--body-font);
    color: var(--dark-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.btn-primary {
    background-color: #6ccfc9;
    border-color: var(--primary-green);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-light {
    background-color: white;
    color: #6ccfc9;
    border-color: white;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-light:hover, .btn-light:focus {
    background-color: var(--off-white);
    color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 45px;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: #6ccfc9;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1600618528240-fb9fc964b853?ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1350&amp;q=80');
    background-size: cover !important;
    background-position: center;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

#hero .event-date {
    display: inline-block;
    background-color: #6ccfc9;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Benefits section */
#benefits {
    background-color: white;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6ccfc9;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
}

/* Program section */
#program {
    background-color: var(--off-white);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #6ccfc9;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    width: 2px;
    height: calc(100% + 30px);
    background-color: var(--light-green);
    z-index: 0;
}

.timeline-item:last-child:after {
    display: none;
}

/* Pricing section */
#pricing {
    background-color: white;
}

.price-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.price-header {
    background-color: #6ccfc9;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.price-body {
    padding: 30px 20px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.price-features {
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.price-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* Urgency section */
#urgency {
    background-color: var(--off-white);
}

.countdown-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.countdown-item {
    margin: 0 10px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: var(--primary-green);
    color: white;
    border-radius: 10px;
    padding: 10px;
    display: block;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Testimonials section */
#testimonials {
    background-color: white;
}

.testimonial-card {
    background-color: var(--off-white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--light-green);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 0;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-title {
    font-size: 0.9rem;
    color: #777;
}

/* Organizers section */
#organizers {
    background-color: var(--off-white);
}

.organizer-card {
    text-align: center;
    margin-bottom: 30px;
}

.organizer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.organizer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.organizer-title {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

/* Final CTA section */
#final-cta {
    background-color: #6ccfc9;
    color: white;
    text-align: center;
    padding: 80px 0;
}

#final-cta h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

/* Sticky CTA bar */
#sticky-cta {
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* WhatsApp button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #final-cta h2 {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background shapes for visual interest */
.shape {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--light-green);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background-color: var(--earth-brown);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}


/* Sticky Reservation Button */
.sticky-reserve-button {
    position: fixed;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1030; /* Ensure it's above other elements, below modals if any */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none; /* Hidden by default, shown via JS or media query */
}

/* Show sticky button on larger screens and when scrolled down */
@media (min-width: 768px) {
    body.scrolled .sticky-reserve-button {
        display: inline-block; /* Or block, depending on desired layout */
    }
}



/* Form Field Focus Animation */
#final-cta form .form-control:focus {
    border-color: #0d6efd; /* Bootstrap primary color */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap focus shadow */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



/* Hover Effects */
.btn:hover,
.benefit-card:hover,
.price-card:hover,
.organizer-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure cards have a base transition */
.benefit-card,
.price-card,
.organizer-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific hover for primary button */
.btn-primary:hover {
    opacity: 0.9;
}



@keyframes subtleBackgroundZoom {
    0% {
        background-size: 100% auto;
    }
    100% {
        background-size: 110% auto;
    }
}

/* Apply subtle zoom animation to hero background */
#hero {
    /* ... existing styles ... */
    animation: subtleBackgroundZoom 20s ease-in-out infinite alternate;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #final-cta h2 {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    /* Adjust WhatsApp button position to avoid overlap with mobile sticky CTA */
    .whatsapp-button {
        bottom: 80px; /* Increase bottom margin */
    }
}



/* Countdown Timer Urgency Style */
#countdown-timer.urgent-timer {
    background-color: #dc3545 !important; /* Bootstrap danger color */
    color: white !important;
    animation: pulse 1.5s infinite;
}

#timer-display.urgent-text {
    color: #dc3545; /* Bootstrap danger color */
    font-weight: bold;
    /* Optional: Add subtle blinking or pulse */
    /* animation: blink 1s linear infinite; */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Optional blink animation for text */
/*
@keyframes blink {
    50% { opacity: 0.5; }
}
*/

.my-2 {
    padding-right: 10px !important;
}
.price-features li:nth-child(6)::before ,.price-features li:nth-child(7)::before {display: none;}

.mb-3, label.form-label {
    text-align: left !important;
}

@media (min-width:1025px){
    .mh_form{
        max-width: 50% !important;
    }
}

@media (max-width:480px){
    .mh_form{
        max-width: 100% !important;
    }
}
