/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
}

/* Design System Colors */
:root {
    --primary: hsl(142, 76%, 36%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 17%, 98%);
    --secondary-foreground: hsl(210, 12%, 16%);
    --muted: hsl(210, 17%, 95%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(142, 76%, 36%);
    --accent-foreground: hsl(0, 0%, 100%);
    --eco-light: hsl(142, 50%, 85%);
    --eco-dark: hsl(142, 76%, 28%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --border: hsl(210, 20%, 90%);
    --input: hsl(210, 20%, 90%);
    --ring: hsl(142, 76%, 36%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(210, 12%, 16%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(210, 12%, 16%);
    
    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(142, 76%, 36%), hsl(142, 76%, 28%));
    --gradient-eco: linear-gradient(135deg, hsl(142, 50%, 85%), hsl(142, 76%, 36%));
    --gradient-hero: linear-gradient(135deg, hsla(142, 76%, 36%, 0.9), hsla(142, 76%, 28%, 0.95));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-card: linear-gradient(135deg, #ffffff, #f8fafc);
    
    /* Enhanced Shadows */
    --shadow-eco: 0 20px 40px -10px hsla(142, 76%, 36%, 0.25);
    --shadow-card: 0 8px 30px -4px hsla(210, 12%, 16%, 0.1);
    --shadow-button: 0 8px 25px -3px hsla(142, 76%, 36%, 0.35);
    --shadow-nav: 0 4px 20px -4px hsla(210, 12%, 16%, 0.08);
    --shadow-hover: 0 25px 50px -12px hsla(142, 76%, 36%, 0.25);
    
    /* Enhanced Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.icon {
    font-size: 1rem;
    flex-shrink: 0;
    display: inline-block;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-eco {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-button);
}

.btn-eco:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

/* Enhanced Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-nav);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
}

.logo:hover .logo-icon {
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.025em;
    font-family: 'Space Grotesk', sans-serif;
}

.logo-eco {
    color: var(--primary);
    position: relative;
}

.logo-eco::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.logo:hover .logo-eco::after {
    transform: scaleX(1);
}

/* Enhanced Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-buttons-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--foreground);
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background: var(--secondary);
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', sans-serif;
}

.mobile-nav-link:hover {
    color: var(--primary);
    background: var(--secondary);
}

.mobile-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

.mobile-cta-buttons .btn {
    justify-content: center;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-desktop,
    .cta-buttons-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.hero:hover .hero-bg-image {
    transform: scale(1.15);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
}

.hero-wrapper {
    max-width: 64rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hero-badge .icon {
    color: var(--eco-light);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title-highlight {
    color: var(--eco-light);
    position: relative;
    display: inline-block;
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--eco-light);
    transform: scaleX(0);
    animation: scaleIn 0.8s ease-out 1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 32rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.6s both;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    font-weight: 500;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-feature .icon {
    color: var(--eco-light);
    width: 1.5rem;
    height: 1.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.hero-btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 1.2s both;
}

.hero-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, var(--eco-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(1rem);
        opacity: 0;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Hero */
@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-features {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Enhanced Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Enhanced Services Section */
.services {
    padding: 6rem 0;
    background: var(--background);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-elastic);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    color: var(--muted-foreground);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.125rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.services-cta {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.services-cta-text {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive Services Grid */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Enhanced Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--gradient-card);
    position: relative;
}

/* Enhanced Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.carousel-slide {
    display: none;
    position: relative;
}

/* assume that  la slide active est visible */
.carousel-slide.active {
    display: block;
}


.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2.5rem 2rem 2rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.carousel-slide.active .carousel-caption {
    transform: translateY(0);
}

.carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-radius: var(--radius-md);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    border-color: white;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .carousel-slide img {
        height: 500px;
    }
    
    .carousel-caption h3 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.125rem;
    }
}

/* Enhanced Testimonials */

.testimonials {
    margin-top: 4rem;
}

/* no more need for this
.testimonials-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    font-family: 'Space Grotesk', sans-serif;
}
*/

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.testimonial-card {
    background: var(--card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.testimonial-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 700;
    color: var(--foreground);
    font-size: 1.125rem;
    font-family: 'Space Grotesk', sans-serif;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gradient-card);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-grid {
    display: grid;
    gap: 3rem;
    max-width: 6xl;
    margin: 0 auto;
}

.contact-form-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--gradient-card);
}

.contact-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    font-family: 'Space Grotesk', sans-serif;
}

.contact-form-header .icon {
    color: var(--primary);
    width: 1.5rem;
    height: 1.5rem;
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--background);
    font-family: inherit;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn {
    flex: 1;
}

@media (min-width: 640px) {
    .form-buttons {
        flex-direction: row;
    }
}

/* Enhanced Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: var(--card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-info-card h3 .icon {
    color: var(--primary);
    width: 1.5rem;
    height: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
}

.contact-address .address {
    margin-bottom: 2rem;
}

.address-name {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-family: 'Space Grotesk', sans-serif;
}

.address-text {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-weight: 400;
}

.hours {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hours .icon {
    color: var(--primary);
    margin-top: 0.25rem;
}

.hours-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hours-list {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.hours-list div {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.map-placeholder {
    height: 16rem;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    transition: var(--transition-smooth);
    overflow: hidden; /* important pour arrondis */
}

.map-placeholder:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* the card fill in the contenair */
#map {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    z-index: 1;
}


