/* ===== Variables ===== */
:root {
    --green-dark: #1a4d2e;
    --green-main: #2d6a4f;
    --green-medium: #40916c;
    --green-light: #52b788;
    --green-pale: #d8f3dc;
    --green-bg: #f0f7f2;
    --white: #ffffff;
    --off-white: #fafcfa;
    --text-dark: #1b2e1f;
    --text-muted: #4a5d4e;
    --shadow: 0 10px 40px rgba(26, 77, 46, 0.12);
    --shadow-sm: 0 4px 20px rgba(26, 77, 46, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--green-main);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.35);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--green-dark);
}

.btn-white:hover {
    background: var(--green-pale);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.logo-es {
    font-size: 1.5rem;
    color: var(--green-dark);
    letter-spacing: -1px;
}

.logo-leaves {
    font-size: 1.2rem;
}

.logo-text {
    font-size: 0.85rem;
    color: var(--green-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

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

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

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-pale);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.header-phone:hover {
    background: var(--green-light);
    color: var(--white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2.5px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6a4f 50%, #40916c 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558904541-efa843a96f01?w=1200&q=80') center/cover no-repeat;
    opacity: 0.35;
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(26, 77, 46, 0.3) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: #95d5b2;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-item .check {
    background: var(--green-light);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== Sections common ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-main);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--green-dark);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--green-pale);
    background: var(--white);
}

.service-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.highlight-card {
    background: linear-gradient(145deg, var(--green-main), var(--green-dark));
    color: var(--white);
}

.highlight-card h3,
.highlight-card p {
    color: var(--white);
}

.highlight-card .btn-primary {
    background: var(--white);
    color: var(--green-dark);
    margin-top: 8px;
}

.highlight-card .btn-primary:hover {
    background: var(--green-pale);
}

/* ===== Pourquoi ===== */
.pourquoi {
    padding: 100px 0;
    background: var(--green-bg);
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pourquoi-content .section-tag {
    margin-bottom: 14px;
}

.pourquoi-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--green-dark);
    margin-bottom: 18px;
}

.pourquoi-content > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.pourquoi-list {
    list-style: none;
    margin-bottom: 36px;
}

.pourquoi-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.pourquoi-list .check {
    background: var(--green-main);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pourquoi-image .image-placeholder {
    background: linear-gradient(145deg, var(--green-main), var(--green-dark));
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

.pourquoi-image .image-placeholder span {
    font-size: 5rem;
    margin-bottom: 16px;
}

.pourquoi-image .image-placeholder p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ===== Galerie ===== */
.galerie {
    padding: 100px 0;
    background: var(--white);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.galerie-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.galerie-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}

.galerie-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,77,46,0.85) 0%, transparent 60%);
}

.galerie-img span {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.galerie-img:hover {
    transform: scale(1.03);
}

.img-1 {
    background-image: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=600&q=80');
}

.img-2 {
    background-image: url('https://images.unsplash.com/photo-1558904541-efa843a96f01?w=600&q=80');
}

.img-3 {
    background-image: url('https://images.unsplash.com/photo-1591857177580-dc82b9ac4e1e?w=600&q=80');
}

.img-4 {
    background-image: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=600&q=80');
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: var(--green-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.contact-card a {
    color: var(--green-main);
    font-weight: 600;
    font-size: 1.15rem;
}

.contact-card a:hover {
    color: var(--green-dark);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-card.slogan {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white);
    text-align: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d0e0d4;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-medium);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-note a {
    color: var(--green-main);
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer .logo-es {
    color: var(--white);
}

.footer .logo-text {
    color: var(--green-light);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--green-light);
}

.footer-contact a {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--green-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.75;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .pourquoi-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .burger {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 70px;
    }

    .hero::before {
        width: 100%;
        opacity: 0.2;
        mask-image: none;
    }

    .services,
    .pourquoi,
    .galerie,
    .contact {
        padding: 70px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .galerie-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}
