:root {
    --teal: #006469;
    --teal-dark: #00484b;
    --beige: #F7F4EB;
    --accent: #690500;
    --accent-dark: #400300;
    --charcoal: #1F1F1F;
    --muted: rgba(255, 255, 255, 0.65);
}

* {
    box-sizing: border-box;
}

body.home-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.site-header {
    background: var(--teal);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border: 2px solid white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3.5rem;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('Accueil/images/mediation-namur.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-left h1 {
    margin: 0 0 1rem;
}

.hero-logo {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-subtext {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.hero-kicker {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.hero-copy {
    font-size: 1.05rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-title.light {
    color: white;
}

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

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.welcome {
    background: var(--beige);
    padding: 4rem 0;
}

.welcome .container {
    max-width: 900px;
}

.welcome-cta {
    text-align: left;
    margin-bottom: 3rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.welcome-column p {
    margin: 0;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-light {
    background: white;
    color: var(--teal);
}

.services-section {
    background: var(--teal);
    color: white;
    padding: 4.5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 500;
}

.services-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* padding-bottom: 0.5rem; */
}

.services-list .muted {
    opacity: 0.5;
}

.testimonials {
    background: white;
    padding: 4rem 0 5rem;
}

.testimonial-card {
    background: var(--beige);
    border-radius: 20px;
    padding: 3rem 4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    overflow: hidden;
}

.testimonial-card input {
    display: none;
}

.testimonial-slides {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.testimonial-slide p {
    margin: 0;
    color: var(--charcoal);
}

.testimonial-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
    text-align: center;
}

.testimonial-slide p:first-child {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Show the active slide */
#slide1:checked~.testimonial-inner .testimonial-slides .testimonial-slide:nth-child(1),
#slide2:checked~.testimonial-inner .testimonial-slides .testimonial-slide:nth-child(2),
#slide3:checked~.testimonial-inner .testimonial-slides .testimonial-slide:nth-child(3) {
    opacity: 1;
    visibility: visible;
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-arrow {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.nav-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--charcoal);
    border-left: 2px solid var(--charcoal);
    transform: rotate(-45deg);
}

.nav-arrow.next::before {
    transform: rotate(135deg);
}

/* Show the correct arrows for each slide */
#slide1:checked~.testimonial-inner .testimonial-nav label[data-slide="1"],
#slide2:checked~.testimonial-inner .testimonial-nav label[data-slide="2"],
#slide3:checked~.testimonial-inner .testimonial-nav label[data-slide="3"] {
    display: flex;
}

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

.site-footer {
    background: var(--beige);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin: 0 0 0.5rem;
}

.footer-social a {
    color: var(--charcoal);
}

.footer-meta {
    text-align: center;
    font-size: 0.9rem;
    color: #6f6f6f;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 70vh;
        padding-top: 3rem;
    }

    .hero-subtext {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

.image-banner {
    width: 100%;
    overflow: hidden;
    /* Ensures image doesn't overflow its container */
    margin-top: 4rem;
    /* Add some space above the image */
}

.image-banner img {
    display: block;
    /* Removes extra space below image */
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
}

.footer-social a {
    text-decoration: none;
    color: inherit;
}