/*
Theme Name: Soie Clinics Child
Template: hello-elementor
Version: 1.0.0
*/

:root {
    --color-beige: #F5F0EB;
    --color-taupe: #D7C4BB;
    --color-charcoal: #333333;
    --color-white: #FFFFFF;
    --color-brown-soft: #8D7B72;
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Jost', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-beige);
    color: var(--color-charcoal);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

.heading-primary {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-lg);
}

.sub-heading {
    font-family: var(--font-sans);
    text-transform: uppercase;
    color: var(--color-brown-soft);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.delay-100 {
    transition-delay: 0.1s;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--color-beige);
}

.hero-branding {
    flex: 0 0 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem;
    z-index: 10;
    border-bottom: 1px solid rgba(215, 196, 187, 0.3);
}

.branding-content {
    text-align: center;
}

.hero-logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-branding h1 {
    font-size: 3rem;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-branding span {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--color-brown-soft);
    display: block;
    margin-bottom: 2rem;
}

.hero-visuals {
    flex: 1;
    width: 100%;
    display: flex;
    position: relative;
    height: 100%;
}

.hero-split {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    padding-bottom: 4rem;
    overflow: hidden;
    cursor: pointer;
}

.hero-split:hover {
    flex: 1.5;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hero-split:hover .hero-image {
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    transition: transform 0.4s ease;
}

.hero-split:hover .hero-content {
    transform: translateY(-10px);
}

.soie-btn-outline {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 10px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.soie-btn-outline:hover {
    background: var(--color-white);
    color: var(--color-charcoal);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-branding {
        flex: 0 0 auto;
        padding: 5rem 1.5rem 3rem;
    }

    .hero-visuals {
        flex-direction: column;
        height: 60vh;
    }
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    text-align: center;
}

.btn-text {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-brown-soft);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-text:hover {
    border-bottom-color: var(--color-brown-soft);
    color: var(--color-charcoal);
    transform: translateX(5px);
    display: inline-block;
}

/* --- WHY CHOOSE US (BENEFITS) --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(215, 196, 187, 0.2);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(215, 196, 187, 0.3);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
}

/* --- BEFORE/AFTER SLIDER --- */
.comparison-wrapper {
    position: relative;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(141, 123, 114, 0.1);
    background-color: #f0f0f0;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    z-index: 2;
    filter: brightness(0.9) contrast(0.9) sepia(0.1);
}

.label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-white);
    z-index: 15;
    pointer-events: none;
    transform: translateX(-50%);
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 20;
    cursor: col-resize;
    margin: 0;
}

@media (max-width: 768px) {
    .comparison-wrapper {
        height: 350px;
    }
}