/*
Theme Name: Expert Hygiène LP
Theme URI: https://expert-hygiene.fr
Author: Ayoub
Description: Custom Landing Page for Urgent Rat Extermination
Version: 1.0
*/

:root {
    /* Colors */
    --primary: #0F172A;
    /* Slate 900 - Trust/Expertise */
    --primary-light: #334155;
    --accent: #DC2626;
    /* Red 600 - Urgency */
    --accent-hover: #B91C1C;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --text-main: #334155;
    --text-dark: #0F172A;
    --success: #16A34A;

    /* Spacing */
    --container-padding: 1rem;
    --section-spacing: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Removed global smooth scroll to prevent 'stuck' feeling during manual scroll */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-spacing) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    /* Note: URL is relative to the stylesheet in WP */
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.8)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem 3rem;
    /* Extra top padding */
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Urgency Section */
.urgency {
    background-color: #FEF2F2;
    /* Red 50 */
    border-bottom: 4px solid var(--accent);
}

.urgency-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.urgency-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.urgency-warning {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
    margin-top: 2rem;
    font-style: italic;
    font-weight: 500;
}

/* Solutions / Expert */
.features-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.check-icon {
    color: var(--success);
    flex-shrink: 0;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.step {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Form Section */
.form-section {
    background-color: var(--primary);
    color: var(--white);
}

.form-section h2 {
    color: var(--white);
}

.lead-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.form-control:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

/* Zones */
.zones {
    text-align: center;
    font-size: 1.125rem;
    background-color: var(--bg-light);
}

/* Reassurance */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.8;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary);
    color: #94A3B8;
    padding: 2rem 0 6rem;
    /* Extra bottom padding for sticky mobile btn */
    text-align: center;
    font-size: 0.875rem;
}

/* Sticky Mobile CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .urgency-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .sticky-cta {
        display: none;
        /* Hide on desktop if preferred, or keep small */
    }

    footer {
        padding-bottom: 2rem;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Utility to hide only on mobile if needed */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* Split Sections for Visuals */
.split-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.split-image {
    flex: 1;
    width: 100%;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 400px;
}

.split-content {
    flex: 1;
    width: 100%;
}

/* Revisit urgency grid for split layout */
.split-content .urgency-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.5rem;
}

.split-content .urgency-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.split-content .urgency-item i {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .split-section {
        flex-direction: row;
        gap: 4rem;
    }

    .split-section.reverse {
        flex-direction: row-reverse;
    }
}

/* Desinsectisation Section */
.desinsectisation {
    background-color: var(--white);
}

.image-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 1rem;
    position: relative;
    /* Aspect ratio mainly for desktop sizing */
    aspect-ratio: 1 / 1;
    max-height: 500px;
}

.image-grid-container img {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: auto;
    height: auto;
}

.grid-img-1 {
    /* Main image - Bath */
    top: 0;
    left: 0;
    width: 65% !important;
    height: 65% !important;
    z-index: 1;
}

.grid-img-2 {
    /* Secondary image - Living Room */
    bottom: 0;
    right: 0;
    width: 60% !important;
    height: 60% !important;
    z-index: 2;
    border: 4px solid var(--white);
}

@media (max-width: 767px) {
    .image-grid-container {
        display: block;
        max-height: none;
        aspect-ratio: auto;
    }

    .grid-img-2 {
        border: none;
    }
}

/* Video Gallery Section */
.video-gallery {
    background-color: var(--bg-light);
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling for iOS */
}

/* Hide scrollbar but allow scrolling */
.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-item {
    flex: 0 0 80%;
    /* Show part of next video on mobile to encourage scroll */
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 9 / 16;
    background: #000;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .gallery-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
    }

    .gallery-item {
        flex: none;
        scroll-snap-align: none;
        aspect-ratio: 9 / 16;
        /* Maintain portrait ratio as videos seem portrait */
    }

    .gallery-item {
        flex: none;
        scroll-snap-align: none;
        aspect-ratio: 9 / 16;
        /* Maintain portrait ratio as videos seem portrait */
    }
}

/* Contact Form 7 Overrides */
.wpcf7-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-dark);
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
}

.wpcf7-form .form-control {
    width: 100%;
    margin-bottom: 1rem;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Fix for CF7 response output */
.wpcf7-response-output {
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    padding: 1rem !important;
    margin: 1rem 0 0 !important;
}