@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Enhanced Footer */
.footer {
    background: var(--foreground);
    padding: 4rem 0 2rem;
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-button);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    font-weight: 400;
}

.footer-list a:hover {
    color: var(--eco-light);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 400;
}

.contact-item .icon {
    color: var(--eco-light);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--eco-light);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced Notification */
.notification {
    position: fixed;
    top: 6rem;
    right: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-card);
    transform: translateX(100%);
    transition: var(--transition-elastic);
    z-index: 1000;
    max-width: 24rem;
    backdrop-filter: blur(20px);
    font-family: 'Space Grotesk', sans-serif;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--primary);
}

.notification.error {
    border-color: var(--destructive);
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--destructive);
}

/*animate when appearing, initialy none display*/
.section-header,
.service-card, 
.carousel-container, 
.testimonial-card, 
.contact-form-card, 
.contact-info-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.17, 0.67, 0.5, 1), 
                transform 0.7s cubic-bezier(0.17, 0.67, 0.5, 1);
}

/* final state == visible, added by js */
.fade-in {
    opacity: 1;
    transform: translateY(0); 
}



/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 5rem;
}

/* Loading animation for images */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: loading 1.5s ease infinite;
}

@keyframes loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--eco-dark);
}

/* Gestion des images manquantes */
.hero-bg-image {
    background: var(--gradient-primary); /* Fond de secours */
    min-height: 100vh;
}

.hero-bg-image:not([src]),
.hero-bg-image[src=""],
.hero-bg-image:not([src*="."]) {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-bg-image:not([src])::after,
.hero-bg-image[src=""]::after,
.hero-bg-image:not([src*="."])::after {
    content: "MOTUKA SERVICE - LAVAGE ÉCOLOGIQUE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.service-image {
    background: var(--muted); /* Fond de secours pour les images de services */
    position: relative;
}

.service-image img:not([src]),
.service-image img[src=""],
.service-image img:not([src*="."]) {
    display: none; /* Cache l'image si elle n'existe pas */
}

.service-image:not(:has(img[src*="."]))::after {
    content: "Image du service";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--muted-foreground);
    font-weight: 600;
    z-index: 1;
}

/* Assure que le carousel fonctionne */
.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    background: var(--muted); /* Fond de secours */
    min-height: 400px;
}

@media (min-width: 768px) {
    .carousel-slide img {
        min-height: 500px;
    }
}

/* ===== LIGHTBOX STYLES () ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* display when the body have .lightbox-active class*/
body.lightbox-active .lightbox {
    display: flex;
}

/* Empêche le scroll en arrière-plan */
body.lightbox-active {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2010;
    max-width: 75vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh; /* Laisse de la place pour le caption */
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
}

.lightbox-caption {
    text-align: center;
    color: white;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    color: var(--foreground);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2020;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--primary);
    color: white;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ===== FIN LIGHTBOX STYLES ===== */

/* ===== FORFAITS SECTION ===== */
.forfaits {
  padding: 6rem 0;
  background: var(--secondary);
}

.forfaits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.forfait-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.forfait-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forfait-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forfait-card li {
  color: var(--foreground);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forfait-card i.fas.fa-check-circle {
  color: var(--primary);
  font-size: 1rem;
}

.options-supplementaires {
  text-align: center;
  margin-top: 4rem;
}

.options-supplementaires h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  font-weight: 700;
  margin-bottom: 1rem;
}

.options-supplementaires ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.options-supplementaires li {
  color: var(--muted-foreground);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.options-supplementaires i {
  color: var(--primary);
}

/* ===== FIN FORFAITS SECTION ===== */
/* Gallery Footer Button */
.gallery-footer {
  text-align: center;
  margin-top: 2rem;
}

.gallery-footer .btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  margin-top: -250px;
}

.gallery-footer .btn:hover {
  background: var(--eco-dark);
}

/* ===== GALERIE COMPLÈTE ===== */
/* ===== GALERIE FLEX ===== */
.galerie-page {
  padding: 6rem 0;
  background: var(--secondary);
  text-align: center;
}

.galerie-page h1 {
  font-size: 2.2rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.galerie-page .subtitle {
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.gallery-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.gallery-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1800px;
}

.gallery-row img {
  width: 100%;
  max-width: 550px; /* ✅ images larges et nettes */
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-row img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-row {
    flex-wrap: wrap;
  }
  .gallery-row img {
    max-width: 48%;
  }
}

@media (max-width: 600px) {
  .gallery-row img {
    max-width: 100%;
  }
}


.gallery-row img {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-row img.visible {
  opacity: 1;
  transform: translateY(0);
}


.retour-accueil .btn-eco{
    margin-top: 65px;
}

/* ===== CRÉDIT DÉVELOPPEUR ===== */
.footer-credit {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--eco-light);
  text-decoration: underline;
}
